Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 298250

after 10.2.0 updb updae taxonomy_filter_user_context runs repeatedly

$
0
0

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.

User interface changes

API changes

Data model changes

Release notes snippet


Viewing all articles
Browse latest Browse all 298250

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>