Skip to content

Fix issue with wrong until in GitHub search - #376

Merged
sandrobonazzola merged 3 commits into
psss:mainfrom
Felixoid:github-until
Jun 3, 2025
Merged

Fix issue with wrong until in GitHub search#376
sandrobonazzola merged 3 commits into
psss:mainfrom
Felixoid:github-until

Conversation

@Felixoid

@Felixoid Felixoid commented Oct 9, 2024

Copy link
Copy Markdown
Contributor

It fixes #362.

A decoupled part from #363

@psss

psss commented Oct 9, 2024

Copy link
Copy Markdown
Owner

Thanks for fixing this! Would you mind extending the /tests/github/issues and /tests/github/pulls tests with a simple test case demonstrating that the dates now work as expected?

@psss psss added this to the 0.22 milestone Oct 9, 2024
@psss psss self-assigned this Oct 9, 2024
@Felixoid

Felixoid commented Oct 9, 2024

Copy link
Copy Markdown
Contributor Author

The PRs and issues appearing when running tests against the master:

teemtee/tmt#1645, teemtee/tmt#1644, teemtee/tmt#1648, teemtee/tmt#1650

@Felixoid

Copy link
Copy Markdown
Contributor Author

It was previously inconsistent with using somewhere defined local variables and somewhere not. Fixed it

@Felixoid

Copy link
Copy Markdown
Contributor Author

This PR is ready to review and merge. Since it touches the same code, I'll use it as a base for #363.

@Felixoid

Felixoid commented Nov 8, 2024

Copy link
Copy Markdown
Contributor Author

Dear @psss, I'd like to have it merged before the #363. That PR uses the changed until and touches the code close to the same as here. Do you have time for a quick review?

@Felixoid

Copy link
Copy Markdown
Contributor Author

Hey-hey, happy new year!

A kind ping?

@sandrobonazzola

Copy link
Copy Markdown
Collaborator

Can you please rebase?

@Felixoid

Copy link
Copy Markdown
Contributor Author

It looks like it is still working, and all tests have passed.

@Felixoid

Copy link
Copy Markdown
Contributor Author

I see. I have not installed tenacity, so my isort considered it a local package.

Didn't know the codebase applied autopep8. Good to have an automated check for it.

I prefer black, but anything automated is perfect!

@Felixoid

Felixoid commented Jun 1, 2025

Copy link
Copy Markdown
Contributor Author

Good to go?

@sandrobonazzola sandrobonazzola left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@sandrobonazzola
sandrobonazzola merged commit 6fa3bdb into psss:main Jun 3, 2025
psss added a commit that referenced this pull request Jun 3, 2025
Fix regression introduced in #376. The `until` date should use the
`did.base.Date` class. Otherwise stats like commented issues
traceback because of the missing `datetime` attribute. Include a
basic sanity coverage which exercises all stats to prevent similar
issues in the future.
@psss

psss commented Jun 3, 2025

Copy link
Copy Markdown
Owner

Thanks for improving this, @Felixoid! I just ran into a small regression caused by the change. Should be fixed by #405.

psss added a commit that referenced this pull request Jun 3, 2025
Fix regression introduced in #376. The `until` date should use the
`did.base.Date` class. Otherwise stats like commented issues
traceback because of the missing `datetime` attribute. Include a
basic sanity coverage which exercises all stats to prevent similar
issues in the future.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Too recent GitHub pull requests included

3 participants