- π¬π§United Kingdom altcom_neil
Hi, thanks for the work so far on this.
We have multiple sites built on the same systems but with some custom user roles. Comparing changes to views between sites has always thrown up the differences in these sections even though none have actually made any changes at all.
The latest patch didn't apply for me (D10.3.2), so I have created just a patch for the \Drupal\views\Plugin\views\filter\FilterPluginBase::validateExposeForm method from the latest D11 code.
This works stripping all of the redundant roles from the config.
- π¬π§United Kingdom altcom_neil
Sorry, correct patch file for 10.3+/11.x
- First commit to issue fork.
- Merge request !9830Resolve #2997393 "Filter out non-selected roles for the remember_roles setting in views" β (Closed) created by tobiasb
- π©πͺGermany tobiasb Berlin
I move the patch into a MR and fixes the rejected changes + typehints.
The post update uses now core/modules/views/src/ViewsConfigUpdater.php and moves the test into \Drupal\Tests\views\Functional\Plugin\FilterTest, because there are also other test for \Drupal\views\Plugin\views\filter\FilterPluginBase.
- πΊπΈUnited States smustgrave
Will probably need upgrade path tests.
Looks good!
- Assigned to tobiasb
- π©πͺGermany tobiasb Berlin
The update test is in core/modules/views/tests/src/Functional/Update/UserRememberRolesFilterSettingTest.php.
- π¬π§United Kingdom oily Greater London
Ran the 'test-only' test. It fails as it should. Pipeline otherwise all green.
- π¬π§United Kingdom oily Greater London
Corrected one typo then remembered the etiquette so added two threads: code comment nits.
- π¬π§United Kingdom catch
One comment on the post update, overall this looks good though.
- π©πͺGermany tobiasb Berlin
Rebased && add missing call to setDeprecationsEnabled.
- π¬π§United Kingdom catch
Looks great now, really nice to see this one ready.
Committed/pushed to 11.x, thanks!
Automatically closed - issue fixed for 2 weeks with no activity.