Core Data: Add checks to actions and selectors to avoid throwing errors when the relevant config is not loaded.#18559
Merged
Merged
Conversation
…relevant config is not loaded.
youknowriad
reviewed
Nov 18, 2019
youknowriad
left a comment
Contributor
There was a problem hiding this comment.
Do you think we can add some unit tests, to ensure these selectors/actions don't break when called early.
youknowriad
reviewed
Nov 18, 2019
…rdNonTransientEdits` on entities without configs.
Contributor
Author
|
Updated and Tested! 🚀 |
youknowriad
pushed a commit
that referenced
this pull request
Dec 5, 2019
…rs when the relevant config is not loaded. (#18559) * Core Data: Add checks to selectors to avoid throwing errors when the relevant config is not loaded. * Core Data: Throw when `editEntityRecord` targets an entity without a config. * Core Data: Fix default value typo in `getEntityRecordNonTransientEdits`. * Core Data: Test the behavior of `editEntityRecord` and `getEntityRecordNonTransientEdits` on entities without configs.
pento
pushed a commit
to WordPress/wordpress-develop
that referenced
this pull request
Dec 9, 2019
The list of included fixes: - Edge scrolling issues WordPress/gutenberg#17707 - Intermittent JavaScript issues WordPress/gutenberg#18559 - Remove embed CollegeHumor WordPress/gutenberg#18591 Updated packages: - @wordpress/block-directory@1.0.6 - @wordpress/block-editor@3.2.5 - @wordpress/block-library@2.9.6 - @wordpress/core-data@2.7.5 - @wordpress/edit-post@3.8.6 - @wordpress/editor@9.7.6 - @wordpress/format-library@1.9.5 Props youknowriad, ellatrix, epiqueras, audrasjb, gziolo, mcsf, kyliesabra. Fixes #48884. git-svn-id: https://develop.svn.wordpress.org/trunk@46860 602fd350-edb4-49c9-b593-d223f7449a82
nylen
pushed a commit
to nylen/wordpress-develop-svn
that referenced
this pull request
Dec 9, 2019
The list of included fixes: - Edge scrolling issues WordPress/gutenberg#17707 - Intermittent JavaScript issues WordPress/gutenberg#18559 - Remove embed CollegeHumor WordPress/gutenberg#18591 Updated packages: - @wordpress/block-directory@1.0.6 - @wordpress/block-editor@3.2.5 - @wordpress/block-library@2.9.6 - @wordpress/core-data@2.7.5 - @wordpress/edit-post@3.8.6 - @wordpress/editor@9.7.6 - @wordpress/format-library@1.9.5 Props youknowriad, ellatrix, epiqueras, audrasjb, gziolo, mcsf, kyliesabra. Fixes #48884. git-svn-id: https://develop.svn.wordpress.org/trunk@46860 602fd350-edb4-49c9-b593-d223f7449a82
markjaquith
pushed a commit
to markjaquith/WordPress
that referenced
this pull request
Dec 9, 2019
The list of included fixes: - Edge scrolling issues WordPress/gutenberg#17707 - Intermittent JavaScript issues WordPress/gutenberg#18559 - Remove embed CollegeHumor WordPress/gutenberg#18591 Updated packages: - @wordpress/block-directory@1.0.6 - @wordpress/block-editor@3.2.5 - @wordpress/block-library@2.9.6 - @wordpress/core-data@2.7.5 - @wordpress/edit-post@3.8.6 - @wordpress/editor@9.7.6 - @wordpress/format-library@1.9.5 Props youknowriad, ellatrix, epiqueras, audrasjb, gziolo, mcsf, kyliesabra. Fixes #48884. Built from https://develop.svn.wordpress.org/trunk@46860 git-svn-id: http://core.svn.wordpress.org/trunk@46660 1a063a9b-81f0-0310-95a4-ce76da25c4cd
gMagicScott
pushed a commit
to gMagicScott/core.wordpress-mirror
that referenced
this pull request
Dec 9, 2019
The list of included fixes: - Edge scrolling issues WordPress/gutenberg#17707 - Intermittent JavaScript issues WordPress/gutenberg#18559 - Remove embed CollegeHumor WordPress/gutenberg#18591 Updated packages: - @wordpress/block-directory@1.0.6 - @wordpress/block-editor@3.2.5 - @wordpress/block-library@2.9.6 - @wordpress/core-data@2.7.5 - @wordpress/edit-post@3.8.6 - @wordpress/editor@9.7.6 - @wordpress/format-library@1.9.5 Props youknowriad, ellatrix, epiqueras, audrasjb, gziolo, mcsf, kyliesabra. Fixes #48884. Built from https://develop.svn.wordpress.org/trunk@46860 git-svn-id: https://core.svn.wordpress.org/trunk@46660 1a063a9b-81f0-0310-95a4-ce76da25c4cd
pento
pushed a commit
to WordPress/wordpress-develop
that referenced
this pull request
Dec 9, 2019
The list of included fixes: - Edge scrolling issues WordPress/gutenberg#17707 - Intermittent JavaScript issues WordPress/gutenberg#18559 - Remove embed CollegeHumor WordPress/gutenberg#18591 Updated packages: - @wordpress/block-directory@1.0.6 - @wordpress/block-editor@3.2.5 - @wordpress/block-library@2.9.6 - @wordpress/core-data@2.7.5 - @wordpress/edit-post@3.8.6 - @wordpress/editor@9.7.6 - @wordpress/format-library@1.9.5 Props youknowriad, ellatrix, epiqueras, audrasjb, gziolo, mcsf, kyliesabra. Merges [46860] to the 5.3 branch. Fixes #48884. git-svn-id: https://develop.svn.wordpress.org/branches/5.3@46861 602fd350-edb4-49c9-b593-d223f7449a82
markjaquith
pushed a commit
to markjaquith/WordPress
that referenced
this pull request
Dec 9, 2019
The list of included fixes: - Edge scrolling issues WordPress/gutenberg#17707 - Intermittent JavaScript issues WordPress/gutenberg#18559 - Remove embed CollegeHumor WordPress/gutenberg#18591 Updated packages: - @wordpress/block-directory@1.0.6 - @wordpress/block-editor@3.2.5 - @wordpress/block-library@2.9.6 - @wordpress/core-data@2.7.5 - @wordpress/edit-post@3.8.6 - @wordpress/editor@9.7.6 - @wordpress/format-library@1.9.5 Props youknowriad, ellatrix, epiqueras, audrasjb, gziolo, mcsf, kyliesabra. Merges [46860] to the 5.3 branch. Fixes #48884. Built from https://develop.svn.wordpress.org/branches/5.3@46861 git-svn-id: http://core.svn.wordpress.org/branches/5.3@46661 1a063a9b-81f0-0310-95a4-ce76da25c4cd
gMagicScott
pushed a commit
to gMagicScott/core.wordpress-mirror
that referenced
this pull request
Dec 9, 2019
The list of included fixes: - Edge scrolling issues WordPress/gutenberg#17707 - Intermittent JavaScript issues WordPress/gutenberg#18559 - Remove embed CollegeHumor WordPress/gutenberg#18591 Updated packages: - @wordpress/block-directory@1.0.6 - @wordpress/block-editor@3.2.5 - @wordpress/block-library@2.9.6 - @wordpress/core-data@2.7.5 - @wordpress/edit-post@3.8.6 - @wordpress/editor@9.7.6 - @wordpress/format-library@1.9.5 Props youknowriad, ellatrix, epiqueras, audrasjb, gziolo, mcsf, kyliesabra. Merges [46860] to the 5.3 branch. Fixes #48884. Built from https://develop.svn.wordpress.org/branches/5.3@46861 git-svn-id: https://core.svn.wordpress.org/branches/5.3@46661 1a063a9b-81f0-0310-95a4-ce76da25c4cd
sikc8000
pushed a commit
to sikc8000/u0_a165-localhost
that referenced
this pull request
Feb 20, 2020
The list of included fixes: - Edge scrolling issues WordPress/gutenberg#17707 - Intermittent JavaScript issues WordPress/gutenberg#18559 - Remove embed CollegeHumor WordPress/gutenberg#18591 Updated packages: - @wordpress/block-directory@1.0.6 - @wordpress/block-editor@3.2.5 - @wordpress/block-library@2.9.6 - @wordpress/core-data@2.7.5 - @wordpress/edit-post@3.8.6 - @wordpress/editor@9.7.6 - @wordpress/format-library@1.9.5 Props youknowriad, ellatrix, epiqueras, audrasjb, gziolo, mcsf, kyliesabra. Fixes #48884. Built from https://develop.svn.wordpress.org/trunk@46860
sikc8000
pushed a commit
to sikc8000/u0_a165-localhost
that referenced
this pull request
Feb 20, 2020
The list of included fixes: - Edge scrolling issues WordPress/gutenberg#17707 - Intermittent JavaScript issues WordPress/gutenberg#18559 - Remove embed CollegeHumor WordPress/gutenberg#18591 Updated packages: - @wordpress/block-directory@1.0.6 - @wordpress/block-editor@3.2.5 - @wordpress/block-library@2.9.6 - @wordpress/core-data@2.7.5 - @wordpress/edit-post@3.8.6 - @wordpress/editor@9.7.6 - @wordpress/format-library@1.9.5 Props youknowriad, ellatrix, epiqueras, audrasjb, gziolo, mcsf, kyliesabra. Merges [46860] to the 5.3 branch. Fixes #48884. Built from https://develop.svn.wordpress.org/branches/5.3@46861
miya0001
pushed a commit
to cjk4wp/wordpress
that referenced
this pull request
Feb 20, 2020
The list of included fixes: - Edge scrolling issues WordPress/gutenberg#17707 - Intermittent JavaScript issues WordPress/gutenberg#18559 - Remove embed CollegeHumor WordPress/gutenberg#18591 Updated packages: - @wordpress/block-directory@1.0.6 - @wordpress/block-editor@3.2.5 - @wordpress/block-library@2.9.6 - @wordpress/core-data@2.7.5 - @wordpress/edit-post@3.8.6 - @wordpress/editor@9.7.6 - @wordpress/format-library@1.9.5 Props youknowriad, ellatrix, epiqueras, audrasjb, gziolo, mcsf, kyliesabra. Fixes #48884. git-svn-id: http://develop.svn.wordpress.org/trunk@46860 602fd350-edb4-49c9-b593-d223f7449a82
VenusPR
pushed a commit
to VenusPR/Wordpress_Richard
that referenced
this pull request
Mar 9, 2023
The list of included fixes: - Edge scrolling issues WordPress/gutenberg#17707 - Intermittent JavaScript issues WordPress/gutenberg#18559 - Remove embed CollegeHumor WordPress/gutenberg#18591 Updated packages: - @wordpress/block-directory@1.0.6 - @wordpress/block-editor@3.2.5 - @wordpress/block-library@2.9.6 - @wordpress/core-data@2.7.5 - @wordpress/edit-post@3.8.6 - @wordpress/editor@9.7.6 - @wordpress/format-library@1.9.5 Props youknowriad, ellatrix, epiqueras, audrasjb, gziolo, mcsf, kyliesabra. Merges [46860] to the 5.3 branch. Fixes #48884. Built from https://develop.svn.wordpress.org/branches/5.3@46861 git-svn-id: http://core.svn.wordpress.org/branches/5.3@46661 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
This PR adds some checks and guards to avoid throwing errors when
editEntityRecordorisEditedPostDirtyare called without the relevant entity config being loaded.How has this been tested?
It was verified that running:
and
for inexistent entity configs is handled gracefully.
Types of Changes
Bug Fix:
editEntityRecordandisEditedPostDirtyno longer throw an error when called beforecore-datais initialized.Checklist: