-
Notifications
You must be signed in to change notification settings - Fork 34
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
PDC-645 Refactor compose/package #23
Conversation
Couple notes:
|
@lubomir The "I think we should drop the to_dict option by picking one behaviour and sticking with it", you means drop to_dict only for these 2 new endpoints or for all endpoints including compose/package? |
@ycheng-aa Just here, we should keep compose/package unmodified for backwards compatibility. Just simplify the new APIs. I don't think there are any business reason why someone should need this option, we just need a good default. |
The documentation on |
@ycheng-aa You are right, the order still determines which compose is latest. Maybe it needs to be documented, I'm not sure. |
ada1f64
to
e4d3005
Compare
@lubomir Ok, I reverted the documentation about the "order" for FindLatestComposeByComposeRPM. |
@lubomir FWIW the to_dict was requested earlier to simplify figuring out exact NVR bits without having to parse it |
@sochotnicky @lubomir So the final decision is keep "to_dict" or what? |
I would agree with stano. let's keep the original parameters since all these requirements were coming from clients. |
cc4c118
to
f169786
Compare
@lubomir @erichuanggit I add to_dict back for code/tests/documentation and rebased it. Please help me review it. Thanks. |
Looks pretty good to me. I would prefer the commit title to not start with the PDC-645 and instead for it to be somewhere in the commit message. It is not very useful for people without access to Jira, so it does not need such prominent place. |
I will change the commit message in final rebase. The coverage failed seems because messaging. It should not be related to this pull request. |
Looks good to me. |
👍 |
Add 2 new end points to take old compose/package endpoint function. One is for a given release and srpm_name list all composes that contain the package (and include its version). Another is given a compose C and a package, find the latest compose older than C which contains a different version of the package. Keep the old endpoint same for a while to don't break existing scripts. JIRA: PDC-645
1364abf
to
ba5b41d
Compare
…ose_package PDC-645 Refactor compose/package
Add 2 new end points to take old compose/package
endpoint function.
One is for a given release and srpm_name list all
composes that contain the package (and include its version).
Another is given a compose C and a package, find the
latest compose older than C which contains a
different version of the package.
Keep the old endpoint same for a while to don't break
existing scripts.