Closed Bug 1661360 Opened 6 years ago Closed 1 year ago

Add a link to a preset TMO bug submittal page in bugzilla on every TMO web page

Categories

(Data Platform and Tools :: General, task, P2)

task
Points:
2

Tracking

(Not tracked)

RESOLVED WONTFIX
Future

People

(Reporter: evorheis, Assigned: bugzilla)

References

()

Details

Attachments

(1 obsolete file)

When the https://docs.telemetry.mozilla.org/contributing/index.html
web page is displayed in TMO, you can click "file a bug" on that page. Once you click "file a bug," another page appears (as listed in the below-mentioned URL field).

Please add a footer on each web page that links to a page in bugzilla with preset options for filing a TMO documentation bug that results in a request to change content on the TMO web pages making it easier to file a TMO doc bug.

Once this is implemented, a goal can be added in Google Analytics to track anyone who click on these links.
.

Jan-Erik, is this something we could extend https://github.com/badboy/mdbook-open-on-gh to do? My dream would be able to specify some kind of template in the configuration, and have the plugin fill it in as appropriate. We could even have the bugzilla bug automatically link to the appropriate files/content.

See also bug 1648775, which makes a similar request to modify the footer with extra information.

Flags: needinfo?(jrediger)
See Also: → 1648775

Sounds reasonably simple to achieve, yeah.
We can take the bugzilla link as a configuration option with one placeholder (bugzilla can take pretty much any field as a query parameter on the URL). We then fill in the placeholder with some basic text & link to the content. Other fields can be static. This is also generic enough to be tackled on top of that plugin.

Flags: needinfo?(jrediger)

Gonna take a stab at this

Assignee: nobody → ssuh

So, I started looking at this and had a few questions:

  • The preprocessor is used in a couple different places – right now, if the github url config isn't present, the preprocessor short-circuits. It seems like in the case of the bug link, however, it should gracefully handle one that's missing.
  • Do we actually want the source path? Or would it make more sense to add a little javascript snippet that fills in the current URL at load time? If the latter, then this just becomes a static piece of code that's added to the footer without the need for a preprocessor.
Flags: needinfo?(wlachance)

:jan-erik feel free to jump in with your thoughts as well. Here are mine...

(In reply to Sunah Suh (she/her) [:sunahsuh] from comment #4)

So, I started looking at this and had a few questions:

  • The preprocessor is used in a couple different places – right now, if the github url config isn't present, the preprocessor short-circuits. It seems like in the case of the bug link, however, it should gracefully handle one that's missing.

Yeah I think this is expanding the scope of the plugin a little bit. Strictly I guess this is turning the plugin into something that lets you put something custom into the footer based on the source path. Maybe we should rename it to mdbook-custom-footer? Perhaps we could even integrate this functionality into mdbook at some point, if we implement it well enough.

  • Do we actually want the source path? Or would it make more sense to add a little javascript snippet that fills in the current URL at load time? If the latter, then this just becomes a static piece of code that's added to the footer without the need for a preprocessor.

Either works for me, I suppose doing everything statically is a little more elegant (and I suspect more likely to be accepted by upstream if we want to go this route).

Flags: needinfo?(wlachance)

Incidentally it looks like someone has a PR which adds the "edit on github" functionality upstream: https://github.com/rust-lang/mdBook/pull/1148/files

Jan-Erik, thoughts on the above?

Flags: needinfo?(jrediger)

Sound like we could do this in some front-end javascript only?

  1. Look for the footer#open-on-gh element
  2. Append a link "file a bug" which pre-fills some bugzilla fields and adds the current URL as well.

This would only require a new JS file be added in the book config.
Much quicker to rollout than changing the plugin.

Otherwise I agree, we would fork mdbook-open-on-gh to make it more general and use that instead.

Flags: needinfo?(jrediger)
Attachment #9381754 - Attachment is obsolete: true

Hello,

The Mozilla Data Engineering organization is currently going through our extensive backlog, consisting of hundreds of issues stretching back for nearly 10 years. We've done a pass through all of the open bugzilla bugs and have identified and tagged the ones that we think are relevant enough to still need attention. The rest, including the bug with which this comment is associated, we are closing as "WONTFIX" in a single bulk operation.

If you feel we have closed this (or any) issue in error, please feel free to take the following actions:

  • Reopen the bug.
  • Edit the bug to add the string [dataplatform] (including the brackets) to the Whiteboard field. (Note that you must edit the Whiteboard, not the similarly named QA Whiteboard.)

Doing this will ensure that we see the bug in our weekly triage process, where we will decide how to proceed.

Thank you.

Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: