-
Notifications
You must be signed in to change notification settings - Fork 310
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
evaluator: Make PackageRules
take a CuratedPackage
#5719
Conversation
fbed57c
to
cedf8b3
Compare
cedf8b3
to
012cf82
Compare
I am not going to comment on all points of the already very long discussion, I just want to add some thoughts about the three commits in this PR:
|
That is correct, I'm undecided about the question if package rules need access to the list of applied curations. But if more properties are added to |
IIUC the whole above argumentation is based on the underlying assumption(s) that it's good to move So, can we discuss pros and cons of (1) having all properties in |
To be honest, I'm a little bit exhausted by this surprisingly lengthy discussion about something that I (and probably also @mnonnenmacher) regard as straight-forward changes. But sure @fviernau, please go ahead and provide your pros for keeping / putting properties in |
There is no underlying assumption, in (2) I explain that I think it is a good idea to separate package metadata from user provided values like the concluded license, and (1) is mostly independent of the refactoring of the concluded license.
@sschuberth Maybe you could provide a draft of what the final classes should look like in your opinion if legal conclusions are separated from metadata and also concluded copyrights are added? I think this might help to understand the motivation behind the change. Just some independent ideas about the general refactoring that we could discuss later: |
Not sure if it help, but in the context of #4519 / #5680 I envision the
I believe these are some good ideas. Esp. extracting common stuff of |
I gave this some further thought and decided to leave this discussion, as I feel on this particular topic were mostly talking past one another. So, I'll go with whatever the community decides. |
55ff8ec
to
ad886ee
Compare
Codecov ReportBase: 57.97% // Head: 57.97% // No change to project coverage 👍
Additional details and impacted files@@ Coverage Diff @@
## main #5719 +/- ##
=========================================
Coverage 57.97% 57.97%
Complexity 2228 2228
=========================================
Files 326 326
Lines 19088 19088
Branches 3735 3749 +14
=========================================
Hits 11067 11067
Misses 6883 6883
Partials 1138 1138
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
c06f80c
to
daaf3e6
Compare
concludedLicense
from Package
to CuratedPackage
PackageRules
take a CuratedPackage
daaf3e6
to
ba625cb
Compare
00e49db
to
fabb8c2
Compare
Please have a look again (esp. @mnonnenmacher) as I've dropped the commit that moves |
Looks good to me, but I'll wait with the approval until the next workday because of the required adaptations in our rules. |
See [1]. [1]: oss-review-toolkit/ort#5719 Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
@bennati here's another heads-up for a PR with breaking changes you probably need to adapt your rules to. Your changes probably would need to look similar to these. |
See [1]. [1]: oss-review-toolkit/ort#5719 Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
See [1]. [1]: oss-review-toolkit/ort#5719 Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
fabb8c2
to
aebb5b6
Compare
Thanks, please go ahead |
aebb5b6
to
ab36976
Compare
Effectively, a `CuratedPackage` was already passed as exactly its two properties `pkg` and `curations` were passed separately. Simplify that by passing the whole `CuratedPackage` without decomposing it first. This is also a preparation for adding more fields to `CuratedPackage` to which rules need to have access to. Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
This avoids the ugly `pkg.pkg` construct when accessing the `Package` of a `CuratedPackage`. Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
ab36976
to
559c536
Compare
@mnonnenmacher, @fviernau if you're also ok with moving forward with this, please approve. I'd like to merge this before I need to catch up with new changes. |
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.
@sschuberth I have prepared the changes on our side, but please wait with the merge until tomorrow because I don't have time to do a synchronized merge today.
Are we good to go @mnonnenmacher? |
Yes, go ahead. |
See [1]. [1]: oss-review-toolkit/ort#5719 Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
See [1]. [1]: oss-review-toolkit/ort#5719 Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
Please have a look at the individual commit messages for the details.