Closed chrstinalin closed 1 month ago
Note: for storage, please use id_to_path(<id>, breadth=2)
in the upload_to
parameter of the FileField
, and a dedicated folder under shared_storage
(your storage parameter should be set to SafeStorage(root_setting='MEDIA_ROOT')
)
Then we'll need to communicate that storage path to SRE to adjust the nginx configuration in dev/stage/prod.
I don't see this on -dev yet but maybe because of what @diox said above.
Work is technically done but won't be enabled yet, it's behind a waffle switch, so moving to the next milestone.
@ioanarusiczki : Waffle switch to enable this feature is enable-activity-log-attachments
. It should work on dev now that Wei has done https://mozilla-hub.atlassian.net/browse/SVCSE-2218
I started looking over, I've seen there is a switch. So far:
For sanity, double-checked master branch locally --
client_max_body_size
is too low. Possibly relates to (#15029). With the workaround for the latter, files up to 200mb are uploaded as expected.
from_reviewer.txt
email template was modified. I just checked and it looks like approval/rejections are in a separate email template. Reopened #15018@chrstinalin: The 404 is the addons-frontend one, so it seems we're missing the nginx config to route these kind of URLs to addons-server. Did we file the ticket for SRE to do that ?
@diox https://mozilla-hub.atlassian.net/browse/SVCSE-2218 was the only one I was aware was needed
There are 2:
internal
in nginx, allowing HttpResponseXSendFile
(which does a X-Accel-Redirect
) to work. That's https://mozilla-hub.atlassian.net/browse/SVCSE-2218/activity/...
is an entirely new kind of URL we've added for this issue. That was discussed at some point but maybe not written so we forgot to file that issue, my bad.Could you file it? Example from a previous time we needed to do that some time ago: https://mozilla-hub.atlassian.net/browse/SVCSE-1563
I'm going to mark this verified, I enabled the switch on stage and for any reviewer action I could:
Description
Reviewers need a way to communicate build logs with developers and rely on Pastebin to do so. With its decommission, this task is a part of the re-implementation of pastebin.mozilla.org on the Reviewer Tools side.
Acceptance Criteria
Checks
┆Issue is synchronized with this Jira Task