-
-
Notifications
You must be signed in to change notification settings - Fork 241
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
Add --ignore-project and --ignore-tag to report #288
Conversation
watson/frames.py
Outdated
(tags is None or any(tag in frame.tags for tag in tags)) and | ||
(ignore_tags is None | ||
or any(tag not in frame.tags for tag in ignore_tags)) and |
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.
Shouldn't it be all
instead of any
?
Co-Authored-By: Yannick PÉROUX <yannick.peroux@gmail.com>
@@ -443,19 +443,27 @@ def merge_report(self, frames_with_conflict): | |||
|
|||
return conflicting, merging | |||
|
|||
def _validate_report_options(self, filtrate, ignored): | |||
return bool( | |||
filtrate and ignored and set(filtrate).intersection(set(ignored))) |
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 think that if a function "validate" something, it should return True when it's valid, not the opposite :) .
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.
fair enough :P I'll take a look at it tomorrow and push a fixed version :)
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.
Awesome, thanks for the time & patience 👍 .
not at all, my pleasure |
* add aggregation completion * add completion profile for add * cosmetic fixes to watson.fish: - reorder ungrouped completions - add missing comment * add CSV support to aggregate, log, and report * extend existing completion profiles: - adds --luna to report and log - adds --at to stop * properly display confirm-new options
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.
Hey @gallois If you rebase this I'll merge it asap.
Co-Authored-By: Yannick PÉROUX <yannick.peroux@gmail.com>
* Add two options to ignore a project or a tag when requesting a log, in the same way you can do it with report (see jazzband#288).
This reverts commit 699ccda.
Add two options to ignore a project or a tag when generating a report, in the same way you can select some. I've used some json formatting +
jq
magic to filter out some specific tags from things like daily standups/weekly reports but it was a bit of a monstrosity, to be honest.