Skip to content
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

Publish only changed and published entries when migrating content #1131

Open
tharders opened this issue Oct 11, 2022 · 2 comments
Open

Publish only changed and published entries when migrating content #1131

tharders opened this issue Oct 11, 2022 · 2 comments

Comments

@tharders
Copy link

Expected Behavior

When running a migration that changes content we normally want all the entries that are public available (that once have been published) to have the changes.
There should be an option for shouldPublish to only publish entries that have a published version, since entries in "DRAFT" state should not be published.

Actual Behavior

When running a migration with shouldPublish="preserve" the "PUBLISHED" entries will be automatically published and have the changes. While the "CHANGED" entries will not be published and the old published version will not have the changes.
When running a migration with shouldPublish=true all entries, including the 'DRAFT', are published, which is not desired.
It is not possible to publish only "CHANGED" and "PUBLISHED" entries.

Possible Solution

Add a new option for shouldPublish to allow publishing of only the entries in "PUBLISHED" and "CHANGED" state.

For example something like shouldPublish="oncePublished" or shouldPublish="changedAndPublished"

@pellebjerkestrand
Copy link

Something like this would help us a lot as well.

@ecline123
Copy link

Bump on this still outstanding issue. It's really unfortunate that the library only changes the latest version rather than both the published version and a changed version. We would like to rely on scripting updates to entries to maintain consistency with the content model. Without this capability, we can't.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants