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

Fix GScan bug when filtering hierarchical workflows by state #1549

Merged
merged 11 commits into from
Nov 23, 2023

Conversation

MetRonnie
Copy link
Member

@MetRonnie MetRonnie commented Nov 9, 2023

Follow-up to #1416 which introduced a bug where filtering by workflow state would show all workflows in hierarchies that had a match, instead of only the matching workflows:

image

Also closes #1537 which was unrelated to #1416

Check List

  • I have read CONTRIBUTING.md and added my name as a Code Contributor.
  • Contains logically grouped changes (else tidy your branch by rebase).
  • Does not contain off-topic changes (use other PRs for other changes).
  • Tests are included
  • CHANGES.md entry included if this is a change that can affect users

@MetRonnie MetRonnie added the bug Something isn't working label Nov 9, 2023
@MetRonnie MetRonnie added this to the 2.2.1 milestone Nov 9, 2023
@MetRonnie MetRonnie self-assigned this Nov 9, 2023
@MetRonnie MetRonnie marked this pull request as draft November 9, 2023 19:04
@MetRonnie MetRonnie marked this pull request as ready for review November 10, 2023 13:10
The following states were not being matched: waiting, preparing, expired
Copy link
Member

@wxtim wxtim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO This is pretty cool:

image

Avoid deep clone during filtering by using a WeakMap to store the filtered-out state of each node in the tree
@MetRonnie MetRonnie requested a review from wxtim November 20, 2023 15:49
@oliver-sanders
Copy link
Member

Bumping efficiency issues to #1555

@wxtim wxtim merged commit f932039 into cylc:master Nov 23, 2023
@MetRonnie MetRonnie deleted the gscan-filter branch November 23, 2023 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Filtering by waiting tasks in GScan doesn't work
3 participants