Skip to content

fix: respect workspace in collection & integration type after save bots #4830

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

Merged
merged 4 commits into from
Apr 17, 2025

Conversation

techfg
Copy link
Collaborator

@techfg techfg commented Apr 16, 2025

What does this PR do?

Ensures that workspace is respected when collection & integration type metadata is being deleted after a collection/integration type has been removed.
 
Resolves #4801

Testing

tested manually and confirmed.

TBD: Write tests.

@techfg techfg requested a review from humandad April 16, 2025 08:51
@techfg techfg changed the title fix: respect workspace in collection after save bot fix: respect workspace in collection & integration type after save bots Apr 17, 2025
@@ -29,7 +29,7 @@ HTTP 200
# TODO: Unclear why this assert exists as its fragile and likely does not help in any way since underlying
# data can change across the test suite. Evaluate this tests purpose and adjust the assert to be
# explicit/more meaningful or remove.
jsonpath "$[*]" count == 29
jsonpath "$[*]" count == 30
Copy link
Contributor

Choose a reason for hiding this comment

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

Wait... Were these asserts actually relying on the bug you just fixed to delete a collection? Not that it's fixed, the collection isn't deleted?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

These are asserting against dev workspace. I changed the test here to delete the "duplicate" workspace I created instead of deleting from dev workspace so these counts went up.

@techfg techfg merged commit b373b8c into main Apr 17, 2025
6 checks passed
@techfg techfg deleted the fix/issue-4801-restrict-collection-del-to-workspace branch April 17, 2025 15:57
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.

bug: deleting workspace "A" effects other workspaces
2 participants