-
Notifications
You must be signed in to change notification settings - Fork 915
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
[REVIEW] Drop kind
parameter from Index.get_slice_bound
#12856
[REVIEW] Drop kind
parameter from Index.get_slice_bound
#12856
Conversation
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.
Code looks great.
One question, do we want to collate (or somehow have consistent changelog naming) these PRs that drop deprecated functionality?
Having a list of all these breaking changes merged into the feature branch in the changelog will be very useful. @ajschmidt8 Would it be possible today, if not happy to add manual entries too. |
Hmmm. Our current changelog process doesn't really allow for manual overrides. The running changelogs (e.g. this one) are re-generated from scratch every time a PR is merged. If the PR has a |
Does this happen even if the PR was merged to a feature branch, I assume no? right? |
Correct. But presumably this feature branch will eventually be merged into a regular development branch, right? As long as that particular PR contains the |
Right, but the thing we are trying to capture here is not the PR title of the final PR to regular dev branch. We actually want to capture the title's of the PRs being merged into Today merging a feature branch to regular dev branch would generate something like this in changelog:
But instead what we want to happen is:
#12856 & #12846 are the PRs merged to the feature branch, but there are changelog-worthy entries too. Since pandas 2.0 support will be a non-trivial change to our APIs, we actually would like to capture PRs being merged to the feature branch as changelog entries. |
More generally, given that we are trying to be better about using feature branches for long-running projects that can be broken up into smaller pieces for easier review, it would be helpful for us to have some ability to configure how those final merges are translated into a changelog. There will be other instances where we want the same behavior: including one changelog entry for every PR merged into the feature branch instead of only one changelog entry for the final merge of the feature branch into the trunk. |
I'm going to merge this PR and keep the discussion going. |
I see. At the moment there is no clean way for us to add those entries automatically. Here is our current process:
This is all scripted, so there's not currently any good way to interject and add manual entries. The only way I can see to add additional entries would be to open a PR to update |
Our automated changelog process is fragile at the moment. It's handled by the ops-bot. I had to effectively write a plugin that adapts this open-source release-drafter project for our unconventional branching strategy. At some point, the Ops team would like to revisit our branching strategy and change it to something more sane. Once that happens, we'll have to revisit our automated changelog process (among other things). At that point, we can probably take this feedback into consideration and try to find a better solution for this. No ETA on that yet though. We have a lot of other items we need to address first. |
How about we write (as part of the final pandas-2.0 compat merge) a page in the docs detailing all the deprecations (this has a stable link), and the PR title is something like:
Obviously this isn't perfect for someone scanning through, but at least there are enough breadcrumbs for them to see where to look. |
Description
This PR drops
kind
parameter fromIndex.get_slice_bound
to match pandas-2.0 API.Checklist