- Issue created by @Ihor Ukhan
- ๐บ๐ฆUkraine Ihor Ukhan
Here is the path to replace preg_match in the Drupal\views\Plugin\views/HandlerBase::breakString
All the tests Drupal\Tests\views\Functional\HandlerHandlerTest::testBreakString passed - last update
over 1 year ago Patch Failed to Apply - last update
over 1 year ago 29,722 pass - First commit to issue fork.
- Status changed to Needs review
10 months ago 5:26pm 14 June 2024 I have used #3 and it worked like a charm for me. It also fixed the issue for filtering a string containing '':" in it.
Example - topic:sci-fi+topic:fantasyI have converted #3 patch to a PR https://git.drupalcode.org/project/drupal/-/merge_requests/8417
- Issue was unassigned.
- Status changed to RTBC
10 months ago 5:39pm 14 June 2024 - Status changed to Needs review
10 months ago 10:12am 5 July 2024 - ๐ฌ๐งUnited Kingdom catch
This could use some test coverage if possible.
- Status changed to Needs work
9 months ago 1:39pm 11 July 2024 - ๐ฎ๐ณIndia Akhil Babu Chengannur
Akhil Babu โ made their first commit to this issueโs fork.
- Status changed to Needs review
9 months ago 1:00pm 12 July 2024 - Status changed to Needs work
8 months ago 6:50am 8 August 2024 - ๐ณ๐ฑNetherlands Lendude Amsterdam
Looks good, one more test case would be nice.
Can we come up with other cases that the regex might have missed like in #8 and make sure we are ok with that?
- First commit to issue fork.
- Status changed to Needs review
8 months ago 11:42am 8 August 2024 - Status changed to RTBC
8 months ago 3:21pm 13 August 2024 - ๐บ๐ธUnited States smustgrave
believe feedback for additional test coverage has been addressed.
The Needs Review Queue Bot โ tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide โ to find step-by-step guides for working with issues.
- Status changed to Needs work
5 months ago 7:54am 11 November 2024 - First commit to issue fork.
- ๐ฎ๐ณIndia shalini_jha
I reviewed the merge request and found some conflicts, so I rebased and resolved them. The pipeline has also passed successfully, so Iโm moving it to "Needs Review."
- ๐ณ๐ฟNew Zealand quietone
I left some comments in the MR. I also updated credit.
- ๐ฎ๐ณIndia shalini_jha
I have reviewed all the feedback and implemented the necessary changes accordingly. After applying the updates, I re-ran the pipeline, and it is working as expected. I have also verified the empty string case, and it is functioning correctly without any issues. Moving this forward for your review. Kindly review.
- ๐ฌ๐งUnited Kingdom alexpott ๐ช๐บ๐
Made a suggestion to change the code on the MR.
- ๐ฎ๐ณIndia shalini_jha
I have updated the if condition to handle the scenario, and after testing, the test is now passing successfully. I am moving this for review. Please take a look and let me know if it makes sense to you.
- ๐บ๐ธUnited States smustgrave
For the scenario you saw a failure in can we add test coverage for that one too please.
If you are another contributor eager to jump in, please allow the previous poster at least 48 hours to respond to feedback first, so they have the opportunity to finish what they started!
- ๐ฎ๐ณIndia shalini_jha
Thank you @smustgrave for the review & feedback. the scenario i have mentioned is the existing test that is failing after the code change
- ๐ฎ๐ณIndia shalini_jha
I am moving this for review. Please take a look and let me know if it makes sense, or if any additional tests need to be added?
- ๐ฎ๐ณIndia shalini_jha
I have addressed all the feedback, including updating the comment for the single-word condition to improve clarity. Please let me know if we need to assert the single word in the test for further clarification.
Moving this to NR , Kindly review.
- ๐ณ๐ฟNew Zealand quietone
https://git.drupalcode.org/project/drupal/-/merge_requests/8417/diffs#note_442553 @alexpott pointed out cases where the new code and the old produce different results. I don't see those test cases. If they are the, add a comment in the code.
To test that the results have not change I removed the changes from breakString and all the long string test cases from testBreakString. I expected the test to pass, it did not. These are the cases that failed.
- HandlerBase::breakString('word:word1+word:word2+word:word3');
- HandlerBase::breakString('word:word1 word:word2 word:word3');
- HandlerBase::breakString('word:word1,word:word2,word:word3');
- HandlerBase::breakString('word:word1');
How will this change of behavior affects sites?