-
Notifications
You must be signed in to change notification settings - Fork 56
Show lock deletion tip when core update fails with lock error #296
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
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
features/core-update.feature
Outdated
|
|
||
| # Create a lock option to simulate another update in progress | ||
| When I run `wp option add core_updater.lock 1` | ||
| Then STDOUT should contain: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@swissspidy This looks like testing of wp-cli/entity-command
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mean we should remove the assertion here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMHO yes, tests fot then wp-cli/entity-commad are in the command repo.
Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
Summary
Successfully implemented the feature to show a helpful tip when
wp core updateencounters the "Another update is currently in progress" error.Changes Made:
is_lock_error()- Checks if a WP_Error is related to the core_updater.lock by:update()method - Detects lock errors and appends the helpful tip inlineUser Experience:
When users hit the lock error, they now see:
This makes the error message actionable without requiring users to read the help text.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.