-
Notifications
You must be signed in to change notification settings - Fork 40
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
Convert Vocabularies to CMI #174
Comments
I'm going to work on converting vocabularies to config files. A side-effect of this change is that vocabularies will no longer be "entities" by themselves. Akin to node types or user roles, vocabularies will be a type of taxonomy term. |
This is coming along smoothly. Initial work is at https://github.com/quicksketch/backdrop/compare/backdrop:1.x...quicksketch:174/vocab_config?expand=1 Tests are already about 98% passing, but I'm worried about the comprehensiveness of the tests. We're pretty clearly changing Views as part of the upgrade, since things like the "taxonomy_vocabulary" table no longer exist at all, you can't join to them. I think that's going to be expected and not a problem, but the existing filters and arguments for terms should definitely be upgraded, especially given how frequently they would be used. This upgrade can be done by reading out the individual view config files, finding any arguments/filters using the taxonomy vocabulary filter, then updating them to use the new handlers. |
Tests are now fully passing and we have a working PR at backdrop/backdrop#520. I've fully converted Views handlers to work without the The default Views that Backdrop ships with actually don't need any modification. And it turns out the missing vocabulary relationship is not necessary in most views that display Taxonomy terms. Most of the fields/filters/sorts we use on Taxonomy term listings were already on the taxonomy terms directly, without the need to manually add a vocabulary relationship. On top of that, I'm not sure we could replicate the functionality 100%. So overall I think we should forego an upgrade for this particular change, as we can't adequately rewrite a view that used this relationship now that it no longer exists. |
API changes in this issue:
|
I've merged in #174. This has quite a few API changes, tagging as needs change record. |
These are some big changes, but sound like they will make things simpler. Where are change records being documented? |
@docwilmot All change records will eventually be listed on api.backdropcms.org. Right now we have a handful of issues like this one that are tagged "needs change notice" - these have not yet been added to the API site. |
https://www.drupal.org/contributor-tasks/draft-change-record |
@docwilmot wonderful! :) Since I last commented here I think @cellear has started adding all the change records for our issues here on github, but there is a handful of change records on drupal.org that need to be added too. @cellear can you add a comment here about how you'd like to split the responsibility of the remaining change records? |
Thanks @jenlampton, glad you approve. Please advise how change records are submitted and details about the approval process if any. |
Change records can be submitted on api.backdropcms.org: https://api.backdropcms.org/node/add/changerecord I've created an account for you there, please use the password reset feature to log in. |
@jenlampton it seems anonymous can post now too. In fact we already have some spam. Please check permissions. |
@jenlampton fixed it up. Thanks @docwilmot :) |
Cool |
Made a list at backdrop-ops/backdropcms.org#25. Will continue there since this issue was closed long ago. |
Vocabularies need to save settings into a config file.
For reference, here is the parallel issue from drupal.org
The text was updated successfully, but these errors were encountered: