-
-
Notifications
You must be signed in to change notification settings - Fork 33.2k
Update Select2 to version 4.0.7 #11548
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Good question @LemonAndroid! We didn't want to use a CDN as it would break local development. This is something we in GeoDjango, but to be fair, you need an internet connection to see the map data anyways. It would be more elegant to get the data via npm, no one has build a good release pipeline for that yet. |
|
@carltongibson I tested it locally, the selenium tests fail, because bowser is too slow. What should I do now? |
|
Hey @codingjoe. OK, I'll have a look. (Grrr. Selenium.) (Comment deleted.) |
|
cc @kevin-brown |
|
Grrr. So we're failing on the Selenium builds, which are passing for me locally... (@apollo13 Do you have any thoughts there...?) I just want to compare the checksums with the official package but, looks good! |
We could wait until the statement is true, and add a timeout in case it isn't. That is common in selenium, but not really for that scenario. I'll try something.
I took files from the GitHub release. I figured, that's as close to the source as it gets. |
|
#workedOnMyMachine |
|
Hey @codingjoe, OK, thanks, I'll have a play... 😬
I'm quite sure you did. I still feel it's incumbent upon me to verify an error didn't slip in. 🙂 |
|
We should add a short release note ( |
Are they failing consistently on this PR and work on others? Then I fear there is something systematic behind it due to the upgrade? That said, selenium tests are hard to write and tend to break differently in different environments :( Don't have any good ideas on this one. |
|
OK, thanks for the input @apollo13! I'm about to look into it now... 😬 @codingjoe: Checksums are correct, except for |
20f7934 to
8a5347b
Compare
|
I think we're looking at (guess) microseconds here. The visually observable behaviour in the browser is correct but putting a breakpoint into the test, the problem I've tried just adding an additional assert, to buy a little time, but it maybe a new variable name, or breaking the test cases up a bit (or a less heavy |
|
Woot. 🎉 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, bar a squash and the the commit message, this looks good to me. Thanks @codingjoe!
|
Sorry, I got excited by the tests passing. Release note. (Can you add that and squash @codingjoe? If not I'll do it tomorrow.) |
8a5347b to
9af872a
Compare
|
@carltongibson 🆗 it's done! |
Update vendored Select2 dependency to the latest minor release (4.0.3 -> 4.0.7).
Change log
4.0.7
New features/improvements
Bug fixes
Miscellaneous
4.0.6
New features/improvements
clearandclearingevents (SQLCompiler: fix get_order_by's docstring with correct return format #5058)scrollAfterSelectoption (Stable/1.8.x #5150)Bug fixes
;before beginning of factory wrapper (Fixed #25209 -- Removed parallel=True coverage option #5089)select2-selection__renderedwhen selection is cleared (Update querysets.txt #4640, Doc fix: Tutorial 1: app structure: include migrations dir #4746)Defaults.set()(Fixed #24281 -- Improved docs for timezone handling for auto_now and auto_now_add #4364)Utils.__cacheinstead of using$.data(Refs #24483 -- Added tests for deconstruction of Field.choices #4346, Update email address in AUTHORS #5486)selection:update(Ticket 24226 #4306)Accessibility
.select2-hidden-accessible([1.8.x] Renamed RemovedInDjango20Warning to RemovedInDjango110Warning. #4908)Translations
tk) (Fixed #24743 -- Grouped consecutive migrations in effective migration plan #5125)sq) (Refs #24590 -- Ensured isolation between autodetector tests #5199)ka) (Ticket#14217 #5179)ne) (Typo fix #5295)bn) ([WIP] Fixed #25347 -- Allowed QueryDict.get() to return a list. #5248)removeAllItemstranslation for clear "x" title (Remove unnecessarily rude terminology. #5291)Miscellaneous
4.0.5
Bug fixes
autocapitalize=offwithautocapitalize=none([1.4.x] Fixed #25119 -- Disabled wheel support. #4994)Translations
ps) (Fixed #25068 Added metaclassmaker to resolve metaclass conflicts #4960)dsbandhsb) (Fixed #25059 - validate punycoded TLDs in URLValidator #4949)inputTooShortmessage (Fixed #24881: clarify order_with_respect_to documentation #4817, 4896)af) (Update ChoiceFieldRenderer object #4850)bs) (Fixed #16609 -- Fixed duplicate admin results when searching nested M2M relations #4504)4.0.4
New features / Improvements
0option values [https://github.com/select2/select2/commit/16b4840c0e2df0461998e3b464ee0a546173950d, https://github.com/select2/select2/commit/0358ee528765157234643d289bce6b8ca5889c72]Bug fixes
Documentation
<select>serialization example [https://github.com/Update select.html select2/select2#4538]Translations
errorLoadingHungarian translation [https://github.com/select2/select2/commit/7d1d13352321e21670ff1c6cba7413aa264fd57a]errorLoadingGerman translation [https://github.com/select2/select2/commit/4df965219ea4c39147fde9335bc260840465933a]errorLoadingGalician translation [https://github.com/select2/select2/commit/8fcc6202c37f4e06d951342bf142a3b906b6b8e3]errorLoadingThai translation [https://github.com/select2/select2/commit/625fc78ee616baedf64aa37357403b4b72c7363c]searchinganderrorLoadingFinnish translations [https://github.com/Add missing finnish translations select2/select2#4730]errorLoadingTurkish translation [https://github.com/select2/select2/commit/fd4a0825315c7055347726d5818c999279f96ff8, https://github.com/select2/select2/commit/751b36767f9f28b9de9428d5e8035c9a404915d9]