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

Preserve folders when saving via server #427

Merged
merged 1 commit into from
May 1, 2024

Conversation

malcolmholmes
Copy link
Contributor

Currently, when a dashboard is saved via the server, it looses track of the dashboard folder, if set.

This PR fixes that. Rather than create a new resource to be saved, it retrieves the old resource from the existing resource set managed by the server, and replaces it's spec with the one being saved. This preserves the folder UID.

Depends upon #386.

Closes #425.

@malcolmholmes malcolmholmes force-pushed the malcolmholmes/server-preserve-folders branch from 88e80b8 to 46d32e1 Compare May 1, 2024 14:42
@malcolmholmes malcolmholmes merged commit 6b8e734 into main May 1, 2024
7 checks passed
@malcolmholmes malcolmholmes deleted the malcolmholmes/server-preserve-folders branch May 1, 2024 14:45
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.

[Feature Request]: Supporting the Folder Structure in grr serve
2 participants