You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR refactors some code in the DetailsTabView to create an immediateSaveAll, that makes sure the content of the diffTracker is all updated before the Edit Modal closes
Fill out the title, mastery criteria, and the license field
When you fill out the last field, click the "Finish" button within <1s of updating the field. (This can be a little bit tricky. I find it easiest if I do this for the license field so I only have to update the
The reason will be displayed to describe this comment to others. Learn more.
I am not sure that this guarantees that the saves will complete before the teardown occurs - we have a promise returned from the immediateSaveAll, but we're not waiting on it to resolve anywhere.
The reason will be displayed to describe this comment to others. Learn more.
You're right - the reason this is working okay in the preliminary manual testing I was doing is because it doesn't actually need to resolve for the updates to be made in that case. I'll think on this...
The reason will be displayed to describe this comment to others. Learn more.
Should return here, rather than returning a dummy promise on the next line here - otherwise we are still not waiting on the completion of immediateSaveAll
The reason will be displayed to describe this comment to others. Learn more.
In EditModal, closingModal starts out as false at initialization, and the only line that sets its value in there also sets it to false, so I don't think this guard is having any effect.
If it is working fine at the moment, I'd recommend just removing all the closingModal references and thus simplify the diff.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR refactors some code in the DetailsTabView to create an immediateSaveAll, that makes sure the content of the diffTracker is all updated before the Edit Modal closes
Issue Addressed (if applicable)
Addresses #2567
Steps to Test