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

feat: Bulk deletion on "Manage Data" page #3056

Merged

Conversation

Kuchenpirat
Copy link
Collaborator

@Kuchenpirat Kuchenpirat commented Jan 27, 2024

What type of PR is this?

  • feature

What this PR does / why we need it:

This adds bulk deletion functionality to all remaining tabs (recipes already had that functionality) in the Manage Data page.
Especially with the upcomming pr #3037 that significantly increases the size of our seed database it might be a welcome inclusion to be able to delete data without having to manually delete a large amount of items one by one.

Which issue(s) this PR fixes:

Closes #2862

Special notes for your reviewer:

I had to change a bit of the CrudTable bulkAction logic to reset the selected items on execution, but as the CrudTable is not used anywhere else it should not break anything.
Not directly concerning this pr, but the individual manage data pages are reusing a lot of code again and again so we should put more of that in a components (already working on that).

Testing

Manual testing.

@Kuchenpirat Kuchenpirat changed the title Bulk delete on Manage Data Page feat: Bulk deletion on "Manage Data" page Jan 27, 2024
@hay-kot hay-kot self-requested a review February 2, 2024 23:55
@hay-kot hay-kot self-assigned this Feb 2, 2024
Copy link
Collaborator

@hay-kot hay-kot left a comment

Choose a reason for hiding this comment

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

LGTM. Fixed a small bug with the reactivity of the stores so when you do the deletion, they don't get removed.

This has been a looooonnng standing bug and the fix was silly easy.

@hay-kot hay-kot enabled auto-merge (squash) February 4, 2024 16:38
@Kuchenpirat
Copy link
Collaborator Author

Kuchenpirat commented Feb 4, 2024

Uff, how did I not see that. Was looking at them yesterday. Nice catch!

Guess this fixes #2862 then?
Am just on mobile, so can't make sure atm.

@hay-kot
Copy link
Collaborator

hay-kot commented Feb 4, 2024

Guess this fixes #2862 then?

I think so!

@hay-kot hay-kot merged commit 52c58e1 into mealie-recipes:mealie-next Feb 4, 2024
9 checks passed
@Kuchenpirat Kuchenpirat deleted the manage-data-bulk-deletion branch February 4, 2024 19:03
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] - Updating foods does not update frontend
3 participants