-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Cleans up web UI and fixes ACL token "stuckness" issue. #3245
Conversation
This included making the settings page global so it's reachable, and adding some more information about an error on the error page.
@@ -340,9 +340,6 @@ App.NodesShowRoute = App.BaseRoute.extend({ | |||
}, | |||
node: Ember.$.getJSON(formatUrl(consulHost + '/v1/internal/ui/node/' + params.name, dc.dc, token)).then(function(data) { | |||
return App.Node.create(data); | |||
}), | |||
nodes: Ember.$.getJSON(formatUrl(consulHost + '/v1/internal/ui/node/' + params.name, dc.dc, token)).then(function(data) { |
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.
I'm concerned about this one because we're later setting it:
https://github.com/hashicorp/consul/blob/master/ui/javascripts/app/routes.js#L359-L364
That will currently be nil'd out. I assume if you test this and do:
- View the nodes index page
- Click a specific node
This will then be unnecessary, but did you try visiting a node directly? I would worry it wouldn't then populate the left column given this commit.
If even that works, we should likely remove the above linked set of this attribute.
* Removes GitHub reference. * Doesn't display ACL token on the unauthorized page. * Removes useless fetch for nodes and cleans up comments. * Provides a path to reset the ACL token when it's invalid. This included making the settings page global so it's reachable, and adding some more information about an error on the error page. * Updates built-in web assets.
This makes a quick pass through the web UI to clean up some small issues as noted in the commits. This also fixes #2370 which prevents users from changing the ACL token if they've got an invalid one.