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: Mount tune fix #4431

Merged
merged 4 commits into from
Apr 23, 2018
Merged

UI: Mount tune fix #4431

merged 4 commits into from
Apr 23, 2018

Conversation

meirish
Copy link
Contributor

@meirish meirish commented Apr 23, 2018

When saving the form on the mount-tune pages for auth methods, the attributes were camel-cased (defaultLeaseTtl) instead of snake-cased (default_lease_ttl) - vault still 204'd, but the fields were named incorrectly so they didn't get updated. Now we make sure to serialize the config model before tuning so that the fields are properly named.

@meirish meirish requested review from a team April 23, 2018 19:50
@meirish
Copy link
Contributor Author

meirish commented Apr 23, 2018

Fixes #4425

alisdair
alisdair previously approved these changes Apr 23, 2018
Copy link

@alisdair alisdair left a comment

Choose a reason for hiding this comment

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

Bugfix looks good to me! 👍 Spotted a typo in an unused part of the new page object.

import fields from '../form-field';
export default {
...fields,
ttlVaule: fillable('[data-test-ttl-value]'),

Choose a reason for hiding this comment

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

Typo?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Lol, yep good catch.

@meirish meirish merged commit b0fc932 into master Apr 23, 2018
@meirish meirish deleted the mount-config-fix branch April 23, 2018 20:32
truenorthcreative pushed a commit that referenced this pull request Apr 23, 2018
* serialize instead of toJSON when mount tuning

* add tests

* remove model unit test

* fix typo
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.

2 participants