Red Hat Bugzilla – Bug 113084
Negative entitlements in entitlement proxy product mappings
Last modified: 2007-10-23 22:17:10 EDT
Now that we're selling an entitlement that replaces one sort of slot
with another (upgrade management to provisioning), we need to be sure
that product mappings can add AND remove slots.
We also need to be sure that, when we remove slots, we set a lower
bound of 0 on the number of slots a customer can have.
Ok, so right now we have a lower bound of zero (needs testing).
What we don't have is web_customer_entitlements and
rhnUserAvailableUpgrades (which is only concerned with basic slots
Fixing web_customer_entitlements is nonsensical. I can make any
particular row of the results not display a number less than zero, but
then it'll show you having more entitlements than you have. The code
that uses the view needs to know that it should look for some
entitlements and try to cancel out...
If I remembered Chip's proposal on Thursday afternoon, I'd repeat it
here, but I don't. I'll just trust that you remembered it and hand
the bug back to you. :-)
I think the agreement thursday afternoon was that I can't possibly do
anything meaningful to the views, and he'd solve it in application code.
Assigning to him now, to be sure I'm right, and that it's done (I
think it is).
yeah this should be solved now; views more or less make sense, but it
Closing this bug because it's now represented in 3 or 4 other bugs. :-)