-
Notifications
You must be signed in to change notification settings - Fork 713
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
Don't display LOD sync or cleanup sync tasks on the Facility Tasks page #11553
Don't display LOD sync or cleanup sync tasks on the Facility Tasks page #11553
Conversation
…ut sync cleanup and LOD sync tasks from the Facility Task Management display
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.
This seems like an acceptable change. I've now realized the reason for the cleanupsync
task appearing is because it's in the facility_task_queue
. So alternatively, we could remove it from that queue and it shouldn't appear anymore. Although, as the queue is used to group tasks, it does make sense to exist in that queue. 🤷
So that said, LGTM
Build Artifacts
|
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.
On second thought (shared more on Slack), I think we should remove the queue from the task instead. That will stop the cleanupsync
task from being returned by the API, and prevent the API response from being bloated by these hidden tasks. The LOD tasks are already in a different queue. My bad for forgetting how the queue was utilized for this in the first place!
…filter out sync cleanup and LOD sync tasks from the Facility Task Management display" This reverts commit 4eeedcc.
LoD syncs may have been removed correctly from the task list , but they still appear in the counter on the Device - Facilities page: sync-facilities.mp4 |
Removing the queue will also resolve this. |
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.
I guess I approve these changes 😄
I also approve it 😄 |
8048572
into
learningequality:release-v0.16.x
Summary
Adds a condition so that LOD sync tasks and related cleanup sync tasks are not displayed on the facility task management page. Display all of these tasks here would potentially overwhelm the user and provide information that is not useful to facility syncs specifically
References
Fixes #11543
Reviewer guidance
In a LOD scenario, navigate to the facility task page. Perform different tasks such as importing a facility, as well as some LOD syncing. With this update, the facility import task should display, for example, but "blank" tasks related to LOD or cleanup syncs should not display.
Testing checklist
PR process
Reviewer checklist
yarn
andpip
)