-
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
Migrate block editor insert usage to preferences store #39632
Open
talldan
wants to merge
12
commits into
trunk
Choose a base branch
from
migrate/block-editor-insert-usage-to-preferences-store
base: trunk
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Migrate block editor insert usage to preferences store #39632
talldan
wants to merge
12
commits into
trunk
from
migrate/block-editor-insert-usage-to-preferences-store
Commits on Jul 18, 2024
-
Migrate block editor insert usage to preferences store
Update tests Make updateInsertUsage a proper action that can be unit tested Fix reusable block tests Update test Try fixing private actions with new store registration Update tests Add special handling for the insertUsage migration as it was performed later than others Remove unused function Add mark next change as expensive action to preferences store Update debounce function to handle a longer debounce for expensive changes Mark the insertUsage preference change as expensive Make expensive calls use a trailing edge debounce Fix duplicate keys in tests Improve trailing edge test Fix tests, and ensure options object is optional Make updateInsertUsage a private API Make markNextChangeAsExpensive a private API Update docs Update package-lock Opt-in preferences as a core module using private apis Do not unlock what is already unlocked Remove time property from INSERT_BLOCKS and REPLACE_BLOCKS action objects Rename `match` to `variation` Rename file to create-async-debouncer Add an extra param for defining the debounce of expensive requests Add a default value of `false` for the `isExpensive` option Make `__unstableGetInsertUsage` a private selector called `getInsertUsage`. Remove `__unstableGetInsertUsageForBlock` Only run the migration when needed Keep the `insertUsage` data at a maximum of 100 records Fix linting issues Update docs
Configuration menu - View commit details
-
Copy full SHA for b7746d5 - Browse repository at this point
Copy the full SHA b7746d5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7b77cf8 - Browse repository at this point
Copy the full SHA 7b77cf8View commit details -
Configuration menu - View commit details
-
Copy full SHA for c248301 - Browse repository at this point
Copy the full SHA c248301View commit details -
Configuration menu - View commit details
-
Copy full SHA for 35f769f - Browse repository at this point
Copy the full SHA 35f769fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0973730 - Browse repository at this point
Copy the full SHA 0973730View commit details -
Configuration menu - View commit details
-
Copy full SHA for 776ce33 - Browse repository at this point
Copy the full SHA 776ce33View commit details -
Configuration menu - View commit details
-
Copy full SHA for 01c8545 - Browse repository at this point
Copy the full SHA 01c8545View commit details -
Configuration menu - View commit details
-
Copy full SHA for e53f940 - Browse repository at this point
Copy the full SHA e53f940View commit details -
Configuration menu - View commit details
-
Copy full SHA for 152c653 - Browse repository at this point
Copy the full SHA 152c653View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8535582 - Browse repository at this point
Copy the full SHA 8535582View commit details -
Configuration menu - View commit details
-
Copy full SHA for ff68aa1 - Browse repository at this point
Copy the full SHA ff68aa1View commit details -
Configuration menu - View commit details
-
Copy full SHA for f33d99c - Browse repository at this point
Copy the full SHA f33d99cView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.