-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Frontend for namespace selection #782
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
Conversation
@taimir Can you review this? |
OK, let's see. |
Current coverage is 95.03%
@@ master #782 diff @@
==========================================
Files 194 197 +3
Lines 1516 1591 +75
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
+ Hits 1432 1512 +80
+ Misses 84 79 -5
Partials 0 0
|
Here are a few initial comments and questions. I'll have more time to review this again tomorrow evening and on Wednesday.
|
1ce6e3f
to
33f6128
Compare
PTAL
|
Review status: 3 of 59 files reviewed at latest revision, 5 unresolved discussions, some commit checks failed. src/app/frontend/chrome/chrome_module.js, line 27 [r1] (raw file):
|
Review status: 2 of 59 files reviewed at latest revision, 5 unresolved discussions, some commit checks failed. src/app/frontend/chrome/chrome_module.js, line 27 [r1] (raw file):
You're correct. This should be removed. I made a mistake thinking that this is namespaceModule (which uses ngResource). Thanks for digging this problem! Removed. PTAL :) Comments from Reviewable |
Reviewed 6 of 57 files at r1, 3 of 3 files at r2, 1 of 1 files at r3. src/app/frontend/common/namespace/namespace_stateconfig.js, line 26 [r3] (raw file):
Hehe, I like this hack. So basically now And namespace's <chrome>
...
<!-- the original one-->
<kd-content ui-view>
<!-- the one produced by the namespace state -->
<ui-view>
<!-- e.g. the content of the workloads state-->
<stuff></stuff>
</ui-view>
</ui-view>
</chrome> Correct me if I'm wrong, because I need my understanding to be right in order to review this properly. I like this approach, as it seems really smooth. I have some remarks however, see below. src/app/frontend/common/namespace/namespace_stateconfig.js, line 37 [r3] (raw file):
So ok, now every I'm just asking myself: by enforcing this we kind of forbid the use of any nested states in dashboard, because we redirect the parent to My intuition would be to nest everything like "matryoshka dolls", and the biggest one would be Do you get my concern? src/app/frontend/common/namespace/namespaceselect.html, line 5 [r1] (raw file):
|
A few more comments, PTAL.
|
BTW, where is the deploy button (the
|
PTAL
|
1f36252
to
f818389
Compare
Review status: 28 of 66 files reviewed at latest revision, 3 unresolved discussions. src/app/frontend/common/namespace/namespaceselect_component.js, line 107 [r1] (raw file):
|
LGTM so far, I'll review the tests tomorrow morning :)
|
Oh, I almost forgot: so where is this deploy button after all :D ?
|
f818389
to
bff920d
Compare
Addressed comments. PTAL
|
Reviewed 11 of 57 files at r1, 7 of 7 files at r6. src/app/frontend/replicationcontrollerdetail/replicationcontrollerdetail_module.js, line 16 [r6] (raw file):
should be src/test/frontend/common/namespace/namespace_stateconfig_test.js, line 29 [r6] (raw file):
Maybe $state.go('fakeState') right now I am not sure if the src/test/frontend/common/namespace/namespaceselect_component_test.js, line 97 [r6] (raw file):
Is this a copy of the previous test (maybe a left-over)? It has the same name, and the only difference is the very last src/test/frontend/workloads/workloads_stateconfig_test.js, line 21 [r6] (raw file):
Rename to workloads? src/test/frontend/workloads/workloads_stateconfig_test.js, line 33 [r6] (raw file):
Rename to workloads? Comments from Reviewable |
Last comments I think, PTAL |
@taimir Sorry for confusion. I will have yet another version in like an hour. To fix the problem with hiding actionbar. I'll let you know when it is ready. |
da8567c
to
6d43274
Compare
Last PTAL :) I've made changes to fix the problem with disappearing action bar. Now there is chromeState instead of namespaceState. It does the same thing, but our template is no longer
|
|
There's some integration test failures that are flaky maybe (or need to be fixed), other than that great stuff :) |
Review status: all files reviewed at latest revision, 1 unresolved discussion, some commit checks failed. src/app/backend/resource/common/resourcechannels.go, line 300 [r8] (raw file):
|
All right. Thanks for comprehensive review @taimir! I'll fix travis and merge now. |
6d43274
to
7a15a16
Compare
Reviewed 3 of 3 files at r9. Comments from Reviewable |
8662fc1
to
97344d0
Compare
Reviewed 21 of 59 files at r1, 1 of 20 files at r4, 2 of 11 files at r5, 39 of 48 files at r7, 5 of 5 files at r8, 7 of 7 files at r10. Comments from Reviewable |
97344d0
to
c38227e
Compare
Reviewed 1 of 1 files at r11. Comments from Reviewable |
c38227e
to
e293c82
Compare
1. Sorry for the size, but this PR was all-in or nothing 2. The mechanics for namespace is that user selects it via the dropdown and the selection goes through all pages, but has effect on display only on list pages. 3. The selector is now ugly. I'll style and improve wording later.
e293c82
to
36e3397
Compare
Reviewed 7 of 7 files at r12. Comments from Reviewable |
and the selection goes through all pages, but has effect on display
only on list pages.
This change is