-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
WEB: Better management of releases #56207
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
WEB: Better management of releases #56207
Conversation
sorting on version number + sorting out obsolete versions
Hi @datapythonista !
Could not figure out how new tests should be called. |
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.
Great job, just one comment
web/pandas_web.py
Outdated
for _, release_group in grouped_releases | ||
] | ||
# sorting releases by version number | ||
context["releases"].sort(key=lambda r: r["name"], reverse=True) |
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 we sort by the parsed version? Maybe I'm missing something, but feels like sorting by name will make 2.0 be shown before 10.0, no?
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'm parsing version before that on line 244. Is that ok?
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.
Ah, true. Makes sense, but probably worth renaming the field from name
to something like parsed_version
then, no? I think the code is a bit misleading otherwise, at least it was for me.
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.
Done
"published_at": "2023-01-19T03:34:05Z", | ||
"tag_name": "v1.5.3xd", | ||
"assets": None, | ||
}, |
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.
Maybe we can add 10.0 to make sure the possible bug commented above is not there.
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.
Added
Good point. I think the normal tests just call pytest for the pandas/ directory. In the CI job to build the website and docs we could add a step to call pytest for the tests in web/. I think that's what makes sense, but other ideas are welcome. |
Can you please point me out a file with CI job for docs and website? Sorry, I'm new to the project. |
https://github.com/pandas-dev/pandas/blob/main/.github/workflows/docbuild-and-upload.yml |
Thanks a lot! Added "Test website" step to ci job. |
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.
LGTM merge when ready @datapythonista
Amazing job, thanks for taking care of this @Dukastlik, and sorry that reviews took a while. |
Added releases sorting by version number and sorting out obsolete releases in web/pandas_web.py