Hello,

Thanks for this wonderful module !

I was wondering if its possible to configure exposed operators.

Problem:
When we expose operator, all available operators are visible to users. I want only specified operators to be visible to users. For example, for a field_xyz I have following operators available:

  • Is one of
  • Is all of
  • Is none of
  • Is empty (NULL)
  • Is not empty (NOT NULL)

I only want users to see follwings:

  • Is one of
  • Is all of
  • Is none of

I don't want users to see NULL and NOT NULL operators.

It would be great if we have an option to do so.

Thanks in advance!

CommentFileSizeAuthor
#95 1886018-95.patch57.65 KBdagmar
#95 interdiff-1886018-88-95.txt1.67 KBdagmar
#88 1886018-88.patch57.66 KBdagmar
#88 interdiff-1886018-87-88.txt1005 bytesdagmar
#87 1886018-87.patch57.64 KBdagmar
#87 interdiff-1886018-85-87.txt2.75 KBdagmar
#85 1886018-85.patch57.65 KBdagmar
#85 interdiff-1886018-83-85.txt960 bytesdagmar
#83 1886018-83.patch57.65 KBdagmar
#83 interdiff-1886018-81-83.txt5.42 KBdagmar
#81 interdiff-1886018-79-81.txt556 bytesdagmar
#81 1886018-81.patch56.62 KBdagmar
#79 interdiff-1886018-77-79.txt740 bytesdagmar
#79 1886018-79.patch56.6 KBdagmar
#77 1886018-77.patch56.6 KBdagmar
#77 interdiff-1886018-75-77.txt817 bytesdagmar
#75 interdiff-1886018-73-75.txt797 bytesdagmar
#75 1886018-75.patch56.6 KBdagmar
#73 1886018-73.patch56.61 KBdagmar
#70 1886018-70.patch37.55 KBdagmar
#68 1886018-68.patch36.43 KBdagmar
#65 interdiff-1886018-63-65.txt9.98 KBdagmar
#65 1886018-65.patch53.63 KBdagmar
#63 1886018-63.patch45.22 KBdagmar
#63 interdiff-1886018-61-63.txt630 bytesdagmar
#61 1886018-61.patch44.61 KBdagmar
#61 interdiff-1886018-56-61.txt3.17 KBdagmar
#56 interdiff-1886018-55-56.txt7.57 KBdagmar
#56 1886018-56.patch41.88 KBdagmar
#55 1886018-55.patch34.32 KBdagmar
#55 interdiff-1886018-54-55.txt506 bytesdagmar
#54 1886018-54.patch34.48 KBdagmar
#52 1886018-52.patch34.8 KBdagmar
#50 1886018-50.patch17.2 KBdagmar
#43 limit-exposed-operators-1886018-43.patch15.9 KBdagmar
#32 interdiff-1886018-29-31.txt632 bytesdagmar
#32 limit-exposed-operators-1886018-31.patch15.85 KBdagmar
#30 interdiff-1886018-19-29.txt5.82 KBdagmar
#29 interdiff-1886018-27-29.txt2.17 KBdagmar
#29 limit-exposed-operators-1886018-29.patch15.85 KBdagmar
#27 interdiff-1886018-25-27.txt682 bytesdagmar
#27 limit-exposed-operators-1886018-27.patch15.79 KBdagmar
#25 interdiff-1886018-19-25.txt5.76 KBdagmar
#25 limit-exposed-operators-1886018-25.patch15.79 KBdagmar
#19 limit_exposed_operators-1886018-19.patch13.39 KBdagmar
#19 interdiff-1886018-17-19.txt820 bytesdagmar
#17 interdiff-1886018-15-17.txt3.17 KBdagmar
#17 limit_exposed_operators-1886018-17.patch13.39 KBdagmar
#15 interdiff14_15.txt606 bytesMunavijayalakshmi
#15 limit_exposed_operators-1886018-15.patch13.01 KBMunavijayalakshmi
#14 interdiff-1886018-10-14.txt4.97 KBdagmar
#14 limit_exposed_operators-1886018-14.patch13.01 KBdagmar
#13 operator-2limited.png112.56 KBLendude
#11 limit_exposed_operators.png50.91 KBLendude
#11 limited_exposed.png27.09 KBLendude
#10 interdiff-1886018-8-10.txt4.55 KBdagmar
#10 limit_exposed_operators-1886018-10.patch10.86 KBdagmar
#8 interdiff-1886018-7-8.txt5.6 KBdagmar
#8 limit_exposed_operators-1886018-8.patch9.26 KBdagmar
#7 limit_exposed_operators-1886018-6.patch3.74 KBdagmar
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sunildhimal’s picture

