- ๐ฎ๐ณIndia ahsannazir
Can someone look into the MR and confirm why Tests Pipelines are failing. Seems like few test cases are failing but not sure why
- Issue was unassigned.
- Merge request !6570Issue #3239531: Refactor jquery closest function. โ (Open) created by Unnamed author
- Status changed to Needs review
about 1 year ago 9:51am 13 February 2024 - Status changed to Needs work
about 1 year ago 4:07pm 13 February 2024 - ๐บ๐ธUnited States smustgrave
But moving to NW for the eslint rule change.
- ๐ฎ๐ณIndia ahsannazir
ahsannazir โ changed the visibility of the branch 3239531-refactor-closest to hidden.
- Status changed to Needs review
about 1 year ago 4:23am 15 February 2024 - ๐บ๐ธUnited States smustgrave
smustgrave โ changed the visibility of the branch 3239531-refactor-if-feasible to hidden.
- Status changed to Needs work
about 1 year ago 3:37pm 20 February 2024 - Status changed to Needs review
about 1 year ago 8:09am 21 February 2024 - Status changed to Needs work
about 1 year ago 1:57pm 25 February 2024 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 review
about 1 year ago 11:45am 26 February 2024 - Status changed to Needs work
about 1 year ago 3:11am 1 March 2024 - Status changed to Needs review
11 months ago 7:41am 4 April 2024 - Status changed to Needs work
11 months ago 8:07am 4 April 2024 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 review
11 months ago 1:26pm 11 April 2024 - Status changed to Needs work
11 months ago 6:32pm 14 April 2024 - ๐บ๐ธUnited States smustgrave
Appears to have javascript test failures.
- ๐ฏ๐ตJapan tom konda Kanagawa, Japan
Tom Konda โ made their first commit to this issueโs fork.
- First commit to issue fork.
- Status changed to Needs review
9 months ago 10:50am 10 June 2024 - Status changed to RTBC
8 months ago 3:29pm 8 July 2024 - ๐บ๐ธUnited States smustgrave
Still needs subsystem thumbs up believe
But applied the MR and did some light testing of checking random features (views, layout builder popups, etc) and didn't notice anything.
The 2 threads appear to be addressed (I believe)So to keep from stalling going to mark as tests are also showing fine.
- Status changed to Closed: won't fix
8 months ago 2:40pm 26 July 2024 - ๐ซ๐ทFrance nod_ Lille
First of all thank you all for the hard work on this one, I've had to push a number of patches like this and I know how hard it is to keep up.
I'm going to try and refocus the jQuery removal work and to do that I need to take a few decisions. I'm going to close this issue for a few reasons:
- This MR is big, it impact a very big number of subsystems and make the code more brittle. jQuery is good at dealing with undefined elements, empty sets and so on, the DOM isn't. We already had regressions from a previous patch with undefined elements
- The MR is too big to review and make sure there are no regressions (even with the tests we already have), it would create unstability that we don't have to endure
- Sometimes the jQuery code is simply more readable, I do not think this change is a net positive:
$(once('filter-guidelines', '.js-filter-guidelines', context)) .find(':header') .hide() .closest('.js-filter-wrapper') .find('select.js-filter-list') .on('change.filterGuidelines', updateFilterGuidelines) // Need to trigger the namespaced event to avoid triggering formUpdated // when initializing the select. .trigger('change.filterGuidelines'); // Define the closest function for finding the closest ancestor with a given selector function closest(element, selector) { while (element && !element.matches(selector)) { element = element.parentNode; } return element; } const contextElement = document.querySelector('.js-filter-guidelines'); const closestWrapper = closest(contextElement, '.js-filter-wrapper'); if (closestWrapper) { const $context = $(contextElement); const selectElement = $(closestWrapper).find('select.js-filter-list'); $context.find(':header').hide(); selectElement .on('change.filterGuidelines', updateFilterGuidelines) // Need to trigger the namespaced event to avoid triggering formUpdated // when initializing the select. .trigger('change.filterGuidelines'); }
There is one line to change and we have to make many, many other changes for this to work
I ported the credits to ๐ Credit for work on the reduce jQuery issues Active , which I will mark as fixed as soon as I go through all the others impacted jQuery issues.