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

Add missing filters when listing issues. #1234

Merged
merged 7 commits into from
Aug 21, 2016
Merged

Conversation

pcorpet
Copy link
Contributor

@pcorpet pcorpet commented Aug 18, 2016

Useful for #1099

When opening an issue, add a comma-separated list of labels to this issue.

-t, --since <TIME>
Display only issues updated at or after a certain time. The time is a
Copy link
Owner

Choose a reason for hiding this comment

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

Maybe instead of "time" we can say "date" and allow a date input without a time?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@mislav
Copy link
Owner

mislav commented Aug 19, 2016

This looks great! Thanks for working on this.

"creator": flagIssueCreator,
"mentioned": flagIssueMentioned,
"labels": flagIssueLabelsFilter,
"since": flagIssueSince,
Copy link
Owner

Choose a reason for hiding this comment

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

I still think we need to process flagIssueSince a bit before passing it on to the API. The reason is timezones.

A person in New Zealand might use 2016-08-19 to get all isues on or after Friday. However, when the API interprets that date, most likely in the PST timezone, the results returned from start of Friday will be very different, ignoring most issues opened on Friday in New Zealand.

We have to assume that when a person doesn't specify a time or timezone offset, 2016-08-19 means “the start of the 19th of August for me in my local timezone“. So, we should parse the date in the local timezone, have it default to 00:00:00 for time, and serialize it into ISO 8601 format when passing to API so the time is absolutely precise and unambiguous.

@mislav mislav merged commit 99a0d87 into mislav:master Aug 21, 2016
@pcorpet pcorpet deleted the issue-filters branch August 22, 2016 08:32
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.

2 participants