This userscript applies to Mozilla Mercurial pushlog pages.
It generates a list of only the bugs related to Firefox for desktop in Mozilla Mercurial pushlogs.
It's basically for creating lists similar to the "The Official Win32 xxxxxxx builds"
in Firefox Builds • mozillaZine Forums but for any date interval.
Example links where the script applies to: (changelogs for the last 1 day interval in these examples)
Also, (about the "enddate" value when you do such a search):
instead of putting "now" you may put the changeset of your currently installed build (via
about:buildconfig|click on that link)
so that you may view only the bugs that have been fixed till your current build - not those that have been fixed til the current time in the relevant branch.
For example: (for inbound) instead of using:
you may enter this: (it's for the changeset of this build)
Screenshots of the resulting list:
and screenshot of progress logging in Web Console:
During the procedure, you may open the Web Console (Ctrl+Shift+K) to monitor progress.
- The requests for each link are done asynchronously, i.e. Firefox UI is not locked and frozen until the request completes. Also, the procedure completes quickly (multiple connections).
After v4 (thanks to johnp) it now uses the Bugzilla REST API, therefore resulting in huge reduction to the procedure duration (a few seconds for parsing hundreds of bugs), i.e.:
- requests from Bugzila only those fields that it requires (not entire HTML pages),
- uses one network connection for all examined bugs (using the format=multiple GET-Parameter) and
- parses the response as JSON*
- Since v4.2 it now stores the list content HTML code to clipboard.
(You may comment out lines 11 and 157 to disable this new feature)
This feature is aimed to MozillaZine daily "The Official Win32 xxxxxxx builds" maintainer :
so, you may do these easy steps in order to produce the Nightly thread:
- Go to e.g. http://www.garyshood.com/htmltobb/, paste the HTML code, and press "Submit HTML":
it will be converted to BBCode. Copy that to clipboard (Ctrl+C).
- Then, open Notepad++, paste the newly copied content. Now, by following , you may append numbering to each line. [i](i.e. first, select all
Ctrl+A. Then go to
Edit->Column Editor. Choose the "Number to Insert" button, then choose the starting value (
1) and the increment (
1). It will add numbering to each line)[/i]
- Finally, by pressing Alt+dragging down, you may do a vertical selection (screenshot),
so that you may append a dot (
.) (and a space where necessary) after each line numbering.
In v5 it displays the results as a sortable table (instead of a plain list),
showing in an extra column the "Last Modified Date" of each bug, the values of which are converted to relative time (e.g, "1 hour ago") taking account the user's timezone. (I've created a custom sorter for this extra column).
By default it's sorted by "Modified Date" and "Product:Component"(and by "Summary") - as a mozilla-inbound user I find this most practical because this way I can check whether any notable bugs have been just fixed, and therefore if it's worth downloading the latest m-i build.
But, you may sort the table as you wish: you can sort multiple columns simultaneously by holding down the Shift key and clicking a 2nd, 3rd or even 4th column header.
In v5.5.1 I bind keypresses of ` to toggle the list display to either:
- sorted by "Modified Date", "Product:Component" and by "Summary") (by default)
and having separators between groups of the same timestamps (screenshot), or
- by "Product:Component" and by "Summary" (i.e. without the separators) (screenshot)
- gets all bug links in the page and de-duplicates them
- sends 1 request to Bugzilla for all the above bug links, requesting only the few fields that it requires
(id, summary, status, resolution, product, component, op sys, platform, whiteboard, last change time)
- filters out the irrelevant bugs based on the response
- finally it displays the results in a sortable table using a jQuery dialog
where it's sorted by default by Modified Date, Product: Component and Summary.
(for the "Modified Date" column, the following libraries are used: tablesorter, moment.js, moment-timezone.js, jsTimezoneDetect, date.js) and Keypress.
**What it considered relevant/irrelevant**:
*(info provided kindly by winapp2 and Josa, both maintainers (the first no longer) of the "[Official Win32 build](http://forums.mozillazine.org/viewforum.php?f=23)" threads)*
- RESOLVED FIXED
- VERIFIED FIXED
- Add-on SDK
- Cloud Services
- Hello (Loop)
Component value (belonging to Product: Core)
Component values (all belonging to Product: Core)
- Build Config
- Embedding: GRE Core
- Embedding: Mac
- Embedding: MFC Embed
- Embedding: Packaging
- Hardware Abstraction Layer
- Widget: Gonk
Irrelevant are also considered bugs with restricted access (you may find the bugs which were filtered out for being private, by opening Web Console and enter 'requires authorization' in the 'Filter output' textbox. Then you may click on the relevant links to open them (those that you have access to).
Thanks a lot to:
- wOxxOm for his help in [here](https://greasyfork.org/en/forum/discussion/6616/help-with-making-a-function-wait-until-all-gm-xmlhttprequest-requests-are-fully-completed),
- Brock Adams for his help on [this](http://stackoverflow.com/questions/33347825/jquery-ui-dialog-in-a-userscript-for-greasemonkey-missing-close-button) i.e. [this](http://stackoverflow.com/a/25468298/3231411), and
- johnp for modifying my code thus offering [v4](http://forums.mozillazine.org/viewtopic.php?p=14397041#p14397041) and [v4.1](http://forums.mozillazine.org/viewtopic.php?p=14397041#p14397041) that is [here](http://pastebin.com/5LwQUsLF). Your contribution is most appreciated!
[Hosted in GitHub](https://github.com/darkred/Userscripts)