Skip to content

Remove collection from crawl configs on delete #2608

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

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

emma-sg
Copy link
Member

@emma-sg emma-sg commented May 13, 2025

Closes #2609

Ensure collection id is removed from both crawls and crawl configs when a collection is deleted.

Ideally this should be integration-tested too, will take a look at that at some point.

Testing

Tested locally.

  1. Create a collection
  2. Create a workflow set to auto-add to the collection
  3. Delete the collection
  4. Verify that the auto-add entry in the workflow was also deleted

emma-sg added 2 commits May 13, 2025 19:54
- ensure collection ID is removed from both crawls and crawl configs when a collection is deleted
@emma-sg emma-sg requested a review from ikreymer May 13, 2025 23:59
@emma-sg
Copy link
Member Author

emma-sg commented May 14, 2025

Oh, guess this should probably happen in a transaction, hold on

@emma-sg emma-sg marked this pull request as draft May 14, 2025 00:06
@emma-sg emma-sg added the bug Something isn't working label May 14, 2025
@emma-sg emma-sg marked this pull request as ready for review May 14, 2025 00:23
@emma-sg emma-sg self-assigned this May 14, 2025
@emma-sg emma-sg requested a review from tw4l May 14, 2025 00:24
@emma-sg emma-sg linked an issue May 14, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Workflow auto-add isn't updated when a collection is deleted
1 participant