Closed Bug 506371 Opened 15 years ago Closed 10 years ago

Learnmore and thumbnail links returned in the API on preview point to production, instead

Categories

(addons.mozilla.org Graveyard :: API, defect, P5)

x86
All
defect

Tracking

(Not tracked)

RESOLVED WONTFIX
4.x (triaged)

People

(Reporter: stephend, Assigned: clouserw)

References

()

Details

Attachments

(1 file)

Summary: Learnmore and thumbnail links returned in the API on preview point to production, instead

Sorry; don't know if this is a regression or not.

Following clouserw's steps to reproduce / verify https://bugzilla.mozilla.org/show_bug.cgi?id=506030#c5, we found that that the links to add-ons returned in the API are hardcoded to production.

STR:

1. Load https://preview.addons.mozilla.org/en-US/firefox/api/search/firebug/all/10/
2. Look at the learnmore/thumbnail links

Expected Results:

I would think that they would point to preview.*

Actual Results:

Add-on links are hardcoded to prod
Attached patch don't hardcodeSplinter Review
This patches changes it to use SITE_URL.  It looks like the last time that line was changed was to go from services.addons.mozilla.org -> addons.mozilla.org.  I don't remember that and the commit message doesn't have a bug in it.  morgamic did it so I'm hoping he remembers.  r?morgamic
Attachment #390581 - Flags: review?(morgamic)
Comment on attachment 390581 [details] [diff] [review]
don't hardcode

That's what it's there for. :)
Looks like this is related to bug 434603 -- last time this was done the images broke in the add-on manager so it's important we QA it. See the other bug for a backstory -- this is actually sort of a dupe.
(In reply to comment #3)
> Looks like this is related to bug 434603 -- last time this was done the images
> broke in the add-on manager so it's important we QA it. See the other bug for a
> backstory -- this is actually sort of a dupe.

So is this going to land in 5.0.8 with a chance for us to test?
Target Milestone: 5.0.8 → 5.0.9
Assignee: nobody → clouserw
(In reply to comment #4)
> (In reply to comment #3)
> > Looks like this is related to bug 434603 -- last time this was done the images
> > broke in the add-on manager so it's important we QA it. See the other bug for a
> > backstory -- this is actually sort of a dupe.
> 
> So is this going to land in 5.0.8 with a chance for us to test?

Nope, this is dependent on bug 434603, and we should fix it right so that bug might be dependent on bug 482837
Depends on: 434603
Target Milestone: 5.0.9 → ---
Comment on attachment 390581 [details] [diff] [review]
don't hardcode

Yes please.
Attachment #390581 - Flags: review?(morgamic) → review+
Target Milestone: --- → 5.1
Depends on bugs that aren't in 5.1 so this shouldn't be in 5.1 either.
Target Milestone: 5.1 → ---
Severity: normal → trivial
Priority: -- → P5
Target Milestone: --- → 4.x (triaged)
Thanks for filing this.  In an effort to not drown in existing reports we're aggressively closing old enhancements and bugs to get the buglist to a reasonable level so we can scope and process bug sprints in an effective manner.

Patches for this bug are still welcome.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WONTFIX
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: