Closed
Bug 952713
Opened 11 years ago
Closed 11 years ago
Make redirects from the old SDK docs
Categories
(Cloud Services :: Operations: Marketplace, task)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: wbamberg, Assigned: oremj)
References
Details
Attachments
(4 files, 1 obsolete file)
Now that the SDK docs are at: https://developer.mozilla.org/en-US/Add-ons/SDK, we need to set up redirects from https://addons.mozilla.org/en-US/developers/docs/sdk/latest/dev-guide/index.html.
Reporter | ||
Updated•11 years ago
|
Assignee: nobody → server-ops-amo
Component: Documentation → Server Operations: AMO Operations
Product: Add-on SDK → mozilla.org
QA Contact: oremj
Version: unspecified → other
Reporter | ||
Comment 1•11 years ago
|
||
Is it possible to have redirects on a per-page basis? For example, could we make
https://addons.mozilla.org/en-US/developers/docs/sdk/latest/dev-guide/tutorials/index.html redirect to https://developer.mozilla.org/en-US/Add-ons/SDK/Tutorials, and https://addons.mozilla.org/en-US/developers/docs/sdk/latest/modules/sdk/indexed-db.html redirect to https://developer.mozilla.org/en-US/Add-ons/SDK/High-Level_APIs/indexed-db, and so on?
It would be great if we could do this. If we can, I can create a list of all the mappings that are needed.
Comment 2•11 years ago
|
||
We should be able to create redirects on a per-page basis. Please provide us the list of mappings and we will add it to the nginx configuration.
Assignee | ||
Updated•11 years ago
|
Flags: needinfo?(wbamberg)
Reporter | ||
Comment 3•11 years ago
|
||
Flags: needinfo?(wbamberg)
Reporter | ||
Comment 4•11 years ago
|
||
Sorry, please disregard that attachment!
Assignee | ||
Updated•11 years ago
|
Attachment #8356327 -
Attachment is obsolete: true
Flags: needinfo?(wbamberg)
Reporter | ||
Comment 5•11 years ago
|
||
Flags: needinfo?(wbamberg)
Reporter | ||
Comment 6•11 years ago
|
||
Reporter | ||
Comment 7•11 years ago
|
||
Reporter | ||
Comment 8•11 years ago
|
||
Reporter | ||
Comment 9•11 years ago
|
||
I've added four attachments, one for each of the four versions of the SDK docs that are currently on AMO:
mappings23 -> https://addons.mozilla.org/en-US/developers/docs/sdk/Firefox-23/
mappings24 -> https://addons.mozilla.org/en-US/developers/docs/sdk/Firefox-24/
mappings25 -> https://addons.mozilla.org/en-US/developers/docs/sdk/Firefox-25/
mappings26 -> https://addons.mozilla.org/en-US/developers/docs/sdk/Firefox-26/
They're slightly different because of new docs being added and existing ones being (re)moved.
Each file lists mappings, one per line, in the format:
[old path],[new URL]
[old path] is given relative to the root for that docs install.
There are a few cases where the target no longer exists: in those cases I just redirected to the root of the SDK docs on MDN. Probably the only one of these that anyone might care about is the old "Credits" page, which will exist somewhere else, but doesn't yet.
Please let me know if anything looks wildly wrong about any of this, or if you would like this info in a different format.
I'm needinfoing Jeff just in case he wants a chance to complain about any of this before it happens.
Flags: needinfo?(jgriffiths)
Comment 11•11 years ago
|
||
No interest in complaining over here - looks great!
Assignee | ||
Updated•11 years ago
|
Assignee: server-ops-amo → oremj
Assignee | ||
Comment 13•11 years ago
|
||
I see mappings for 23-26, do we also need a separate mapping for "latest"?
Flags: needinfo?(wbamberg)
Reporter | ||
Comment 14•11 years ago
|
||
"latest" is just a symlink for "Firefox-24", so I don't know if you need separate mappings for it, but if you do, the mappings for Firefox 24 should be fine.
Flags: needinfo?(wbamberg)
Assignee | ||
Comment 15•11 years ago
|
||
Redirects are in place on addons-dev.allizom.org, e.g., https://addons-dev.allizom.org/en-US/developers/docs/sdk/latest/modules/sdk/indexed-db.html redirects properly.
Does everything look okay? When would you like me to push the changes to production?
Flags: needinfo?(wbamberg)
Reporter | ||
Comment 16•11 years ago
|
||
Yes, it looks great. You can push the changes to production as soon as it's convenient for you.
Flags: needinfo?(wbamberg)
Assignee | ||
Comment 17•11 years ago
|
||
Pushed to production.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 18•11 years ago
|
||
That's great! I think after a respectful period (3 months?) we should be able to remove the docs from addons.mozilla.org.
Assignee | ||
Comment 19•11 years ago
|
||
To implement the redirects the docs have already been removed. Do you need me to put them back?
Comment 20•11 years ago
|
||
Right now if I google for add on sdk then the first result is a 404:
https://addons.mozilla.org/en-US/developers/docs/sdk/latest
It'd be cool it that redirected to the new docs
Reporter | ||
Comment 21•11 years ago
|
||
Jeremy: no, I don't need them put back. Sorry for my misunderstanding.
Ben: yes, it totally should, thanks for catching that. Jeremy, is that a redirect you can add?
https://addons.mozilla.org/en-US/developers/docs/sdk/latest -> https://developer.mozilla.org/en-US/Add-ons/SDK
Flags: needinfo?(oremj)
Assignee | ||
Comment 22•11 years ago
|
||
Added. Redirects are listed @ https://github.com/mozilla-services/svcops-puppet/blob/master/modules/marketplace/templates/nginx/addons/sdk_redirects.conf btw.
Flags: needinfo?(oremj)
Comment 23•11 years ago
|
||
cool. must not have taken effect yet though. i guess it takes a little while?
Assignee | ||
Comment 24•11 years ago
|
||
It appears to be working now.
Comment 25•11 years ago
|
||
Weird. I just tried from multiple computers and am still getting 404 for https://addons.mozilla.org/en-US/developers/docs/sdk/latest/
Reporter | ||
Comment 26•11 years ago
|
||
It looks like the trailing slash matters: https://addons.mozilla.org/en-US/developers/docs/sdk/latest redirects, but https://addons.mozilla.org/en-US/developers/docs/sdk/latest/ does not.
So I guess that mapping needs to be added as well. In fact, for every mapping I had that maps from "[path]/index.html" I guess we need 2 additional mappings, one from "[path]/" and one from "[path]". That would be:
https://addons.mozilla.org/en-US/developers/docs/sdk/[Firefox-23|Firefox-24|Firefox-25|Firefox-26|latest],https://developer.mozilla.org/en-US/Add-ons/SDK/
https://addons.mozilla.org/en-US/developers/docs/sdk/[Firefox-23|Firefox-24|Firefox-25|Firefox-26|latest]/,https://developer.mozilla.org/en-US/Add-ons/SDK/
https://addons.mozilla.org/en-US/developers/docs/sdk/[Firefox-23|Firefox-24|Firefox-25|Firefox-26|latest]/dev-guide/,https://developer.mozilla.org/en-US/Add-ons/SDK/
https://addons.mozilla.org/en-US/developers/docs/sdk/[Firefox-23|Firefox-24|Firefox-25|Firefox-26|latest]/dev-guide,https://developer.mozilla.org/en-US/Add-ons/SDK/
https://addons.mozilla.org/en-US/developers/docs/sdk/[Firefox-23|Firefox-24|Firefox-25|Firefox-26|latest]/dev-guide/guides/,https://developer.mozilla.org/en-US/Add-ons/SDK/Guides
https://addons.mozilla.org/en-US/developers/docs/sdk/[Firefox-23|Firefox-24|Firefox-25|Firefox-26|latest]/dev-guide/guides,https://developer.mozilla.org/en-US/Add-ons/SDK/Guides
https://addons.mozilla.org/en-US/developers/docs/sdk/[Firefox-23|Firefox-24|Firefox-25|Firefox-26|latest]/dev-guide/guides/content-scripts/,https://developer.mozilla.org/en-US/Add-ons/SDK/Guides/Content_Scripts
https://addons.mozilla.org/en-US/developers/docs/sdk/[Firefox-23|Firefox-24|Firefox-25|Firefox-26|latest]/dev-guide/guides/content-scripts,https://developer.mozilla.org/en-US/Add-ons/SDK/Guides/Content_Scripts
https://addons.mozilla.org/en-US/developers/docs/sdk/[Firefox-23|Firefox-24|Firefox-25|Firefox-26|latest]/dev-guide/tutorials/,https://developer.mozilla.org/en-US/Add-ons/SDK/Tutorials
https://addons.mozilla.org/en-US/developers/docs/sdk/[Firefox-23|Firefox-24|Firefox-25|Firefox-26|latest]/dev-guide/tutorials,https://developer.mozilla.org/en-US/Add-ons/SDK/Tutorials
https://addons.mozilla.org/en-US/developers/docs/sdk/[Firefox-23|Firefox-24|Firefox-25|Firefox-26|latest]/dev-guide/tutorials/annotator/,https://developer.mozilla.org/en-US/Add-ons/SDK/Tutorials/Annotator
https://addons.mozilla.org/en-US/developers/docs/sdk/[Firefox-23|Firefox-24|Firefox-25|Firefox-26|latest]/dev-guide/tutorials/annotator,https://developer.mozilla.org/en-US/Add-ons/SDK/Tutorials/Annotator
Assignee | ||
Comment 27•11 years ago
|
||
Updated•11 years ago
|
Component: Server Operations: AMO Operations → Operations: Marketplace
Product: mozilla.org → Mozilla Services
You need to log in
before you can comment on or make changes to this bug.
Description
•