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

Explicitly passed IDs take precedence over anything #57

Closed
wants to merge 3 commits into from

Conversation

dontlaugh
Copy link
Contributor

We extract a function that sets the filtered attribute on tasks if the
task ID matches IDs explicitly passed at the command line. Add a unit
test for this logic.

Refs #44

We extract a function that sets the filtered attribute on tasks if the
task ID matches IDs explicitly passed at the command line. Add a unit
test for this logic.

Refs naggie#44
@dontlaugh
Copy link
Contributor Author

@naggie I believe this should fix 44, or at least alleviate the situation.

Filtering relies on setting fields on an array of Task pointers, so I have created a private function to encapsulate this for IDs, and added a unit test.

We can do the same for filtering on other task attributes (tags, projects), in a follow up PR.

@naggie naggie mentioned this pull request Oct 8, 2020
5 tasks
@naggie
Copy link
Owner

naggie commented Oct 8, 2020

See #59 -- I suggest this is merged into a new PR

@dontlaugh dontlaugh closed this Oct 8, 2020
@dontlaugh dontlaugh deleted the 44_task_indexing branch January 13, 2021 02:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants