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

Migration script to handle existing custom taxonomies #42

Closed
dkoo opened this issue Feb 25, 2021 · 1 comment · Fixed by #67
Closed

Migration script to handle existing custom taxonomies #42

dkoo opened this issue Feb 25, 2021 · 1 comment · Fixed by #67

Comments

@dkoo
Copy link
Contributor

dkoo commented Feb 25, 2021

#39 deprecates the custom category and tag taxonomies for listings only, in favor of post categories and tags. This PR will be a breaking change, so we should consider creating a migration script to help sites who may be using those taxonomies. This script should get all listing posts that have terms from the deprecated taxonomies and then:

  1. Check for a corresponding post category or tag term with the same name, and if it exists, assign that
  2. If a corresponding post category or tag term doesn't exist with the same name, create and assign it
  3. (optionally) remove the term assignments for the deprecated taxonomies from any posts that have them

Tagged as on hold so we can confirm whether this is needed first.

@matticbot
Copy link
Contributor

🎉 This issue has been resolved in version 2.0.0-alpha.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Successfully merging a pull request may close this issue.

2 participants