Closed
Bug 1076328
Opened 11 years ago
Closed 11 years ago
Fix corrupted Zippy products on dev (purchase results in 'resource not found')
Categories
(Marketplace Graveyard :: Payments/Refunds, defect)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: kumar, Unassigned)
Details
When purchasing certain corrupted Zippy products on dev you'll see something like: 'Resource with UUID "cdf93e1b-6338-4513-acdc-939233f90bbe" cannot be found.'
http://sentry.dmz.phx1.mozilla.com/marketplace-dev/payments-dev/group/20677/
We seem to constantly waste a lot of cycles when Solitude's data does not match what's in Zippy. I don't know if this is just from when we switched from using the paas Zippy to the dev Zippy but it has come up a couple times.
We could fix this by writing a script to delete products in the solitude db that do not exist in Zippy. Here are some notes from a python shell on Solitude dev:
>>> from lib.provider.client import get_client
>>> ref = get_client('reference')
>>> from lib.sellers.models import SellerProductReference
>>> from curling.lib import HttpClientError
>>> ok = 0
>>> bad = 0
>>> for p in SellerProductReference.objects.all():
... try:
... ref.api.products(p.reference_id).get()
... ok +=1
... except HttpClientError:
... bad += 1
...
>>> bad
109
>>> ok
2
The two good apps are ones that I submitted today after Zippy was set up right.
Comment 1•11 years ago
|
||
We don't really care about old data.
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
•