-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
Revert "Unselect events: cache lookup key fix (#6179)" #6217
Conversation
This reverts commit d961613.
Reverting this and taking a deeper look into the underlying issue. |
Thanks, @kevin-brown - I'm taking another look at it as well. From the commit-log for the original pull request: I do seem to remember that something about the |
My best guess at the moment is that it could be something to do with the |
Currently stuck trying to get |
I've been spending attention on other tasks recently but I do intend to take a look at this again soon. It's good to see that continuous integration is working again, and that might help to solve some of the test environment problems I was running into. |
Ok, I spent some time yesterday on this. With #6234 in place I'm able to run the I've found it difficult to decide exactly what to test, and where to place those tests.
After we choose what to test, deciding where to place the test coverage is tricky.
These are the problems I'm considering at the moment. I also realized that the fix in #3882 -- that I only noticed today -- still looks relevant and may be a nice small change (with a corresponding test case to show what it fixes). |
Alright, I've been following along so I should finally chime in with some direction of where to head next.
Yes, I think this is one of the core issues.
It'd also be nice to cover this too, but, just like the first bullet point, I lean more towards grouping this in with the existing fixes for non-string keys.
Lean pretty strongly as a no here, since in tests we can mock data that has non-string keys (most notably in
To me this seems like the most likely candidate if we do trace this down to a multi-select specific issue (which, as you note, seems most likely). Especially if the fix hits the select/unselect event handlers in the multi-select specific portions.
If it does end up being this, then the tests would land in
Generally I try to keep the integration tests to the stuff that is jQuery-specific (like it requires full initialization or is called directly by the jQuery integration). Historically this has been a lot of the browser-specific quirks that come from bugs that we've found in jQuery and then had to patch in Select2.
If you think that one is still valid, drop a comment in the ticket pinging me and I can reopen it. It was closed automatically before we configured Stale to not close confirmed bugs. |
Ok, thank you for the guidance - I'll take another look at this soon (perhaps as soon as tomorrow) with all that in mind. Confirming the relevance of #3882 during the test case writeup and/or fix probably won't be my primary goal, but if the process does provide enough information to verify it, I'll comment on the ticket as suggested. |
In reply to these two parts of the thread in particular:
The changes in #6239 should provide relevant test coverage and a fix, and is now ready for review. The root cause uncovered did appear to be non-string keys (in grouped/child data elements). |
This reverts commit d961613 (#6179).
Re-opens #6128.