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/fix db role ttl display #14224

Merged
merged 4 commits into from
Feb 23, 2022
Merged

UI/fix db role ttl display #14224

merged 4 commits into from
Feb 23, 2022

Conversation

hashishaw
Copy link
Collaborator

This PR fixes a UI issue where the TTL looked like it never changed from 1h (the default) when really the adapter was not parsing the correct value from the API, which is default_ttl.

@hashishaw hashishaw added ui bug Used to indicate a potential bug labels Feb 23, 2022
@hashishaw hashishaw added this to the 1.10 milestone Feb 23, 2022
@@ -63,6 +63,14 @@
@label={{capitalize (or attr.options.label (humanize (dasherize attr.name)))}}
@value={{stringify (get @model attr.name)}}
/>
{{else if (eq attr.options.editType "ttl")}}
Copy link
Contributor

Choose a reason for hiding this comment

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

just checking that the editType here doesn't need to be default_ttl?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Nope, the attr.name is default_ttl, but here I'm checking if editType (as set in the options on the model) is ttl, as it is for max_ttl as well, so that we can format it correctly 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Used to indicate a potential bug ui
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Generated credentials’s Time-to-Live on UI is not reflecting real value
2 participants