-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
clear namespaces on logout and properly render nested namespaces in the namepace picker #7186
Conversation
bab5f35
to
37231db
Compare
this.get('controlGroup').deleteTokens(); | ||
this.get('console').set('isOpen', false); | ||
this.get('console').clearLog(true); | ||
this.auth.deleteCurrentToken(); |
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.
💅 💅 💅
<LinkTo | ||
@params={{array "vault.cluster.secrets" (query-params namespace=normalizedNamespace)}} | ||
class={{concat "is-block " class}} | ||
data-test-namespace-link={{this.normalizedNamespace}} |
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.
why do we need the this.
now?
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's not required, but it's helpful to clarify what's state on the component, what's an argument to a component (@foo
), and what's a helper. https://github.com/emberjs/rfcs/blob/master/text/0276-named-args.md has more about that. I should probably update the other use of normalizedNamespace
too haha.
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.
small question but this looks great!
…d namespaces would not show up in the navigation
defc5c5
to
86e0991
Compare
…he namepace picker (#7186) * reset namespace cache when a user logs out * fix issue where if you log in to a namespace with an initial /, nested namespaces would not show up in the navigation * set an empty list of namespaces instead of ignoring error * add tests for namespace bugs * use this consistently in template
* ancestorKeysForKey always returns an array (#6205) * clear namespaces on logout and properly render nested namespaces in the namepace picker (#7186) * reset namespace cache when a user logs out * fix issue where if you log in to a namespace with an initial /, nested namespaces would not show up in the navigation * set an empty list of namespaces instead of ignoring error * add tests for namespace bugs * use this consistently in template
This fixes two small namespace bugs:
/
, the namespace-picker would not show any namespaces nested further down because the tree construction would try to match/foo
withfoo
.This PR fixes both of these issues.