Blog articles can keep using the tags keyword and pages should change to use the labels keyword for filtering. In mock_data, the keyword tags would change to labels. This is how CleanSlate works in production.
We would also have to simultaneously update the docs here on Github.
Steps to reproduce the issue
provost-oedc
repository.Results
If you look in mock_data.yml, the
pages
key has several pages with tags.When looking at the output, the pages are not filtered appropriately.
Expected results
Hammer should output only the pages with the appropriate tag/label.
What's happening here?
This is confusing because blogs/articles can be filtered using the
tags
keyword; whereas, pages can only be filtered using thelabels
keyword.Example code for blogs filtering via
tags
.Example code for pages filtering via
labels
.Potential solution
Blog articles can keep using the
tags
keyword and pages should change to use thelabels
keyword for filtering. Inmock_data
, the keywordtags
would change tolabels
. This is how CleanSlate works in production.We would also have to simultaneously update the docs here on Github.
Link to page filters in CleanSlate repo:
cleanslate/blob/dev/app/lib/slate/radius/tags/page.rb#L281 (Github)