- Issue created by @tom konda
- Merge request !10493Issue #3492582: Prefer to replace some of obj && obj.prop with optional chaining possibly → (Closed) created by tom konda
- 🇺🇸United States smustgrave
Hiding patch #5
@deepali sardana there was already an open MR and your solution seems to just be a small portion of that.
Re-ran the failure and it was random.
Change looks good and a neat refactor.
- First commit to issue fork.
- 🇯🇵Japan tom konda Kanagawa, Japan
Fix ESLint error and rebuild CKEditor5 plugin JavaScript file.
-
alexpott →
committed 38d18a4f on 11.x
Revert "Issue #3492582 by tom konda, zaryab_drupal, nod_, smustgrave:...
-
alexpott →
committed 38d18a4f on 11.x
- 🇬🇧United Kingdom alexpott 🇪🇺🌍
This change broke HEAD... specifically it breaks \Drupal\FunctionalJavascriptTests\Ajax\AjaxTest::testGlobalEvents because the assumptions made in...
// The isInProgress() function might not be defined if the Ajax request // was initiated without Drupal.ajax() or new Drupal.Ajax(). // Until this is false, the Ajax request isn't completely done (the // response's commands might still be running). settings?.isInProgress()
don't look correct. The original code was
// The isInProgress() function might not be defined if the Ajax request // was initiated without Drupal.ajax() or new Drupal.Ajax(). settings.isInProgress && // Until this is false, the Ajax request isn't completely done (the // response's commands might still be running). settings.isInProgress()
But this would never fire because settings.isInProgress would never evaluate to true. Because the isInProgress() function never present on settings
- 🇬🇧United Kingdom alexpott 🇪🇺🌍
FWIW the error this introduced was random at least for gitlab ci - locally for me it is not random at all.
- 🇬🇧United Kingdom alexpott 🇪🇺🌍
alexpott → changed the visibility of the branch 3492582-prefer-to-replace to active.
- 🇬🇧United Kingdom alexpott 🇪🇺🌍
I've reverted the breaking changes from the original MR and will file a follow-up to improve that code.
- 🇬🇧United Kingdom alexpott 🇪🇺🌍
Opened 📌 Make return value of stopEvent consistent and the code less tempting to change Active to make the code we changed here causing an error less like something we'd want to change.
- 🇯🇵Japan tom konda Kanagawa, Japan
I rebased the issue branch and merge error is resolved.
Please review. - 🇬🇧United Kingdom alexpott 🇪🇺🌍
The current set of changes look good and equivalent to the current logic in HEAD.