Framework: Deprecate uid in favor of clientId
#7990
Merged
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.

Related: #7669
This pull request seeks to deprecate all references to "UID" in the codebase with equivalent "Client ID" naming. This change is being made in an effort to promote consistency on abbreviation capitalization, where, for example, previous selectors...
getAdjacentBlockUidgetBlockRootUID...become:
getAdjacentBlockClientIdgetBlockRootClientIdObserving the changes, you should see a number of other inconsistencies having been addressed here, including references to a block's
idwhereuidis intended.Note: This is a massive pull request, which is prone to becoming stale very quickly. I'd urge that this be acted upon soon to avoid issues with merge conflicts.
Implementation notes:
This does include deprecations, not only for the selectors, but also covering components which we expose on
wp.editorwhich accept some prop referencing a "uid". This is achieved through a new (and temporary)withDeprecatedUniqueIdhigher-order component.Testing instructions:
Ensure all forms of automated tests pass.
Verify there are no lingering references to UID in the entire codebase, aside from those necessary for temporary compatibility until total removal.
Ensure that deprecations work effectively. Here's a test block as an example, whose
editfunction depends on both theidprop being passed and theBlockTitlecomponent accepting auidprop: