-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
typing: convert db.buildrequests.BrDict to dataclass #7607
Conversation
I think the change with The root cause is having buildername in build request which I think should not live there. But let's not deprecate too much at a single time. |
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.
Looks good, but some tests are broken.
I think for now let's focus on having all pieces in the master branch first. I can easily backport your PRs if you disappear for a month, but if the conversion itself is not finished this would be way worse. |
Also I have some doubts whether backporting to 3.12.0 is the best way to go. The database schema has changed in 4.0, so the backporting will not be trivial and the chance of bugs is increased. The cost of doing this change in e.g. 4.1.0 is just carrying deprecated One way to go is once 4.0 is otherwise ready, create 4.0.x branch, revert the dataclass PRs that have gone in so far and cut v4.0.0. Master branch keeps going on to be 4.1.0. The cost of doing so is increased number of backports to 4.0.x, but many of the backports will need to go to 3.11.x anyway, so it's not a huge increase of effort. For you there's nothing to do, if I decide that backporting is bad idea I will adjust the deprecation notices accordingly. |
Added an assert to resultspec.FieldBase.__init__ to prevent this.
1f6071f
to
8e9df31
Compare
I think pushing this to 4.x is sensible, it could indeed lead to some bugs. |
Relates to #7591
This one was a bit more annoying.
Contains some fixes/improvements.
Not super happy about the change in
_getBuildRequestForBrdict
so let me know if you see something better.Also, since this is planned to be in 3.12, if you create the branch, I can take care of rebase + PR against it.
Contributor Checklist:
newsfragments
directory (and read theREADME.txt
in that directory)