Skip to content
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

UI - auth method edit #4770

Merged
merged 4 commits into from
Jun 15, 2018
Merged

UI - auth method edit #4770

merged 4 commits into from
Jun 15, 2018

Conversation

meirish
Copy link
Contributor

@meirish meirish commented Jun 14, 2018

Some auth methods were erroneously left out of the helper so they wouldn't show up on the edit pages. This fixes that and adds some tests ensuring they're there in the application!

Fixes #4769

@meirish meirish added this to the 0.10.3 milestone Jun 14, 2018
@meirish meirish requested review from a team June 14, 2018 21:05
alisdair
alisdair previously approved these changes Jun 15, 2018
cli.enter();
indexPage.visit({ path });
andThen(() => {
let numTabs = type === 'aws' ? 4 : 2;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking at the data structure in the helper, it took me a few minutes to figure out why this wasn't ? 3 : 1 instead:

if (sectionType === 'authSettings') {
tabs = (TABS_FOR_SETTINGS[methodType] || []).slice();
tabs.push({
label: 'Method Options',
routeParams: ['vault.cluster.settings.auth.configure.section', 'options'],
});
return tabs;
}

Maybe a comment in the test explaining would help clarify?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added, thanks!

@meirish meirish merged commit 3c6bec9 into master Jun 15, 2018
@meirish meirish deleted the ui-auth-mount-edit branch June 15, 2018 17:53
@meirish meirish removed the backport label Aug 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

UI doesn't allow editing of auth methods
3 participants