Skip to content

Support filtering commits by datetime #2390

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

Open
joeng03 opened this issue Apr 7, 2025 · 0 comments
Open

Support filtering commits by datetime #2390

joeng03 opened this issue Apr 7, 2025 · 0 comments

Comments

@joeng03
Copy link
Contributor

joeng03 commented Apr 7, 2025

Refer to #2388

We currently support filtering commits by date only.

Since we currently group the commits by dates, and each date has multiple commits, we can't do filtering based on datetime as of now. Propose to change the structure of authorDailyContributionsMap to support this.

To minimize changes to the codebase, I suggest that we add an additional field for datetime to each commit grouped under the same date. When filtering, we only have to extend the existing filtering logic to filter the datetime for the first and last filtered date.

For example, if "since" is 2020-01-01T00:02 and "until" is 2020-01-15T23:00, then we only have to filter the dates as usual, then do additional filtering for commits grouped under 2020-01-01 for time >=00:02, and commits grouped under 2020-01-15 for time <=23:00.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

1 participant