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: Remove logic that skips sending object if not changed #21739

Merged
merged 2 commits into from Jul 11, 2023

Conversation

hashishaw
Copy link
Collaborator

This PR fixes an issue on the UI where editing an SSH role with default_extension set causes the default_extension to be cleared on edit (#21571)

I spot-checked all the other places where we use attr('object') and they seem to work (create, update) fine. Usually on update forms we use POST with the entire payload, so I'm not sure why this was the default behavior but if we find instances that this needs to be the case we can override those specific serializers.

@hashishaw hashishaw added ui bug Used to indicate a potential bug backport/1.12.x backport/1.13.x Backport changes to `release/1.13.x` backport/1.14.x Backport changes to `release/1.14.x` labels Jul 10, 2023
@hashishaw hashishaw added this to the 1.12.9 milestone Jul 10, 2023
@github-actions github-actions bot added the hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed label Jul 10, 2023
Copy link
Contributor

@Monkeychip Monkeychip left a comment

Choose a reason for hiding this comment

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

Looks good to me. I'll keep an eye out for other related tickets. This is an interesting one.

@hashishaw hashishaw merged commit 5a4e95d into main Jul 11, 2023
63 checks passed
@hashishaw hashishaw deleted the ui/VAULT-17902/ssh-role-removing-objects-on-edit branch July 11, 2023 15:28
sebinjohn pushed a commit to sebinjohn/vault that referenced this pull request Aug 11, 2023
* Remove logic that skips sending object if not changed

* Add changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/1.13.x Backport changes to `release/1.13.x` backport/1.14.x Backport changes to `release/1.14.x` bug Used to indicate a potential bug hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed ui
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants