Skip to content
This repository was archived by the owner on Jul 28, 2024. It is now read-only.

'edit' -> 'update' for most actions#1251

Merged
borekb merged 3 commits intomasterfrom
1120-edit-update-action
Jul 4, 2017
Merged

'edit' -> 'update' for most actions#1251
borekb merged 3 commits intomasterfrom
1120-edit-update-action

Conversation

@borekb
Copy link
Copy Markdown
Member

@borekb borekb commented Jun 29, 2017

Resolves #1120

All legacy edit actions converted to update. There are some cases where both actions are still valid, e.g., plugin and themes have both the update (to a new version) and edit (plugin/theme files) actions.

The change is backwards compatible: if the edit action comes to TrackedChangeInfo and the scope doesn't have a proper description for it, it is upgraded to the update action. See fb432e6.

- Posts had both `edit` and `update` actions but I couldn't find where the `update` one was used. So there's now just a single `update` action, replacing the `edit` one as with other scopes.
- One exception where both `update` and `edit` are valid are plugins and themes: the `update` action means updating to a new version, `edit` is editing plugin / theme files.
- `EditActionChangeInfoPreprocessor` class renamed to `UpdateActionChangeInfoPreprocessor` and refactored a bit to fit the new naming.
@borekb borekb added this to the 4.0 milestone Jun 29, 2017
@borekb borekb self-assigned this Jun 29, 2017
@borekb borekb requested a review from JanVoracek June 29, 2017 23:11
@borekb borekb added the needs-migration Breaking change between VP versions due to a change in storage format. Needs migration. label Jun 29, 2017
@borekb borekb requested a review from pavelevap July 4, 2017 10:45
borekb and others added 2 commits July 4, 2017 12:55
# Conflicts:
#	plugins/versionpress/tests/End2End/Comments/CommentsTest.php
@borekb
Copy link
Copy Markdown
Member Author

borekb commented Jul 4, 2017

Thanks for the update, @JanVoracek, I've updated the PR description to indicate that this change is backwards compatible.

@borekb borekb removed the needs-migration Breaking change between VP versions due to a change in storage format. Needs migration. label Jul 4, 2017
@borekb borekb removed the request for review from pavelevap July 4, 2017 12:35
@borekb borekb merged commit ccb7442 into master Jul 4, 2017
@borekb borekb deleted the 1120-edit-update-action branch July 4, 2017 12:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants