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
Fixes #14043 - Fixes how product associations are made, to work with multiple organizations correctly. #5919
Conversation
…multiple organizations correctly.
|
@jlsherrill @thomasmckay could you double check this logic that it makes sense with respect to our modeling design vs Candlepin? |
|
@ehelms - give others a chance to review. commenting implies you need to ack too now |
|
No it doesn't, and I worked on this with Zach, which is why I am requesting
|
|
Yes, this makes perfect sense, we should NEVER look up a product only by cp_id, as its not unique. By Cp_id + org_id should be unique. |
|
ACK Merging Thanks @zjhuntin ! |
|
Actually i'll give @thomasmckay a chance to comment before merging |
|
ACK |
|
merging thanks @zjhuntin |
|
This did not fix the activation key product content. How was it tested? |
|
This fix did not fix the UI https://bugzilla.redhat.com/show_bug.cgi?id=1317679 |
|
It also did not fix hammer. :) I will reopen redmine/bz. |
|
@thomasmckay did you test this with an existing setup or a fresh setup? |
|
I tested this on a dev install w/ latest katello/foreman git. UI shows no product content repos, while hammer shows the wrong repos. |
|
Sorry, let me rephrase, did you test this with existing data or start fresh? If you note the change is in the import method which means existing data is already fubared so you either need to reimport all data or start fresh. |
|
@ehelms - ACK! I refreshed manifest in org B (w/ breakpoints to confirm code is hit) and it looks good. I'll switch BZs back. |
To reproduce: