-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Use the new deleteEntityRecord to delete menus #22428
Use the new deleteEntityRecord to delete menus #22428
Conversation
Size Change: -109 B (0%) Total Size: 1.13 MB
ℹ️ View Unchanged
|
200c70e
to
2118c52
Compare
7f3aa1e
to
c059655
Compare
7bf5640
to
dcb6b9e
Compare
@draganescu #22603 is all about menu items and this one is about menus. Using batch requests for menu items makes sense since the model of interaction with them is "customize a lot of entities and save them all at once". On the other hand, the model of interaction with menus is more like "customize and save only entity at a time" so this PR is not only useful, but would also potentially solve #22340. |
12720bf
to
9703988
Compare
dcb6b9e
to
ef60a83
Compare
3b74e9e
to
ff6da60
Compare
ef60a83
to
f9ea8fe
Compare
f9ea8fe
to
0d381e2
Compare
0d381e2
to
3a4f26b
Compare
* adds delete menu with entity delete * updates the delete and removes the stateMenus * passes the new force query param * fix bug with resetting current menu after delete
* reset, delete nav menu items there is a missing state preservation when menus are changed on the menus editor component * fixing a bad merge * no invalidateCache and refactored according to review * revert change to getMergedItemIds * refactor according to self review * deletes query items, adds tests for new entity methods also adds changelog * refactored for properly deleteing entity ids from querries * updates tests * moved the REMOVE_ITEMS reducer to receive all query keys props @aduth * removes the need to send query on delete * updates some comments also removes cruft from a test * refactoring according to review - removes superfluous actions from deleteEntityRecords - treats invalidateCache properly - attempts to make lookups faster for items when removing querries * do not clear cache on delete * fixes test after reming superfluous actions from deleteEntityRecord * makes a proper POJO for removing items from queries and invalidates the cache after items are removed * fix changelog and add deleteQueryParams to deleteRecord * fixes test * Rename deleteQueryParams to query for consistency * Use the new deleteEntityRecord to delete menus (#22428) * adds delete menu with entity delete * updates the delete and removes the stateMenus * passes the new force query param * fix bug with resetting current menu after delete * fixes query param's type for consistency * comment linting, removed useless catch logic for deleteEntityRecord, removed useless string conversion * try implement error handling for delete * fixed the intentional typo and the unintentional one * updates and fixes according to review * rename remove items' action id collection * makes notices unique in menu editor * Update packages/core-data/src/queried-data/actions.js Co-authored-by: Enrique Piqueras <[email protected]> * fixes bugs introduced by renaming items to itemsIds in the remove items action also improves tests and made sure the notifications always have unique ids * lint * moves noticeId creation inside effect * updated according to review - test delete for final shape when generator is done - simplify filter removing items from query * lint Co-authored-by: Enrique Piqueras <[email protected]>
Description
Closes #22340 This PR implements deleting menus using entity delete. It depends on #21557
How has this been tested?
Tested locally by: