- Issue created by @ranjith_kumar_k_u
- last update
over 1 year ago 29,554 pass, 1 fail - last update
over 1 year ago 29,563 pass - Status changed to Needs review
over 1 year ago 11:29am 29 June 2023 - Status changed to Needs work
over 1 year ago 12:04pm 29 June 2023 - ๐บ๐ธUnited States smustgrave
Test should check the actual full url. This could still have the parameters and be passing.
- last update
over 1 year ago 29,557 pass, 1 fail - last update
over 1 year ago 29,566 pass - Status changed to Needs review
over 1 year ago 12:10pm 30 June 2023 - Status changed to RTBC
over 1 year ago 12:04am 3 July 2023 - ๐บ๐ธUnited States smustgrave
With a standard install
Created a block off the Content view
Set the more link to always show
Placed in the content region of the olivero theme
Verified the link has the filter parameters on itApplied patch
Parameters are gone.
- Status changed to Needs work
over 1 year ago 7:03am 10 August 2023 - ๐ณ๐ฟNew Zealand quietone
-
+++ b/core/modules/views/tests/src/Functional/Plugin/DisplayTest.php @@ -20,7 +20,7 @@ class DisplayTest extends ViewTestBase { + public static $testViews = ['test_filter_groups', 'test_get_attach_displays', 'test_view', 'test_display_more', 'test_display_invalid', 'test_display_empty', 'test_exposed_relationship_admin_ui', 'test_simple_argument', 'test_exposed_block'];
Why does this need another view? Can't the existing view, test_display_more, be modified? If it can't then I think the comment on the test should explain why a 'block' view is needed instead of the view for testing the more linke.
-
+++ b/core/modules/views/tests/src/Functional/Plugin/DisplayTest.php @@ -294,6 +294,20 @@ public function testReadMoreCustomURL() { + // Verify that the more link doesn't contain any exposed filter parameter.
I am not an expect on grammar but this reads wrong to me. So I used an on-line checker and yes this needs a tweak.
And when we are adding to a method or file it is best to use the same style of the existing comments in this method. It just helps future readers of the file. Something along the lines of
// Test more link omits filter parameters.
This seems like a nice improvement. Thanks for the issue and patch.
-
- ๐ฎ๐ณIndia _utsavsharma
Tried to address the pointer 2 in #8.
Please review. - last update
over 1 year ago 29,958 pass - Status changed to Needs review
over 1 year ago 8:37pm 9 September 2023 - last update
over 1 year ago 30,146 pass - ๐บ๐ธUnited States smustgrave
@quietone addressed both points from #8
The settings for Link Display only appears for view blocks and not pages. So that's why test_exposed_block is used.
- ๐ณ๐ฑNetherlands Lendude Amsterdam
Why is this a bug? Iโm sure there are scenarios where you donโt want this data added by are we sure we are not breaking other scenarios where you do want it?
- Status changed to Needs work
over 1 year ago 3:15pm 11 September 2023 - ๐บ๐ธUnited States smustgrave
After discussion with @lendude in @bugsmash on slack. Moving this to a Feature request to add an option to not add the exposed data. Code was purposely added in https://www.drupal.org/node/564106 โ so don't want to just undo that. Also opened https://www.drupal.org/project/drupal/issues/3386511 ๐ Extend test coverage for DisplayTest::testReadMoreCustomURL RTBC for a follow up to expand test coverage