Closed
Bug 997265
Opened 12 years ago
Closed 11 years ago
Consolidate Provider objects and provider constants.
Categories
(Marketplace Graveyard :: Payments/Refunds, defect, P4)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: muffinresearch, Unassigned)
Details
Currently we have constants for providers e.g: https://github.com/mozilla/zamboni/blob/master/apps/constants/payments.py#L121
And we also have shiny new provider objects defined in mkt.developers.providers. https://github.com/mozilla/zamboni/blob/master/mkt/developers/providers.py#L237
This bug is to remove the constants in favour of using the objects so there's a single source of truth for providers.
Comment 1•12 years ago
|
||
Having a constant that refers to a provider is pretty useful, eg:
https://github.com/mozilla/zamboni/blob/master/mkt/developers/models.py#L61-L62
Comment 2•12 years ago
|
||
And those constants are the same in solitude and webpay...
Updated•12 years ago
|
Priority: -- → P4
| Reporter | ||
Comment 3•12 years ago
|
||
(In reply to Andy McKay [:andym] from comment #2)
> And those constants are the same in solitude and webpay...
So maybe the answer is to keep the constants but have them reference the provider objects?
| Reporter | ||
Updated•12 years ago
|
Summary: Use Provider objects as the single source of truth for providers. → Consolidate Provider objects and provider constants.
| Reporter | ||
Comment 4•12 years ago
|
||
So seems like there's a good use-case in keeping the constants - perhaps we can instead think about folding the objects into the constants file to be consistent with how we have defined regions?
Comment 5•11 years ago
|
||
Someone could move it to marketplace-constants.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•