-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Explicit nginx routes for amo mobile pages #10266
Comments
@bqbn If it's possible to set this up we can verify it on -dev and stage and once verified get this out into the production as soon as possible. |
@bqbn I just made a change because I just noticed this line: https://github.com/mozilla/addons-frontend/blob/master/src/core/constants.js#L65
|
I've pushed some nginx changes to -dev for this. Please test and let us know how things are looking. |
@bqbn thanks will check it out. |
@muffinresearch : I've checked all the routes that I've mentioned in mozilla/addons-server#2037 using AMO-dev FF52(Win7) - clean profile - and did not see any changes. |
FWIW, |
@bqbn /users/edit/ is a addon-server route only so there should be no need to have config to send it to the mobile pages. |
@muffinreseach, so to clarify, is this ticket to not do 404 fallback for the listed routes on mobile site? |
@bqbn correct, it's to send traffic to only those routes assuming a mamo cookie is set to "on" or the UA is a mobile UA. |
After talking to @muffinresearch, I've updated our nginx configs and pushed them to -dev. Please test it again. |
The nginx config is broken currently and will be reverted see also #4171 Once this is fixed this can be re-tested. |
The issue was because nginx didn't try the main site when UA is not mobile, and no mamo cookie. I've fixed it and pushed it to -dev again. Can we re-test it? |
I've verified all routes I've mentioned in mozilla/addons-server#2037 using AMO-dev FF52(Win 7) and all seem to redirect correctly (updated the issue). |
@muffinresearch I took the liberty and just pushed the nginx changes to -stage for this. Can you let me know what is your plan to release this to -prod? |
@bqbn, brilliant thanks - I meant to asked you to do this when tagging yesterday. Assuming no issues are found we should push this on Thursday. Thanks again! |
Closing this since it's ready. |
Verified as fixed on -stage and -dev using FF52(Win 7) for the routes I've mentioned in the other issue. |
Relates to #10240
Currently we are routing traffic to the mobile pages based on:
In addition to this we have a fallback which will fallback based on the mobile pages providing a 404. The fallback mostly works but there are a few cases which are causing problems:
To fix this we could set up an explicit list of routes that the mobile pages responds to as this will be less prone to problems - the only downside will be one of maintenance. I'll add comments to the routes to make it clear that ops need to be told when new routes are added.
Based on https://github.com/mozilla/addons-frontend/blob/e356c928debbb226b57540b28e8a9b3d49cbaa91/src/amo/routes.js#L27
Here's the list of routes:
All routes are optionally prefixed with
/%locale%/(android|firefox)
though we also fill in both the locale and or the app if one does not exist.The text was updated successfully, but these errors were encountered: