-
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
ui: Add version diff comparison to KV v2 #23200
ui: Add version diff comparison to KV v2 #23200
Conversation
Build Results: |
`{ \"foo\": \"bar\" }`, // eslint-disable-line no-useless-escape | ||
'correctly pull in the data from version 4 and compared to version 1.' | ||
); | ||
assert.dom(PAGE.diff.deleted).hasText(`foo"bar"`); |
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.
case in point: I'd expect this to say hello"world"
since the newest version is foo: bar
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.
yeah - I think this makes a lot of sense!
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.
Overall great work, very clean!
CI Results: |
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.
:chefskiss:
While we had plans to remove this view from the UI, we received helpful feedback here that the diff version comparison was useful. This PR returns this view to the UI, which users can access by navigating to the
Version history
tab and clickingVersion diff >
in the toolbar:The diff comparison defaults to comparing the current secret version with the next latest, active (not deleted or destroyed) secret version. If the current version is deleted or destroyed an empty state message appears prompting the user to select a new secret version.