-
Notifications
You must be signed in to change notification settings - Fork 699
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
Improve facility sync status reporting to users #9541
Improve facility sync status reporting to users #9541
Conversation
3762195
to
5de8407
Compare
Differentiate between successful and failed sync Resolves learningequality#9091
5de8407
to
58e9582
Compare
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.
Look good to me, great work. I only have left a couple of comments with the same doubt about a filter, if we can clarify it, it'd be ready from my pov
Thank you @jredrejo, I've just replied |
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.
💯
We've just tested syncing failure and success with @bjester and looks to be good |
Summary
Previously, it wasn't possible to find out whether the last sync was successful or if it failed from the facility object itself. We were only able to derive information about failure from task objects while a task was running and that information wasn't persisted on the page reload, resulting in confusing UX.
This PR improves facility sync status reporting to users by persisting information about the success or failure of a facility sync task on the facility object by replacing the
last_synced
field bylast_successful_sync
andlast_failed_sync
fields (that said, we still continue using the failed task information from the task object to display fast update on the sync process to users without the need to re-fetch a facility when the task fails)Preview of possible states
References
Resolves #9091
Reviewer guidance
Testing checklist
PR process
Reviewer checklist
yarn
andpip
)