-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
UI: Fix issue update race condition #6194
Conversation
0961f7d
to
dee5852
Compare
Codecov Report
@@ Coverage Diff @@
## master #6194 +/- ##
==========================================
+ Coverage 38.86% 38.86% +<.01%
==========================================
Files 354 354
Lines 50210 50210
==========================================
+ Hits 19512 19516 +4
+ Misses 27872 27867 -5
- Partials 2826 2827 +1
Continue to review full report at Codecov.
|
d954ced
to
c9c2e4a
Compare
Hmm... Do we have a Promise library already installed for IE? |
Yes, we do have a Promise polyfill, but it was so far only loaded when heatmap was enabled. Just fixed that so it is always loaded. |
Replaced es6-promise with promise-polyfill. Not sure if the former does automatically polyfill |
IE11 fixed and working, it actually choked on ES6 trailing commas, took me a while to realize. |
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.
Tested with Chrome, Firefox, and IE11 using @sapk checkout PR contrib, worked on all browsers.
#5980 introduced a race condition where
location.reload
would in some browers fire before the async ajax request inupdateIssuesMeta
to update a issue label was completed. Fixed this by lettingupdateIssuesMeta
return a Promise and only executing the reload after all requests have finished.Also introduced a shared
reload
function.Fixes: #6191