-
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
Enterprise version detection fix #4547
Conversation
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.
👍 Just one minor suggestion.
ui/app/routes/vault/cluster.js
Outdated
@@ -29,7 +30,10 @@ export default Ember.Route.extend(ModelBoundaryRoute, ClusterRoute, { | |||
|
|||
model(params) { | |||
const id = this.getClusterId(params); | |||
return this.get('store').findRecord('cluster', id); | |||
|
|||
return this.get('version').fetchFeatures().then(() => { |
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.
Could move this to a beforeModel
hook, to prevent the explicit promise chaining and keep the model
hook simple.
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.
Oh yep, good call - updated in e9721df. Thanks!
58c07ff
to
e9721df
Compare
There was a bug if you were running the HSM build of Enterprise where the UI would parse the version wrong and lock you out of all Enterprise features.
In addition there was a race condition with the replication menu so you'd only see the type of replication you had enabled in the menu and Performance would be an upsell link. Now we fetch features at the cluster route to ensure they're loaded before the application nav renders.
We also fixed a small layout bug in the replication menu.