-
Notifications
You must be signed in to change notification settings - Fork 230
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
Added 'no projects and cant create' empty states #2296
Added 'no projects and cant create' empty states #2296
Conversation
689a3ce
to
d3900fe
Compare
/retest |
d3900fe
to
718e4c5
Compare
718e4c5
to
4e0154a
Compare
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 except for the one comment. PR will need rebase
$scope.$on('$destroy', hideErrorNotifications); | ||
$scope.$on('$destroy', function() { | ||
hideErrorNotifications(); | ||
noProjectsCantCreateWatch(); |
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.
@dtaylor113 This is fine, but not needed. The $scope listeners are already deregistered on destroy. I'd honestly rather remove this logic from the controllers to keep the code simpler. It can just be...
$scope.$on('no-projects-cannot-create', function() {
$scope.noProjectsCantCreate = true;
});
in each of the controllers without needing to handle the return value.
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.
Ok, fixed
4e0154a
to
0dda14b
Compare
/retest |
Thanks @dtaylor113 /lgtm |
0dda14b
to
4db78f0
Compare
/lgtm |
/lgtm |
/retest |
@dtaylor113 Can you take a look at the test failures and make sure they're not due to your changes? |
Looking at the Jenkins logs, seems like an issue with 4 or 5 e2e tests. At the moment I have to clear my docker cache and get oc to cluster up. I'll let you know if e2e works locally for me. |
Hi @spadgett, when I run the e2e tests locally I error out with:
I think this is just a general error trying to run selenium on my linux system. Here is a link to the e2e test failures of this PR: They don't appear to be related to the |
We keep seeing the same failures in your PR and not others. Those pages also use the select-project component, so it might be related. /retest |
Hmm... @juanvallejo is getting the same stack trace reported here on his linux system, latest master. I also am seeing failures on my system using the latest master. |
@dtaylor113 But your failures are different than Jenkins, right? |
e6479ee
to
d249a07
Compare
app/views/directives/from-file.html
Outdated
</a> | ||
</div> | ||
</form> | ||
<span ng-if="!noProjectsCantCreate"> |
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.
It might be safer to change these ng-if
to ng-show
(here and below) to avoid problems like openshift/origin-web-catalog#526
It might fix the test failures as well.
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.
Ok, replaced ng-if
's with ng-shows
's, e2e worked with Ben's latest e2e changes and seemed to get further just in this PRs branch. 🤞 Hopefully it'll pass Travis :-)
d249a07
to
7c3fad3
Compare
/lgtm |
yay!!! \0/ |
…deploy-image, and from-file
7c3fad3
to
9c350bc
Compare
/lgtm |
Automatic merge from submit-queue. |
Added to deploy-image, from-file, and process-template: