- Merge request !1278Issue #3240103: Refactor (if feasible) uses of the jQuery deferred function to use Vanilla/native → (Closed) created by Theresa.Grannum
- First commit to issue fork.
- 🇮🇳India omkar-pd
Replaced deferred in toolbar.js with promise. Some tests are failing I'll try to fix those.
- Status changed to Needs review
11 months ago 7:44am 14 December 2023 - 🇮🇳India omkar-pd
Fixed tests. Moving this to Needs Review.
Still, in ajax.js there is one$.Deferred().reject()
that needs to be replaced. But looking for review before moving forward. - Status changed to Needs work
11 months ago 4:09pm 15 December 2023 - 🇺🇸United States smustgrave
Not sure the feedback needed, but if the toolbar functionality is all there then should be good.
But won't know till the rule is added and all the fixes in.
- Status changed to Needs review
11 months ago 5:26pm 15 December 2023 - 🇮🇳India omkar-pd
Yes, the toolbar functionality working fine. The rule is added and tests are green. Moving this to Needs review.
- Status changed to Needs work
11 months ago 2:40pm 16 December 2023 - 🇺🇸United States smustgrave
Some of the comments around the changes mention a Defer not a Promise.
- Status changed to Needs review
11 months ago 5:01am 18 December 2023 - Status changed to RTBC
11 months ago 2:34pm 18 December 2023 - last update
11 months ago 29,260 pass, 20 fail - last update
11 months ago 29,260 pass, 20 fail - last update
11 months ago 29,260 pass, 20 fail - last update
11 months ago 29,260 pass, 20 fail - last update
11 months ago 29,260 pass, 20 fail - last update
11 months ago 29,260 pass, 20 fail - 🇳🇿New Zealand quietone
I'm triaging RTBC issues → . I read the IS, the comments and the MR. I didn't find any unanswered questions or other work to do.
Nice to see work on these jQuery issues, thanks!
Leaving at RTBC.
- last update
11 months ago 29,260 pass, 20 fail - last update
11 months ago 29,260 pass, 20 fail - last update
11 months ago 29,260 pass, 20 fail - last update
11 months ago 29,260 pass, 20 fail - last update
11 months ago 29,260 pass, 20 fail - Status changed to Needs work
9 months ago 1:31pm 18 February 2024 - 🇬🇧United Kingdom longwave UK
Looks like this might break contrib. Toolbar Menu has nearly 7000 installs and uses
Drupal.toolbar.setSubtrees
which is refactored here.https://git.drupalcode.org/project/toolbar_menu/-/blob/8.x-2.x/js/toolba...
If we can't add backward compatibility then we need a change record and ideally should create an issue in their queue to notify them that we are changing this API.
- 🇬🇧United Kingdom longwave UK
Also the comment in ajax.js still says:
@return {object} Returns the jQuery.Deferred object underlying the Ajax request. If pre-serialization fails, the Deferred will be returned in the rejected state.
This is no longer true, and I also wonder about backward compatibility here.
- 🇮🇳India omkar-pd
@shubh511,
No need to create a new PR. There is already a PR created for this.Check if you can address the given feedback in #17 and #18 and make changes in the existing PR.
https://git.drupalcode.org/project/drupal/-/merge_requests/5792
- 🇮🇳India omkar-pd
omkar-pd → changed the visibility of the branch 3240103-refactored-deferred to hidden.
- 🇮🇳India shubh511
shubh511 → changed the visibility of the branch 3240103-refactored-deferred to active.
- 🇮🇳India shubh511
shubh511 → changed the visibility of the branch 3240103-refactored-deferred to hidden.