Fixup: unselection of items from AJAX data sources with non-string identifiers#6241
Fixup: unselection of items from AJAX data sources with non-string identifiers#6241kevin-brown merged 11 commits into
Conversation
…log events so that info-level messages do not pollute the test log output
Yeah those are too controversial to roll in here. We intentionally don't have single-select elements issue |
|
I am likely going to spin a new |
…n multi-select controls" This reverts commit 8fd9a00.
|
Thanks @kevin-brown - how would you like to co-ordinate the creation of that test file? (should I attempt to create it here, or would you prefer to do that separately and move these changes into it?) |
Sounds good; the single-select |
|
Also a note: the |
|
Good call on checking the license, thank you for switching back the unselect changes. This looks good to go from a high level, so I'll mark it for my next sweep. I'll take care of the testing changes independently, the tests you wrote get the job done for this change set. Anything I add would likely be in addition to the ones here and aren't required. |
|
Hey @kevin-brown - I'm afraid I'm joining the chorus of 'any updates on this' here - is there anything I can do to help this and/or the 4.1.0 milestone along? |
|
Note, partly since licensing was discussed here previously: |
|
Hi @kevin-brown - I've been browsing through a few old pull requests to clear the decks - any chance this might be nearish-acceptable? (I've one or two others open also, but this one seemed to be most-progressed). No problem if not. |
|
Just realized I merged this in right after we upgraded QUnit so the tests are now failing. Should be a quick fix to update the calls. |
* Fixup: reference `QUnit.test` instead of relying on global namespace entry Relates-to / merge-resolution-for #6241, #6334 * Build: recompile distributable files * Tests: temporarily comment-out a failing integration test * Revert "Tests: temporarily comment-out a failing integration test" This reverts commit 1863823. * Tests: isolate `selection:update` integration test event handlers * Cleanup: regenerate NPM lockfile
- Remove '(unreleased)' marker from the 4.1.0 heading - Add new features: jQuery 4.0.0 support (#6332), originalEvent in close trigger args (#6079) - Add bug fixes: placeholder misalignment (#6277), RTL choice remove button (#6257), digit-only data-placeholder (#6297), AJAX unselection with non-string IDs (#6241, #6335), optgroup child string coercion (#6338) - Add translations: lb (#6131), ug (#6166), ar (#6175), zh-TW (#6157), id (#6153), tr (#6123), ro (#6190), de/es/fr/pt/pt-BR (#6132), pl (#6097, #6377), nb (#6213), fa (#6258), nl (#6269), pt-BR typo (#6200), missing bs/ca/da/fi strings (#6305) - Add miscellaneous: native DOM replacements for jQuery attr/removeAttr (#6227, #6228), classList.add (#6229), jQuery removal from Utils and Translation (#6233), prop() removal (#6289), NPM trusted publishing (#6405)
…entifiers (select2#6241) * integration test: selection and clearing of data from ajax source * Fix: normalize response data items received from AJAX requests * Extension: remove special-case logic for unselection events on multi-select controls * test fixup: call assert.async test-completion event handler * test log cleanup: increase the severity threshold for jquery-mockjax log events so that info-level messages do not pollute the test log output * Revert "Extension: remove special-case logic for unselection events on multi-select controls" This reverts commit 8fd9a00. * Relocate AJAX-response-result normalization step, and add 'Array.isArray' check condition * Lint fixup: rearrange code to fit within line length limits * Nitpick: remove trailing end-of-line whitespace * Dependencies: update to mockjax v2.6.1
* Fixup: reference `QUnit.test` instead of relying on global namespace entry Relates-to / merge-resolution-for select2#6241, select2#6334 * Build: recompile distributable files * Tests: temporarily comment-out a failing integration test * Revert "Tests: temporarily comment-out a failing integration test" This reverts commit 1863823. * Tests: isolate `selection:update` integration test event handlers * Cleanup: regenerate NPM lockfile
- Remove '(unreleased)' marker from the 4.1.0 heading - Add new features: jQuery 4.0.0 support (select2#6332), originalEvent in close trigger args (select2#6079) - Add bug fixes: placeholder misalignment (select2#6277), RTL choice remove button (select2#6257), digit-only data-placeholder (select2#6297), AJAX unselection with non-string IDs (select2#6241, select2#6335), optgroup child string coercion (select2#6338) - Add translations: lb (select2#6131), ug (select2#6166), ar (select2#6175), zh-TW (select2#6157), id (select2#6153), tr (select2#6123), ro (select2#6190), de/es/fr/pt/pt-BR (select2#6132), pl (select2#6097, select2#6377), nb (select2#6213), fa (select2#6258), nl (select2#6269), pt-BR typo (select2#6200), missing bs/ca/da/fi strings (select2#6305) - Add miscellaneous: native DOM replacements for jQuery attr/removeAttr (select2#6227, select2#6228), classList.add (select2#6229), jQuery removal from Utils and Translation (select2#6233), prop() removal (select2#6289), NPM trusted publishing (select2#6405)
This pull request includes a
The following changes were made
jquery-mockjaxplugin as a vendored integration test dependency.Resolves #6128.