-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
[#11039] Synchronize instructor create calls from frontend to prevent race condition #11063
[#11039] Synchronize instructor create calls from frontend to prevent race condition #11063
Conversation
ad2cb6a
to
82ee5f4
Compare
src/web/app/pages-admin/admin-home-page/admin-home-page.component.ts
Outdated
Show resolved
Hide resolved
src/web/app/pages-admin/admin-home-page/admin-home-page.component.ts
Outdated
Show resolved
Hide resolved
src/web/app/pages-admin/admin-home-page/admin-home-page.component.ts
Outdated
Show resolved
Hide resolved
cc2f5d8
to
4c8777c
Compare
4c8777c
to
bd58f31
Compare
6c396c7
to
354f1c2
Compare
c7ba419
to
27b743a
Compare
src/web/app/pages-admin/admin-home-page/admin-home-page.component.ts
Outdated
Show resolved
Hide resolved
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.
lgtm
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.
Other than the small comment, LGTM
src/web/app/pages-admin/admin-home-page/admin-home-page.component.ts
Outdated
Show resolved
Hide resolved
Sorry, but I'd like to block this PR for now. It has its benefits, but it doesn't address the real root cause. |
Issue no longer relevant, resolved with #11322 |
Fixes #11039
Outline of Solution
Wrap the original
addInstructor
in a promise returning functionasyncAddInstructor
, leave the original function signature unchanged, and useawait
inaddAllInstructors
to create blocking effect.Before
After