Version: 7.x-3.5 » 8.x-3.x-dev

Is it possible to incorporate this feature in Views in D8 Core ?

Lendude’s picture

Title: Is it possible to configure exposed operators? » Make it possible to configure exposed filter operators
Project: Views (for Drupal 7) » Drupal core
Version: 8.x-3.x-dev » 8.1.x-dev
Component: exposed filters » views.module
Issue summary: View changes
Issue tags: +VDC

Moving to the right queue, and +1 on this.

Version: 8.1.x-dev » 8.2.x-dev

Drupal 8.1.0-beta1 was released on March 2, 2016, which means new developments and disruptive changes should now be targeted against the 8.2.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

dagmar’s picture

I worked on this patch long time ago for views #873872: Allow to limit which exposed operators apply

Version: 8.2.x-dev » 8.3.x-dev

Drupal 8.2.0-beta1 was released on August 3, 2016, which means new developments and disruptive changes should now be targeted against the 8.3.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.3.x-dev » 8.4.x-dev

Drupal 8.3.0-alpha1 will be released the week of January 30, 2017, which means new developments and disruptive changes should now be targeted against the 8.4.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

dagmar’s picture

Status: Active » Needs review
Issue tags: +Needs tests
FileSize
3.74 KB

This is an starting patch. Maybe someone want to continue during this weekend sprint.

dagmar’s picture

Here is the patch with tests. I had to modify the test_filter_in_operator_ui to include a filter with more operators to play with.

abi_cima’s picture

Status: Needs review » Needs work
  1. +++ b/core/modules/views/src/Plugin/views/filter/FilterPluginBase.php
    @@ -552,6 +561,35 @@ public function buildExposeForm(&$form, FormStateInterface $form_state) {
    +          '#description' => $this->t('Limit the operators available to choose to the selected on the list.'),
    

    This is not grammatically correct. It could be better if it is as follows:
    Limit the operators available to choose from to be shown on the list.

  2. +++ b/core/modules/views/src/Plugin/views/filter/FilterPluginBase.php
    @@ -552,6 +561,35 @@ public function buildExposeForm(&$form, FormStateInterface $form_state) {
    +          '#description' => $this->t('Select which operators will be available to be selected by the end user. Leave emtpy to allow select between all of them'),
    

    The second sentence will sound much better if it is as follows:
    Leave empty to show and choose from the complete list.

  3. +++ b/core/modules/views/src/Tests/Plugin/FilterTest.php
    @@ -163,4 +163,32 @@ public function testInOperatorSelectAllOptions() {
    +   * Tests the limit exposed operator functionality.
    

    Grammatically incorrect. It should be 'Tests the limit of the expose operator fonctionality.

dagmar’s picture

Status: Needs work » Needs review
FileSize
10.86 KB
4.55 KB

Thanks @abi_cima.

This patch includes the corrections proposed in #9 and the modifications to hide the min and max fields when there are not operators selected that use them.

Lendude’s picture

This works really nicely.

Patch looks great.

Any way to position the 'limit checkbox' and select list underneath the 'expose operator' checkbox?
Currently it aligns next to it and that makes it unclear to me that these things are tightly related.

Should we add an upgrade path for this? I don't think it's strictly necessary since we provide defaults, but it does make the change cleaner.

dagmar’s picture

Any way to position the 'limit checkbox' and select list underneath the 'expose operator' checkbox?

I've been playing with the views-ui-expose-filter-form.html.twig template. It seems it could be possible to organize the settings. However at this moment there is a mix of logic between the templates, views_ui module and the showOperatorForm, buildOptionsForm and other methods from FilterPluginBase.

Therefore the solution if much more complex that the code this patch provides.

I created #2860990: Move logic to configure exposed form into a template. as a tentative follow-up.

Lendude’s picture

Status: Needs review » Needs work
FileSize
112.56 KB

The followup sounds like a good idea.

Manually ran through this again and currently the limiting is also done in the 'Add' dialog, not just on the exposed filter.

In the dialog I would always expect to see all operators. And maybe we need a check that when limiting the operators, the default operator is still available?
And tests for this.

dagmar’s picture

Status: Needs work » Needs review
FileSize
13.01 KB
4.97 KB

In the dialog I would always expect to see all operators.

Done.

And maybe we need a check that when limiting the operators, the default operator is still available?

Done.

And tests for this.

Done.

Also I'm hiding the operators list if the user decide to not expose the operator, that was failing before.

Munavijayalakshmi’s picture

+++ b/core/modules/views/src/Plugin/views/filter/FilterPluginBase.php
@@ -305,6 +307,24 @@ protected function operatorForm(&$form, FormStateInterface $form_state) {
+   *   The exposed form bein built.

The word 'being' is misspelled as 'bein'.

Fixed and attached new patch.

Lendude’s picture

@dagmar, this looks really nice. Bit of nitpicking (sorry still not happy with the descriptions :):

  1. +++ b/core/modules/views/src/Tests/Plugin/FilterTest.php
    @@ -199,6 +199,13 @@ public function testLimitExposedOperators() {
    +    // Select by default a not valid operator.
    

    Set the default to an excluded operator.

  2. +++ b/core/modules/views/src/Plugin/views/filter/FilterPluginBase.php
    @@ -552,6 +572,36 @@ public function buildExposeForm(&$form, FormStateInterface $form_state) {
    +          '#description' => $this->t('Limit the operators available to choose from to be shown on the list.'),
    

    Limit the available operators to be shown on the exposed filter.

  3. +++ b/core/modules/views/src/Plugin/views/filter/FilterPluginBase.php
    @@ -552,6 +572,36 @@ public function buildExposeForm(&$form, FormStateInterface $form_state) {
    +          '#description' => $this->t('Leave empty to show and choose from the complete list.'),
    

    Only the selected operators will be shown on the exposed filter.

dagmar’s picture

Status: Needs review » Needs work

The last submitted patch, 17: limit_exposed_operators-1886018-17.patch, failed testing.

dagmar’s picture

Status: Needs work » Needs review
FileSize
820 bytes
13.39 KB
Lendude’s picture

Status: Needs review » Reviewed & tested by the community

I really like this. Thanks @dagmar

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 19: limit_exposed_operators-1886018-19.patch, failed testing.

sunildhimal’s picture

Lendude’s picture

Status: Needs work » Reviewed & tested by the community

Unrelated fail apparently

alexpott’s picture

Status: Reviewed & tested by the community » Needs work
Issue tags: +Needs change record
  1. We have new config keys / values - this means we're going to need an upgrade path
  2. Also we should have a change record.
  3. +++ b/core/modules/views/src/Plugin/views/filter/FilterPluginBase.php
    @@ -305,6 +307,24 @@ protected function operatorForm(&$form, FormStateInterface $form_state) {
       /**
    +   * Limits the available exposed operators.
    +   *
    +   * @param array $form
    +   *   The exposed form being built.
    +   * @param \Drupal\Core\Form\FormStateInterface $form_state
    +   */
    +  protected function limitOperatorOptions(&$form, FormStateInterface $form_state) {
    +    if (empty($this->options['expose']['operator_limit_selection']) ||
    +        empty($this->options['expose']['operator_list'])) {
    +      return;
    +    }
    +
    +    $options = $this->operatorOptions();
    +    $operator_list = $this->options['expose']['operator_list'];
    +    $form['operator']['#options'] = array_intersect_key($options, $operator_list);
    +  }
    
    @@ -843,6 +904,7 @@ public function buildExposedForm(&$form, FormStateInterface $form_state) {
    +      $this->limitOperatorOptions($form, $form_state);
    

    I think given we're adding this functionality to a base class I'm not sure we should risk a method. If we inline the function then there is no risk of method name clash.

  4. +++ b/core/modules/views/src/Plugin/views/filter/NumericFilter.php
    @@ -191,7 +191,22 @@ protected function valueForm(&$form, FormStateInterface $form_state) {
    +        if (in_array($operator, $this->operatorValues(2))) {
    

    Let's make this a strict check ie in_array(,,TRUE)

dagmar’s picture

Status: Needs work » Needs review
Issue tags: -Needs change record
FileSize
15.79 KB
5.76 KB

Change record: https://www.drupal.org/node/2869168

Added upgrade path and the suggestions by @alexpott.

Status: Needs review » Needs work

The last submitted patch, 25: limit-exposed-operators-1886018-25.patch, failed testing.

dagmar’s picture

Status: Needs work » Needs review
FileSize
15.79 KB
682 bytes

Status: Needs review » Needs work

The last submitted patch, 27: limit-exposed-operators-1886018-27.patch, failed testing.

dagmar’s picture

Status: Needs work » Needs review
FileSize
15.85 KB
2.17 KB
dagmar’s picture

FileSize
5.82 KB

Here is the interdiff between #19 and #25 to make easier the review.

Lendude’s picture

Looks good and addresses all feedback from @alexpott

one nitpick:

+++ b/core/modules/views/src/Tests/Update/LimitOperatorsDefaultsTest.php
@@ -0,0 +1,42 @@
+   * Tests that boolean filter values are updated properly.

copy/paste leftover

dagmar’s picture

Lendude’s picture

Status: Needs review » Reviewed & tested by the community

All feedback has been addressed, CR has been created, I think this adds a really great feature.

sunildhimal’s picture

Thanks for adding this great feature. It works as requested.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 32: limit-exposed-operators-1886018-31.patch, failed testing.

Lendude’s picture

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 32: limit-exposed-operators-1886018-31.patch, failed testing.

tacituseu’s picture

Status: Needs work » Reviewed & tested by the community

Same unrelated fail.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 32: limit-exposed-operators-1886018-31.patch, failed testing.

Lendude’s picture

dagmar’s picture

Before post a re-roll. @Lendude, do we need to put the update in a post_update hook? Can we use hook_update_N instead? We are not using the entity api there, it should be safe... What do you think?

Lendude’s picture

@dagmar I would always prefer a post_update when possible, no need to reroll when a different hook_update_N gets committed.

dagmar’s picture

Status: Needs work » Needs review
FileSize
15.9 KB

Thanks @Lendude. Here is the new patch with the tests updated.

dagmar’s picture

Anything missing here @Lendude?

Lendude’s picture

@dagmar thanks for the poke, dropped of my radar.

Looking at this again, we need to take care of existing module config. So follow #2870724: Define and document best practices for configuration entity updates/bc layers. Sorry, should have thought of that earlier. But since the update here is pretty straight forward, it shouldn't be to hard in this case I hope.

Version: 8.4.x-dev » 8.5.x-dev

Drupal 8.4.0-alpha1 will be released the week of July 31, 2017, which means new developments and disruptive changes should now be targeted against the 8.5.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

borisson_’s picture

Title: Make it possible to configure exposed filter operators » [PP-1] Make it possible to configure exposed filter operators
Status: Needs review » Postponed
Related issues: +#2870724: Define and document best practices for configuration entity updates/bc layers

So, this is blocked by the other issue? Postponing this on the other issue.

dagmar’s picture

Title: [PP-1] Make it possible to configure exposed filter operators » Make it possible to configure exposed filter operators
Assigned: Unassigned » dagmar
Status: Postponed » Needs work

No it just need an upgrade path. I forgot this ticket sorry. Let me see if I can finish the remaining work in the next days/week.

Version: 8.5.x-dev » 8.6.x-dev

Drupal 8.5.0-alpha1 will be released the week of January 17, 2018, which means new developments and disruptive changes should now be targeted against the 8.6.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

dagmar’s picture

Status: Needs review » Needs work

The last submitted patch, 50: 1886018-50.patch, failed testing. View results

dagmar’s picture

Status: Needs work » Needs review
FileSize
34.8 KB

Re-saved all the views to include the default configs in them.

dagmar’s picture

There is one more thing I would like to test. Date provides a custom implementation of the NumericFilter plugin.

1 method overrides NumericFilter::valueForm()

Date::valueForm in core/modules/views/src/Plugin/views/filter/Date.php
    Add a type selector to the value form

@mpdonadio @jhedstrom where do you think we could add this test?

dagmar’s picture

dagmar’s picture

dagmar’s picture

Added test coverage for datetime filter.

dagmar’s picture

#2865344: Exposed date filters 'empty' and 'not empty' are broken includes some test coverage for exposed filters too.

dagmar’s picture

Anything else missing for this? @Lendude

Version: 8.6.x-dev » 8.7.x-dev

Drupal 8.6.0-alpha1 will be released the week of July 16, 2018, which means new developments and disruptive changes should now be targeted against the 8.7.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

dagmar’s picture

Status: Needs review » Needs work
dagmar’s picture

Status: Needs work » Needs review
FileSize
3.17 KB
44.61 KB

Fixed the failing tests.

Status: Needs review » Needs work

The last submitted patch, 61: 1886018-61.patch, failed testing. View results

dagmar’s picture

Status: Needs work » Needs review
FileSize
630 bytes
45.22 KB

Status: Needs review » Needs work

The last submitted patch, 63: 1886018-63.patch, failed testing. View results

dagmar’s picture

Status: Needs work » Needs review
FileSize
53.63 KB
9.98 KB

Status: Needs review » Needs work

The last submitted patch, 65: 1886018-65.patch, failed testing. View results

Version: 8.7.x-dev » 8.8.x-dev

Drupal 8.7.0-alpha1 will be released the week of March 11, 2019, which means new developments and disruptive changes should now be targeted against the 8.8.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

dagmar’s picture

Status: Needs work » Needs review
FileSize
36.43 KB

Re-rolled for 8.8.x. Re-saved all demo_umami views.

Status: Needs review » Needs work

The last submitted patch, 68: 1886018-68.patch, failed testing. View results

dagmar’s picture

Status: Needs work » Needs review
FileSize
37.55 KB

Installed media_library and re-saved the view.

Manuel Garcia’s picture

Status: Needs review » Needs work

Looks like (at least) the upgrade path was omitted from the reroll on #68

Manuel Garcia’s picture

Since we are needing an update path, I suppose we'll need an update path test too

dagmar’s picture

Status: Needs work » Needs review
Issue tags: -Needs update path tests
FileSize
56.61 KB

@Manuel Garcia thanks! Indeed some files where out the original patch due some gitignore rules.

Status: Needs review » Needs work

The last submitted patch, 73: 1886018-73.patch, failed testing. View results

dagmar’s picture

Status: Needs work » Needs review
FileSize
56.6 KB
797 bytes

Status: Needs review » Needs work

The last submitted patch, 75: 1886018-75.patch, failed testing. View results

dagmar’s picture

Status: Needs work » Needs review
FileSize
817 bytes
56.6 KB

Status: Needs review » Needs work

The last submitted patch, 77: 1886018-77.patch, failed testing. View results

dagmar’s picture

Status: Needs work » Needs review
FileSize
56.6 KB
740 bytes

Status: Needs review » Needs work

The last submitted patch, 79: 1886018-79.patch, failed testing. View results

dagmar’s picture

Status: Needs work » Needs review
FileSize
56.62 KB
556 bytes
Manuel Garcia’s picture

Excellent we do have an upgrade path test already :D

Changes since #73 look good to me, and we have a green patch again, yay!

Read through the patch, only found a few nits/suggestions:

  1. +++ b/core/modules/views/src/Plugin/views/filter/NumericFilter.php
    @@ -258,7 +258,22 @@ protected function valueForm(&$form, FormStateInterface $form_state) {
    -    if ($which == 'all' || $which == 'minmax') {
    +    // If operators are limited, only show minmax fields if there is an
    +    // available exposed operator in the list.
    +    $two_value_operators_available = ($which == 'all' || $which == 'minmax');
    

    A bit of a nit, and perhaps it's because I'm new to the patch, but to me reading this comment doesn't make it clear clear why we need to do this, can we explain also the why in the comment? It'll help a lot when/if we need to modify this code in the future :)

  2. +++ b/core/modules/views/tests/src/Functional/Update/LimitOperatorsDefaultsTest.php
    @@ -0,0 +1,48 @@
    +  public function testViewsPostUpdateLimitOperatorsDefaultValues() {
    +    $this->runUpdates();
    

    For sanity's sake, let's assert that before the updates run, the view does not have the configuration we're adding in the upgrade path.

  3. +++ b/core/modules/datetime/tests/modules/datetime_test/test_views/views.view.test_exposed_filter_datetime.yml
    --- /dev/null
    +++ b/core/modules/datetime/tests/src/Functional/DateFilterTest.php
    
    +++ b/core/modules/datetime/tests/src/Functional/DateFilterTest.php
    @@ -0,0 +1,107 @@
    +  public static $modules = ['datetime_test', 'node', 'datetime', 'field', 'views_ui'];
    

    These should be in separate lines.

  4. +++ b/core/modules/datetime/tests/src/Functional/DateFilterTest.php
    @@ -0,0 +1,107 @@
    +    $this->adminUser = $this->drupalCreateUser(['administer views']);
    

    We're not defining the adminUser property but we're assigning it.

  5. +++ b/core/modules/datetime/tests/src/Functional/DateFilterTest.php
    @@ -0,0 +1,107 @@
    +
    

    Nit: Extra line

  6. +++ b/core/modules/views/src/Plugin/views/filter/FilterPluginBase.php
    @@ -623,6 +655,15 @@ public function buildExposeForm(&$form, FormStateInterface $form_state) {
    +        $this->t('You selected an operator as the default value that is not included on the list of limited operators.'));
    

    Nit: $this->t('You selected the %operator operator as the default value but is not included on the list of limited operators.', ['%operator' => $selected_operator]);

dagmar’s picture

Thanks for the review @Manuel Garcia!

Status: Needs review » Needs work

The last submitted patch, 83: 1886018-83.patch, failed testing. View results

dagmar’s picture

Status: Needs work » Needs review
FileSize
960 bytes
57.65 KB

Status: Needs review » Needs work

The last submitted patch, 85: 1886018-85.patch, failed testing. View results

dagmar’s picture

Status: Needs work » Needs review
FileSize
2.75 KB
57.64 KB
dagmar’s picture

Lendude’s picture

Status: Needs review » Reviewed & tested by the community

Great work on this, thank you! Went through this again and this looks great.

We have test coverage for:
- the normal functionality
- the min max changes
- the validation

We have an upgrade path for existing sites and new views getting installed and a test for that.

Manuel Garcia’s picture

Thanks @dagmar, latest changes look great. RTBC++

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 88: 1886018-88.patch, failed testing. View results

dagmar’s picture

Manuel Garcia’s picture

Status: Needs work » Reviewed & tested by the community

That got in yesterday.

larowlan’s picture

  1. +++ b/core/modules/views/src/Plugin/views/filter/FilterPluginBase.php
    @@ -559,6 +561,36 @@ public function buildExposeForm(&$form, FormStateInterface $form_state) {
    +          '#description' => $this->t('Only the selected operators will be shown on the exposed filter.'),
    

    Should we say 'selecting none will make all of them available' which is a common pattern?

  2. +++ b/core/modules/views/src/Plugin/views/filter/FilterPluginBase.php
    @@ -623,6 +655,15 @@ public function buildExposeForm(&$form, FormStateInterface $form_state) {
    +    if ($limit_operators && !in_array($selected_operator, $operators_selected)) {
    

    These are strings here, so should we use the third argument?

dagmar’s picture

Comments from @larowlan makes sense to me. Here is the new patch.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 95: 1886018-95.patch, failed testing. View results

dagmar’s picture

Status: Needs work » Reviewed & tested by the community

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 95: 1886018-95.patch, failed testing. View results

dagmar’s picture

Status: Needs work » Reviewed & tested by the community

Back to RTBC.

larowlan’s picture

adding issue credits for reviews

  • larowlan committed 09fdae1 on 8.8.x
    Issue #1886018 by dagmar, Munavijayalakshmi, Lendude, Manuel Garcia,...
larowlan’s picture

Status: Reviewed & tested by the community » Fixed
Issue tags: +8.8.0 release notes

Fixed on commit

diff --git a/core/modules/datetime/tests/modules/datetime_test/test_views/views.view.test_exposed_filter_datetime.yml b/core/modules/datetime/tests/modules/datetime_test/test_views/views.view.test_exposed_filter_datetime.yml
index cf4af75e41..9a9140b616 100644
--- a/core/modules/datetime/tests/modules/datetime_test/test_views/views.view.test_exposed_filter_datetime.yml
+++ b/core/modules/datetime/tests/modules/datetime_test/test_views/views.view.test_exposed_filter_datetime.yml
@@ -126,4 +126,3 @@ display:
         - url.query_args
         - 'user.node_grants:view'
       tags: {  }
-
diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_filter_in_operator_ui.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_filter_in_operator_ui.yml
index eaaa828359..cc73429982 100644
--- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_filter_in_operator_ui.yml
+++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_filter_in_operator_ui.yml
@@ -153,4 +153,3 @@ display:
         - url.query_args
         - 'user.node_grants:view'
       tags: {  }
-

Published change record

Committed 09fdae1 and pushed to 8.8.x. Thanks!

DamienMcKenna’s picture

If anyone wants to backport this to D7 I'd be happy to consider it for the next Views release *hint* *hint* :-)

dagmar’s picture

If anyone wants to backport this to D7 I'd be happy to consider it for the next Views release *hint* *hint* :-)

Done as well :) #873872: Allow to limit which exposed operators apply

DamienMcKenna’s picture

DamienMcKenna’s picture

Duh, yeah, thanks for the reminder.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

xjm’s picture

Status: Closed (fixed) » Needs work
Issue tags: +Needs release note

This issue is tagged for the 8.8.0 release notes, but does not have a release note.

Additionally, the change record here seems to describe a feature addition, not a disruptive change. If there are disruptive impacts from this issue, the release note and change record should be updated to describe those disruptive impacts.

Otherwise, the issue should be tagged for the 8.8.0 highlights instead. Thanks!

Lendude’s picture

Issue summary: View changes
Status: Needs work » Fixed
Issue tags: -8.8.0 release notes +8.8.0 highlights

I would say this is a highlight and not disruptive (if it is disruptive, we messed up that upgrade path ;)

If this needs a snippet too, let me know and I'll make something up.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

Wim Leers’s picture

Issue tags: -Needs release note

3 years ago this needed a release note, and it was changed to a highlight, so 👋 bye bye irrelevant tag.