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

Fixes for 'filter_tag' #1126

Merged
merged 1 commit into from
Jul 17, 2024

Conversation

gycsaba96
Copy link
Contributor

This PR has two main changes:

  • Iterate over all tasks, not just the root elements.
  • Consider all descendants of a tag, not just the immediate children.

Because of these bugs, it was impossible to get rid of the money tag in the default dataset:

  1. Start the program with the default dataset.
  2. Delete the money tag in the sidebar.
  3. Restart the application.
  4. Observe that the money tag is absent from the sidebar.
  5. Open the "Learn How to Use Tags and Enable the Sidebar" task.
  6. Observe the money tag reappearing in the sidebar.

(I discovered this bug while investigating Issue #1115. They might be related, but the described anomaly is different.)

- Iterate over all tasks, not just the root elements.
- Consider all descendants of a tag, not just the
  immediate children.
@diegogangl
Copy link
Contributor

Looks good, merging. Thanks!

@diegogangl diegogangl added the bug label Jul 17, 2024
@diegogangl diegogangl merged commit 7218151 into getting-things-gnome:master Jul 17, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants