Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CHE-6162: Fix problem project detection procedure #6264

Merged
merged 7 commits into from
Sep 14, 2017
Merged

Conversation

vparfonov
Copy link
Contributor

What does this PR do?

Fix problem project detection procedure. 
Avoid call ResourceNode.updatePresntation if not need

What issues does this PR fix or reference?

#6162

Signed-off-by: Vitalii Parfonov <vparfonov@redhat.com>
Signed-off-by: Vitalii Parfonov <vparfonov@redhat.com>
Signed-off-by: Vitalii Parfonov <vparfonov@redhat.com>
Signed-off-by: Vitalii Parfonov <vparfonov@redhat.com>
Signed-off-by: Vitalii Parfonov <vparfonov@redhat.com>
@vparfonov vparfonov added kind/bug Outline of a bug - must adhere to the bug report template. team/ide labels Sep 14, 2017
@vparfonov vparfonov added this to the 5.18.0 milestone Sep 14, 2017
@codenvy-ci
Copy link

Build # 3670 - FAILED

Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/3670/ to view the results.

@@ -96,6 +97,11 @@ public SourceStorage getSource() {
return reference.getSource();
}

@Override
public List<ProjectProblem> getProblems() {
return null;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe it would be better to return actual list of problems? reference.getProblems() WDYT?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, thx

@@ -189,6 +193,7 @@ public void updatePresentation(@NotNull NodePresentation presentation) {
? nodesResources.hiddenSimpleFolder()
: nodesResources.simpleFolder());
} else if (getData().getResourceType() == PROJECT) {
Log.info(getClass(), ((Project) getData()).isProblem());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non-informative info log

Signed-off-by: Vitalii Parfonov <vparfonov@redhat.com>
Signed-off-by: Vitalii Parfonov <vparfonov@redhat.com>
@codenvy-ci
Copy link

Build # 3684 - FAILED

Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/3684/ to view the results.

@codenvy-ci
Copy link

@vparfonov vparfonov merged commit d14dae9 into master Sep 14, 2017
@vparfonov vparfonov deleted the che#6162 branch September 14, 2017 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Outline of a bug - must adhere to the bug report template.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants