Open Bug 1619614 Opened 5 years ago Updated 1 years ago

Bug filling from localhost should file bugs under https://bugzilla.allizom.org

Categories

(Tree Management :: Treeherder: Frontend, enhancement, P3)

enhancement

Tracking

(Not tracked)

People

(Reporter: armenzg, Unassigned)

Details

Attachments

(1 obsolete file)

Alternatively, we could be at the "enter" page and let the user hit submit rather than filing directly.

I filed a bug from localhost by mistake in here:
https://bugzilla.mozilla.org/show_bug.cgi?id=1619612

sclements: camd: do you have some pointers for this bug? Is this something a contributor could take? Are the bugs filed from the frontend using the credentials of the user signed in?

Yes, I agree - that would align with how prototype and stage is filing bugs.

It looks like the bugfiler class files bugs via an internal API bugzilla/create_bug (BugzillaViewSet). That API uses the BUGFILER_API_KEY and BUGZILLA_API_URL env variables for filing bugs to bugzilla.

But there is not default value for the BUGFILER_API_KEY env variable [1] so I'm surprised you were able to file a bug - it should have thrown an error. Did you set your local .env file with all variables from one of our production instances?

  1. https://github.com/mozilla/treeherder/blob/master/treeherder/config/settings.py#L419

I don't have any .env file.

From your explanation of the code I can't picture how localhost was ever able to file a bug.

Priority: -- → P3
Attachment #9386438 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: