-
Notifications
You must be signed in to change notification settings - Fork 150
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
New Action to transform entries to another content type #143
Conversation
…ed creating new entries for debugging purposes
@TimBeyer can you take a look at the changes? We are planning to do several more migrations in the beginning of January, which will further test this new migration type. |
Hey @aKzenT, This is ready to merge. can you please run After that, I will merge this PR. |
d3a9ff3
happy new year all together. @Khaledgarbaya I fixed the linter errors as requested. I am a bit unsure of the warning "no-unused-variable is deprecated" since this is a linter settings issue. I would ignore this for now? |
@GordonApplepie you can ignore it for now. |
🎉 This PR is included in version 0.16.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎉🎉🎉 @aKzenT thanks to all |
Hey @aKzenT and @GordonApplepie we would like to send you some thank you swags for your contributions. |
Hey @aKzenT, I just realized that we forgot to add a README.md addition for this change. |
Hi @TimBeyer, I will look after that now. Sadly I found a problem due to recent updates in the master branch regarding the "fetcher.ts". There is a new filter implementation that actually prevents to load the complete list of entries which we need to update the references. I will describe it again in the pull request. Editing the readme file now. |
I'm getting "Validation failed" error when trying to use
Using version 0.16.3 Full example of the migration file:
Should I create a separate Issue about this? |
@jarkkosyrjala I think you are mixing two different actions here "transformEntries" is not "transformEntriesToType". "preserve" is only available in the last one. |
@GordonApplepie if I saw it correctly, then |
@GordonApplepie what I updated in the fetcher was to always iterate through all pages for all paginated types, and to exclude archived entries from the transform. Our assumption was that since archived entries are basically soft deleted, they most likely should not be part of any transform or derive action. |
@GordonApplepie I made a PR that fixes the issue in #164 |
Made a PR that fixes this: #165 |
…o boolean values (#165) ## Summary shouldPublish should accept 'preserve' in addition to boolean values ## Description Add 'preserve' as a valid option to validations for shouldPublish field ## Motivation and Context #143 (comment)
Summary
This PR extends the available migrations with a new "transformEntriesToType"-transform that allows migrations from one content type to another as discussed in #113
Description
A new action was added to support the transformation. Various enhancements to the OfflineAPI as well as the Fetcher were needed to implement the features.
Motivation and Context
See #113
Todos