Skip to content
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

Conversation

marcellamaki
Copy link
Member

@marcellamaki marcellamaki commented Nov 21, 2023

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

Before After
Screenshot 2023-11-21 at 2 38 46 PM Screenshot 2023-11-21 at 2 38 26 PM

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

  • Contributor has fully tested the PR manually
  • If there are any front-end changes, before/after screenshots are included
  • Critical user journeys are covered by Gherkin stories
  • Critical and brittle code paths are covered by unit tests

PR process

  • PR has the correct target branch and milestone
  • PR has 'needs review' or 'work-in-progress' label
  • If PR is ready for review, a reviewer has been added. (Don't use 'Assignees')
  • If this is an important user-facing change, PR or related issue has a 'changelog' label
  • If this includes an internal dependency change, a link to the diff is provided

Reviewer checklist

  • Automated test coverage is satisfactory
  • PR is fully functional
  • PR has been tested for accessibility regressions
  • External dependency files were updated if necessary (yarn and pip)
  • Documentation is updated
  • Contributor is in AUTHORS.md

…ut sync cleanup and LOD sync tasks from the Facility Task Management display
Copy link
Member

@bjester bjester left a 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

@bjester bjester self-requested a review November 21, 2023 20:17
Copy link
Member

@bjester bjester left a 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.
@github-actions github-actions bot added the DEV: backend Python, databases, networking, filesystem... label Nov 21, 2023
@radinamatic
Copy link
Member

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

@bjester
Copy link
Member

bjester commented Nov 21, 2023

LoD syncs may have been removed correctly from the task list , but they still appear in the counter on the Device - Facilities page:

Removing the queue will also resolve this.

@bjester bjester self-requested a review November 21, 2023 21:38
Copy link
Member

@bjester bjester left a 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 😄

@marcellamaki
Copy link
Member Author

I also approve it 😄

@marcellamaki marcellamaki merged commit 8048572 into learningequality:release-v0.16.x Nov 21, 2023
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DEV: backend Python, databases, networking, filesystem... SIZE: very small
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Facilites task manager not displaying task details
3 participants