-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
[ CoreData Entities ] add support for delete operations #21557
Conversation
Size Change: -1.01 MB (87%) 🏆 Total Size: 1.15 MB
ℹ️ View Unchanged
|
40bb71d
to
26a70f8
Compare
I've added a As a quick fix we could not use entities :) or otherwise we need the delete option in place. In absence, the delete works but on switching between menus the cache wrongly shows deleted menu items too. cc @noisysocks |
43edd43
to
f010401
Compare
f010401
to
ffb83d4
Compare
packages/edit-navigation/src/components/menu-editor/use-navigation-blocks.js
Outdated
Show resolved
Hide resolved
packages/edit-navigation/src/components/menu-editor/use-navigation-blocks.js
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left a few small notes
packages/edit-navigation/src/components/menu-editor/use-navigation-blocks.js
Outdated
Show resolved
Hide resolved
packages/edit-navigation/src/components/menu-editor/use-navigation-blocks.js
Outdated
Show resolved
Hide resolved
packages/edit-navigation/src/components/menu-editor/use-navigation-blocks.js
Outdated
Show resolved
Hide resolved
packages/edit-navigation/src/components/menu-editor/use-navigation-blocks.js
Outdated
Show resolved
Hide resolved
93c0e09
to
c6896f7
Compare
@draganescu I think I got it to work, the culprit was the |
packages/edit-navigation/src/components/menu-editor/use-navigation-blocks.js
Outdated
Show resolved
Hide resolved
This is looking really good! We need to add unit tests for the two new actions ( Let's also add a note to |
7f3aa1e
to
c059655
Compare
@draganescu I rebased, tested a few scenarios, and here's what happened: |
Apparently nested items break the deletions and it appears to be a bug in the hook because all the nested items get deleted. |
* 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
d91d165
to
5abdf63
Compare
…removed useless string conversion
Co-authored-by: Enrique Piqueras <epiqueras@users.noreply.github.com>
…ms action also improves tests and made sure the notifications always have unique ids
- test delete for final shape when generator is done - simplify filter removing items from query
Description
Adds support for delete operations to entities. For a testing example use #22428
Screenshots
Types of changes
New feature to the entity actions and reducers that enable one to call
delete[EntityName]