-
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
Update status entity label to Status
and plural to getStatuses
#55160
Conversation
I consider this a "code quality" or even a bugfix, so I tagged it for 16.9, the same release as the original PR that introduce this new entity #55050 |
I wonder if the "post" prefix is limiting here? Can we have "statuses" in other things that are not "posts"? |
The REST API docs use If we want to be more general, I'm fine with doing |
Size Change: -4 B (0%) Total Size: 1.65 MB
ℹ️ View Unchanged
|
@oandregal yeah I'm fine with either as well. just wanted to mention it in case you feel strongly one way or the other. |
Actually, and specially for the label. I prefer just "Status" personally because we do support status for things like "template", "template parts" (potentially global styles...). While these are "post types" internally, it's just an internal thing, for the user it's weird to have a "post status" for a "template"? |
status
to postStatus
Status
and plural to getStatuses
Status
and plural to getStatuses
Status
and plural to getStatuses
Flaky tests detected in 61aeaff. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/6455956856
|
Follow-up to #55050
Related #55158
What?
Updates the label of the status entity from
Post Status
toStatus
and the pluralized form of the method togetStatuses
.Why?
In preparing the documentation for
kind
,name
, andplural
properties of the entity config, I've realized the dynamically created methods for the status entity were inconsistent:We should consolidate the word root to be
postStatus
(hence the dynamic methods would begetPostStatus
andgetPostStatus
) orstatus
(hence, they'd begetStatus
,getStatuses
).How?
Uses
status
as root everywhere: label, entity name, pluralized form.Testing Instructions
Extracted from #55050