Open laryn opened 1 year ago
Lets see, in D7 views there's:
Conversion from db to config and from vid to name happens in taxonomy_update_1001() and the table and term table fields get dropped in taxonomy_update_1002(). So we should have an option to process existing views before the info's gone.
If it's not getting too far afield or too deep into edge cases, we also might display a warning message after converting the _vid
handlers in certain cases (e.g. if the filter was exposed, the values for the filter will be different so URLs/bookmarks may not work with the same values in the query).
A quick note: during upgrade, the taxonomy update hooks are run before the views one. This means that any processing of existing views that make use of vocabulary handlers has to be done during or before taxonomy_update_1002()
, when the tables containing the vocabularies (and their vid
s) are removed. This process can't be done during the views update hooks - it's too late by then, all vids are lost.
the taxonomy update hooks are run before the views one
Maybe. There aren't defined hook_update_dependencies() for that specific case, yet. Views db to config conversion happens in views_update_1001().
Description of the bug
I'm noticing a broken View after an upgrade from D7. It seems that the handler for vocabulary names changed without a backwards compatible fix (I'm not sure if there are other handlers that are in the same boat). In this case, the D7 handler's classes are
views_handler_filter_vocabulary_machine_name
andviews_handler_filter_vocabulary_vid
but in Backdrop it isviews_handler_filter_vocabulary
. If you know about it, it's easy to re-add the filter in the view, which is now broken without warning, but is this something we can/should silently fix during the upgrade process, knowing it won't help previously upgraded sites but could make life easier for future upgraders?@argiepiano:
Cross-reference to Zulip.
Steps To Reproduce
To reproduce the behavior:
Expected behavior
Ideally this would be invisible and successfully upgrade the View to Backdrop's equivalent filter. If that is not possible, at least a warning during the upgrade process would be better than nothing.