Closed Bug 1448334 Opened 7 years ago Closed 6 years ago

"File a bug" link from file view to bugzilla

Categories

(Webtools :: Searchfox, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jorendorff, Assigned: kats)

References

Details

In a discussion why BUG_COMPONENT exists in moz.build files: <jorendorff> looks like it was for this maybe? https://bugzilla.mozilla.org/show_bug.cgi?id=1352495 <jorendorff> never landed <jorendorff> maybe searchfox should have a "file a bug" link that autofills the component :D <freddyb> jorendorff: that'd be great. want to file an issue in searchfox repo? :) <jorendorff> i was kind of joking... And yet here we are.
Is this something people would actually use? While I do occasionally spot bugs in code while browsing on searchfox, I don't know if it happens frequently enough to warrant optimizing the flow of filing a bug.
If we did want to implement this, I think a reasonable approach would be to run something like: find . -type f -name "*.cpp" | xargs ./mach file-info bugzilla-component on the m-c tree, and turn the output into a .json file that contains a map from filename -> component. Then, when generating the html for the rendered file, we can look up the map to see if there's an associated component, and add a "File a bug" link under the "Source code" section of the floater nav thingy.
No longer blocks: 1509263
See Also: → 1510341
Assignee: nobody → kats
This is deployed now
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.