-
Notifications
You must be signed in to change notification settings - Fork 694
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
Update MissingResourceAlert to report sync status #11426
Update MissingResourceAlert to report sync status #11426
Conversation
Build Artifacts
|
Tested as per the reviewer guidance, but I can still see the missing or unsupported resources notification during the normal sync that was eventually completed successfully. Technically, while the sync is happening, the resources are missing, right? Maybe this message should only appear if the sync indeed just failed or errored, not while it is currently underway. |
@radinamatic - can you clarify about seeing the message? What you experienced was seeing
Yes that is the intention. The purpose of this update would be two things.
|
Yes, as you can see in the screencast below the notification is appearing while the sync is still in progress (thumbnails are loading), and it does not fail at any point (I can open all the videos and both the LoD and coach are displaying green checkmark for syncing). resources-unsupported.mp4If it matters, the LoD is in Ubuntu 18.04 VM, not on Android, and browser is set for Slow 3G throttling. |
From the screencast, it looks like at least one resource was still being loaded when the page first loaded, and by the time you had viewed the first resource and returned to the playlist page, it was finished? |
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.
Needs to be updated so as not to cause odd behaviour where this is used in the Coach plugin.
Github is again messing with my mind, I wrote the reply to this yesterday, and now it's gone... 🙄 Yes, judging by the thumbnails the sync (loading) was happening, and while it is in progress, the user should see the message 'device is syncing', not 'resources missing or unsupported'. |
711a779
to
a6d9925
Compare
a6d9925
to
32a030b
Compare
…leted, not only if it has been initiated
@rtibbles @radinamatic this should be ready for re-review now |
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.
A couple more changes needed, I think.
kolibri/plugins/learn/assets/src/views/ResourceSyncingUiAlert.vue
Outdated
Show resolved
Hide resolved
kolibri/plugins/learn/assets/src/views/ResourceSyncingUiAlert.vue
Outdated
Show resolved
Hide resolved
@radinamatic - I lied, it will be ready for you tomorrow. I'll ping you in the morning :D |
…e made in backend in follow up, that will prevent over-reporting on the frontend
Follow up issue here: #11444 |
@radinamatic this can be re-reviewed on Monday, but importantly, the issues you noticed will not be entirely resolved until the follow up issue is finished, as this requires some additional backend changes. You can let me and Richard know if you have any questions |
…matched reason on the removal.
when resources are missing.
To ensure comprehensive QA, I have pushed some updates to this PR to fix the follow up issue as well. @marcellamaki this felt easier than merging this PR and then opening a follow up. |
Thanks @rtibbles! |
Hi @marcellamaki, @rtibbles, @radinamatic, I was able to identify a couple of minor issues:
2023-10-23_16-08-40.mp4
|
Hrm, I'm not able to replicate 2 - quizzes with missing resources are also showing an alert on the home page. |
code review and manual QA on Richard's most recent changes - I can confirm that the banner does disappear after the sync completes (if all goes well) |
Summary
After much discussion, adds syncing status to the
MissingResourceAlert
UI bannerReferences
Fixes #11243
Fixes #11444
missing-resources.mp4
Reviewer guidance
Run two kolibris, one with full facility and one as LOD. Previously, when the "some resources are missing or unsupported" banner would display, you should now see either a waiting to sync or syncing message. The missing or unsupported message should only happen if the resources are indeed missing, and if the sync is failed or errored in some way.
Please note that since these strings were pulled in using createTranslator, they will not be translated until
make i18n-download branch=release-v0.16.x
is runTesting checklist
PR process
Reviewer checklist
yarn
andpip
)