Background job taxonomy for queuing jobs#497
Background job taxonomy for queuing jobs#497ankitrox merged 14 commits intofeature/regenerate-existing-imagesfrom
Conversation
…eature/background-job-taxonomy
felixarntz
left a comment
There was a problem hiding this comment.
@ankitrox This is a good start, I left some comments (mostly minor) for things to refine.
One small note, please avoid using the feature/ prefix for your development branches as those branches will need branch protection rules. Only special branches (like the overall feature/regenerate-existing-images branch) should use that prefix. 👍
…WordPress/performance into feature/background-job-taxonomy
mukeshpanchal27
left a comment
There was a problem hiding this comment.
Left some nit-pick reviews.
| 'back_to_items' => __( 'Back to Background Jobs', 'performance-lab' ), | ||
| ); | ||
|
|
||
| $caps = perflab_get_background_job_capabilities(); |
| * @group regenerate-existing-images | ||
| */ | ||
|
|
||
|
|
eugene-manuilov
left a comment
There was a problem hiding this comment.
Thanks, @ankitrox. Added some feedback to your code that will probably will require additional discussion within our joint team.
Also, I think we need to remove the mention of the 491 ticket in the PR description because this PR doesn't implement the admin UI screen.
|
@eugene-manuilov We should keep #491 also as we have taken the decision to manipulate the visibility based on user capabilities. |
felixarntz
left a comment
There was a problem hiding this comment.
@ankitrox Only a few nit-picks left.
As @eugene-manuilov suggested, please remove #491 from the PR mentions. While this PR does part of introducing the default screen, it doesn't fully make it available, so let's work on that in a separate PR.
|
@felixarntz Addressed the feedback. Also, removed #491 from this PR. |
felixarntz
left a comment
There was a problem hiding this comment.
@ankitrox Great work!
@eugene-manuilov Could you please re-review? I left replies to your concerns. Let's address the admin screen details in a follow up.
eugene-manuilov
left a comment
There was a problem hiding this comment.
LGTM. Thanks, @ankitrox.
Summary
Create the
background_jobtaxonomy. This taxonomy is non-public and hidden in REST. This will by default be hidden in admin screen, but can be made visible usingperflab_enable_background_process_queue_screenfilter. ( #491 )Fixes #478
Relevant technical choices
Taxonomy has custom capabilities
User must have these capabilities assigned for the taxonomy (job queue) management. By default admin screen for this taxonomy (job queue) will be hidden.
Checklist
[Focus]orInfrastructurelabel.[Type]label.no milestonelabel.