mozilla / addons

☂ Umbrella repository for Mozilla Addons ✨
Other
127 stars 41 forks source link

[Task]: Reviewer Tools Pastebin Re-implementation #14997

Closed chrstinalin closed 1 month ago

chrstinalin commented 2 months ago

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

### Milestones/checkpoints
- [x] New text/file input field in the “reviewer reply” form to allow a reviewer to upload or paste build logs.
- [x] Attach the build logs as a new model linking to the activity log though a OneToOneField
- [x] Surface the logs in the reviewer tools for reviewers.

Checks

┆Issue is synchronized with this Jira Task

diox commented 2 months 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.

ioanarusiczki commented 1 month ago

I don't see this on -dev yet but maybe because of what @diox said above.

diox commented 1 month ago

Work is technically done but won't be enabled yet, it's behind a waffle switch, so moving to the next milestone.

diox commented 1 month ago

@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

ioanarusiczki commented 1 month ago

I started looking over, I've seen there is a switch. So far:

413

chrstinalin commented 1 month ago

For sanity, double-checked master branch locally --

diox commented 1 month ago

@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 ?

chrstinalin commented 1 month ago

@diox https://mozilla-hub.atlassian.net/browse/SVCSE-2218 was the only one I was aware was needed

diox commented 1 month ago

There are 2:

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

ioanarusiczki commented 1 month ago

I'm going to mark this verified, I enabled the switch on stage and for any reviewer action I could: