-
Notifications
You must be signed in to change notification settings - Fork 2.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
Performance/Refactor remove revision control #4238
Conversation
Default isEnabled to true
Remove methods to apply revisions to media
- Remove `isRevisionControlEnabled` conditional, keeping the contents of the block. - Remove the old publish logic
Remove tests related only to revision control features.
@aldeed I think we should probably merge this into Release 2.0 and not into 1.12.0 |
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.
@mikemurray Nice work. I found a few things that seem like they should be removed.
- In
/imports/plugins/core/catalog/client/containers/publishContainer.js
, callsMeteor.call("revisions/discard"
/imports/plugins/core/catalog/client/components/publishControls.js
still hasrenderUndoButton
method but it isn't called.- In
/imports/plugins/core/ui/client/components/media/mediaItem.js
, there are some revision checks that should not be needed now - In the json files in
/private/data/i18n
, there is arevisions
object. It seems like most of these are not needed anymore. Maybe keep onlyunpublishedChanges
andpublishChanges
? - Should be safe to remove the Revisions line from
/imports/collections/defineCollections.js
Still testing a few more things, but I'll start with those for my comments.
@aldeed Fixed your current set of issues. Let me know if you find any more. |
@mikemurray This is looking good to me. The only thing I noticed was that all the indicators for unpublished changes are gone. Is there no way to keep those? For example, by diffing Products w/ Catalog? I know the schemas are different so it's not necessarily easy. |
@aldeed We would need to diff or otherwise know that there have been changes since the last publish. |
Issue that was created to flag a product which has unpublished changes: #4264 |
Resolves #4237
Impact: breaking
Type: performance/refactor
Issue
Remove the
Revision
control system in favor of theCatalog
as having both is redundant.Solution
Remove all code, hooks, collections, and packages related to revision control.
Breaking changes
applyProductRevision
fromlib/api/products.js
Testing