Problem/Motivation
after 10.2.0 updb updae taxonomy_filter_user_context runs during every drush updb command and seems not to ever compete.
Steps to reproduce
- update to D10.2.0
- run - drush -n -y updb
the following text is output:
-------- ------------------- ------------- ---------------------------------
Module Update ID Type Description
-------- ------------------- ------------- ---------------------------------
views taxonomy_filter_u post-update Removes User context from views
ser_context with taxonomy filters.
-------- ------------------- ------------- ---------------------------------
Proposed resolution
The resolution of this problem inside views.post_update.php is beyond my expertise
/**
* Removes User context from views with taxonomy filters.
*/
function views_post_update_taxonomy_filter_user_context(array &$sandbox = NULL): void {
/** @var \Drupal\views\ViewsConfigUpdater $view_config_updater */
$view_config_updater = \Drupal::classResolver(ViewsConfigUpdater::class);
\Drupal::classResolver(ConfigEntityUpdater::class)->update($sandbox, 'view', function (ViewEntityInterface $view) use ($view_config_updater): bool {
return $view_config_updater->needsTaxonomyTermFilterUpdate($view);
});
}
Remaining tasks
find out what core maintainers understand about this proble.