Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@codingjoe
Copy link
Contributor

@codingjoe codingjoe commented Jul 8, 2019

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

Bug fixes

Accessibility

Translations

Miscellaneous

4.0.5

Bug fixes

Translations

4.0.4

New features / Improvements

  • Make tag matching case insensitive [https://github.com/select2/select2/commit/cb9a90457867ffb14c7b1550bb67e872e0a5c2dd, https://github.com/select2/select2/commit/1167bace78cd3b1a918c1b04f3bac54674eab62b]
  • Support selecting options with blank or 0 option values [https://github.com/select2/select2/commit/16b4840c0e2df0461998e3b464ee0a546173950d, https://github.com/select2/select2/commit/0358ee528765157234643d289bce6b8ca5889c72]

Bug fixes

Documentation

Translations

  • Add errorLoading Hungarian translation [https://github.com/select2/select2/commit/7d1d13352321e21670ff1c6cba7413aa264fd57a]
  • Add errorLoading German translation [https://github.com/select2/select2/commit/4df965219ea4c39147fde9335bc260840465933a]
  • Add Slovene language [https://github.com/select2/select2/commit/8e6422c570a87da8d89c45daf0d253695a943c84]
  • Add errorLoading Galician translation [https://github.com/select2/select2/commit/8fcc6202c37f4e06d951342bf142a3b906b6b8e3]
  • Add errorLoading Thai translation [https://github.com/select2/select2/commit/625fc78ee616baedf64aa37357403b4b72c7363c]
  • Add searching and errorLoading Finnish translations [https://github.com/Add missing finnish translations select2/select2#4730]
  • Add errorLoading Turkish translation [https://github.com/select2/select2/commit/fd4a0825315c7055347726d5818c999279f96ff8, https://github.com/select2/select2/commit/751b36767f9f28b9de9428d5e8035c9a404915d9]
  • Add Armenian language [https://github.com/select2/select2/commit/f6fa52dcc02341df1523f50348f2effc54ee2911]

@codingjoe
Copy link
Contributor Author

Why are you vendoring a javascript library in the first place?

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.

@codingjoe
Copy link
Contributor Author

codingjoe commented Jul 8, 2019

@carltongibson I tested it locally, the selenium tests fail, because bowser is too slow. What should I do now?

@django django deleted a comment Jul 8, 2019
@carltongibson carltongibson self-requested a review July 8, 2019 10:03
@carltongibson
Copy link
Member

Hey @codingjoe.

OK, I'll have a look. (Grrr. Selenium.)

(Comment deleted.)

@django django locked as spam and limited conversation to collaborators Jul 8, 2019
@django django deleted a comment Jul 8, 2019
@django django deleted a comment Jul 8, 2019
@django django deleted a comment Jul 8, 2019
@django django deleted a comment Jul 8, 2019
@django django deleted a comment Jul 8, 2019
@django django deleted a comment Jul 8, 2019
@django django deleted a comment Jul 8, 2019
@django django unlocked this conversation Jul 8, 2019
@carltongibson carltongibson self-assigned this Jul 8, 2019
@codingjoe
Copy link
Contributor Author

cc @kevin-brown

@carltongibson
Copy link
Member

carltongibson commented Jul 8, 2019

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!

@django django deleted a comment from carltongibson Jul 8, 2019
@codingjoe
Copy link
Contributor Author

Grrr. So we're failing on the Selenium builds, which are passing for me locally... (@apollo13 Do you have any thoughts there...?)

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 just want to compare the checksums with the official package but, looks good!

I took files from the GitHub release. I figured, that's as close to the source as it gets.

@codingjoe
Copy link
Contributor Author

#workedOnMyMachine

@carltongibson
Copy link
Member

Hey @codingjoe, OK, thanks, I'll have a play... 😬

I took files from the GitHub release. I figured, that's as close to the source as it gets.

I'm quite sure you did. I still feel it's incumbent upon me to verify an error didn't slip in. 🙂

@felixxm
Copy link
Member

felixxm commented Jul 9, 2019

We should add a short release note (Minor features -> django.contrib.admin), e.g.

 * Select2 library is upgraded from version 4.0.3 to 4.0.7. 

@apollo13
Copy link
Member

apollo13 commented Jul 9, 2019

Grrr. So we're failing on the Selenium builds, which are passing for me locally... (@apollo13 Do you have any thoughts there...?)

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.

@carltongibson
Copy link
Member

OK, thanks for the input @apollo13! I'm about to look into it now... 😬

@codingjoe: Checksums are correct, except for js/i18n/sq,js, which is correct except it has Windows line endings (CRLF) in the select2-4.0.7 distribution, against Unix line endings (LF) in the checkin here. (I would open an issue there but it looks like select2/select2#4703...)

@carltongibson carltongibson force-pushed the update/select2/4.0.7 branch from 20f7934 to 8a5347b Compare July 9, 2019 14:03
@carltongibson
Copy link
Member

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 results variable is stale (from the previous assertion).

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 wait() than the approach Joe tried in 20f79347dc0bade8043657a0675fe1c08d901845) may be needed.

@django django deleted a comment from carltongibson Jul 9, 2019
@carltongibson
Copy link
Member

Woot. 🎉

carltongibson
carltongibson previously approved these changes Jul 9, 2019
Copy link
Member

@carltongibson carltongibson left a 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!

@carltongibson
Copy link
Member

Sorry, I got excited by the tests passing. Release note. (Can you add that and squash @codingjoe? If not I'll do it tomorrow.)

@carltongibson carltongibson dismissed their stale review July 9, 2019 14:55

Premature. (Release note missing)

@codingjoe codingjoe force-pushed the update/select2/4.0.7 branch from 8a5347b to 9af872a Compare July 9, 2019 16:43
@codingjoe
Copy link
Contributor Author

@carltongibson 🆗 it's done!

@carltongibson carltongibson merged commit 00d4e6f into django:master Jul 10, 2019
@codingjoe codingjoe deleted the update/select2/4.0.7 branch July 10, 2019 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants