-
Notifications
You must be signed in to change notification settings - Fork 23
fix: show 'no url/binding' node, use async leafstate for component (#687) #697
fix: show 'no url/binding' node, use async leafstate for component (#687) #697
Conversation
Skipping CI for Draft Pull Request. |
@@ -94,9 +94,7 @@ public Object getApplicationsRoot() { | |||
|
|||
@Override | |||
public @NotNull LeafState getLeafState(@NotNull Object element) { | |||
if (element instanceof ComponentNode) { | |||
return LeafState.ALWAYS; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is the fix: the leafstate for ComponentNode
is now async
...main/java/org/jboss/tools/intellij/openshift/tree/application/ApplicationsTreeStructure.java
Outdated
Show resolved
Hide resolved
...main/java/org/jboss/tools/intellij/openshift/tree/application/ApplicationsTreeStructure.java
Outdated
Show resolved
Hide resolved
@@ -318,6 +329,11 @@ public Object getParentElement(@NotNull Object element) { | |||
public void commit() { | |||
} | |||
|
|||
@Override | |||
public boolean isToBuildChildrenInBackground(@NotNull Object element) { | |||
return true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
enhancement: retrieve children in a background thread (instead of UI thread)
@adietish : your enhancement are good idea, but may need more than 'just' displaying no url/url.
this is somehow similar to what odo does, and we can rely on it to parse the state ( try out with descibe commands) . WDYT ? |
@sbouchet: I suggest that I file your suggestions to an enhancement request and keep this PR focused on the fix, solely. Agree? |
3b39ede
to
0e423cb
Compare
filed #697 (comment) to #707 |
Signed-off-by: Andre Dietisheim <[email protected]>
thanks for filling a new enhancement request. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. please follow up with #707
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: sbouchet The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
New changes are detected. LGTM label has been removed. |
|
/override ci/prow/e2e-openshift |
@adietish: Overrode contexts on behalf of adietish: ci/prow/e2e-openshift In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
fixes #687