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 didn’t consistently migrate taxonomy-collection connection #64

Open
fitzage opened this issue Aug 31, 2020 · 0 comments
Open
Labels
bug Something isn't working

Comments

@fitzage
Copy link

fitzage commented Aug 31, 2020

I was trying to figure out why one of my collections would not filter by taxonomy. I eventually tracked it down to the collection definition file.

blog.yaml looked like this:

template: article
title: Blog
route: '/blog/{year}/{month}/{day}/{slug}'
taxonomies:
  - tags
date: true
date_behavior:
  past: public
  future: unlisted
sort_dir: desc

and press.yaml looked like this:

template: press
title: Press
route: '/press-releases/{year}/{month}/{day}/{slug}'
date: true
date_behavior:
  past: public
  future: unlisted
sort_dir: desc

Notice that in press.yaml, the taxonomies node is missing. Updating it to look like this solved my problem:

template: press
title: Press
route: '/press-releases/{year}/{month}/{day}/{slug}'
taxonomies:
  - press
date: true
date_behavior:
  past: public
  future: unlisted
sort_dir: desc

So I’m not sure 1) why this is required in v3, but not v2, and 2) not sure where it got this info to migrate it, but 3) it migrated that info for blog but not for press.

The blueprints are set up the same for both of them, except that press limits the taxonomy field to one term.

@jesseleite jesseleite added the bug Something isn't working label Dec 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants