-
Notifications
You must be signed in to change notification settings - Fork 534
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
DevHub Pastebin Re-implementation #22664
Conversation
eb86156
to
d3a6220
Compare
Trying to verify I caught something.. how is the URL being defined? I see the get_attachment_url using revers() but also saw in the browser a relative URL. @diox can you clarify I can't remember if we need special care for ensuring the site URL is included as the URL root. Also clicking the URL in local dev resulted in infinite redirects and eventually a failure. |
I pointed it out in the other PR, but it seems to have something to do with the constants? Removing them makes the link work as expected, but including them causes the infinite redirect. Since there was extra work to be done with frontend (syncing the constants), I had assumed the lack of constant-syncing was the issue. |
On local environments, where requests are proxied through addons-frontend, it should work fine if your The reason it works if you remove the constants is that then it makes a redirect to On dev/stage/prod we'll need SRE to update nginx config in https://github.com/mozilla-it/webservices-infra/blob/main/amo/k8s/amo-proxy/configs/addons.conf.tpl to make |
@diox curious why did we not opt for /downloads root? This is for downloading an attachment.. I saw the conversation in @chrstinalin linked ticket but maybe I missed something. |
I just discovered we are currently not defaulting to pulling latest image of dependencies like |
@chrstinalin okay good news, new error. But still an error. now I'm getting I did the following:
Any idea what could be happening? |
…o devhub-pastebin
@KevinMind Whoops. Reverse is using the wrong ID |
(Also, atm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Verified working locally. LGTM
Fixes: mozilla/addons#14998
Description
Surfaces attachments on the DevHub side, allowing developers to download reply attachments.
Testing
enable-activity-log-attachments
waffle switch.Checklist
#ISSUENUM
at the top of your PR to an existing open issue in the mozilla/addons repository.