Bug 41256 - BUGZILLAASSISTANT: no operation system selection in bugassistant
Summary: BUGZILLAASSISTANT: no operation system selection in bugassistant
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: WWW (show other bugs)
(earliest affected)
Hardware: Other All
: medium major
Assignee: Not Assigned
QA Contact:
Whiteboard: BSA
Keywords: needsDevEval, skillJavaScript, topicQA, topicWeb
Depends on:
Reported: 2011-09-27 07:01 CEST by Christian Lohmaier
Modified: 2015-12-15 23:47 CET (History)
3 users (show)

See Also:
Crash report or crash signature:

Patch for 41256 (8.92 KB, text/plain)
2012-11-20 23:21 CET, C. Koppelt
new patch (9.61 KB, text/plain)
2012-11-24 13:36 CET, C. Koppelt

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Lohmaier 2011-09-27 07:01:23 CEST
Problem description: 
try to use the assistant, note that you are not asked for your operating system
Comment 1 Petr Mladek 2011-12-13 11:20:55 CET
See http://wiki.documentfoundation.org/Bug_Submission_Assistant#Installation_and_maintainance where to start debugging.
Comment 2 Rob Snelders 2012-07-16 20:51:31 CEST
I think that listing all the operating systems that are set in the bugzilla isn't usefull. I think it would be better to give only some options, like Windows, Linux, FreeBSD, OpenBSD, NetBSD, BSD (other), Mac OS X and Other.

What do other people think?
Comment 3 Rainer Bielefeld Retired 2012-07-17 05:07:24 CEST
Can''t we take the info currently shown in the Browser info line and select the corresponding Bugzilla OS item?
Comment 4 C. Koppelt 2012-11-20 23:21:22 CET
Created attachment 70339 [details]
Patch for 41256
Comment 5 C. Koppelt 2012-11-20 23:22:16 CET
Please find attached a patch that adds an additional step "Operating System" to the BUGZILLASSISTENT. This step contains a select box with all operating systems from the Bugzilla Web Interface (btw options like 'Windows (All)' or 'Linux (All)' look pretty generic to me...). 

It is necessary to run "make" to reload the data.

The JavaScript attribute 'navigator.platform' might be used later on to set a default selection, but I would give the user the possibility to change it. 

For the future I think it's worth to keep an eye on the development of the REST-API of Bugzilla (https://wiki.mozilla.org/Bugzilla:REST_API). Its usage could remove the hassle of pulling data out of a Wiki page and the Bugzilla Web Interface as the current implementation does. Instead it is (hopefully) possible to get all neded configuration data from the API as JSON  (here is an example from Mozillas Bugzilla: https://api-dev.bugzilla.mozilla.org/latest/configuration).
Comment 6 Petr Mladek 2012-11-23 17:40:24 CET
Rob is our Bugzilla assistant guru. I wonder if he could review and push the patch :-)

Anyway, thanks a lot for the contribution.
Comment 7 Rob Snelders 2012-11-24 11:18:32 CET

I spoke with Christine yesterday on the Munich Hackfest.
As the operating systems in bugzilla are not optimised for LibreOffice we discussed using a own defined list with the operating systems. She agreed to change that.

Christina: I am changing the steps needed for bugsubmission today. I will put subcomponent and version in 1 step. And will also add a regression-option later today. Can you add the operating system to the same part?
Comment 8 C. Koppelt 2012-11-24 13:36:08 CET
Created attachment 70512 [details]
new patch

Here is a new patch, which makes the list of Operating Systems offered in the drop down box configurable via an txt-File (bug/op_sys.txt)
The structure of the file is a followed:
Windows 7::Windows (All)
The part before :: is the text provided to the user, the part after represents the Bugzilla OS it is mapped to. When the web form is submitted, the first part (Windows 7) is appended to the 'comment' field, the second part (Windows (All)) is the value that is set at Bugzillas op_sys field. 

The patch is against version 6b799019fd4c6471961aa7761e9752b364f4f09f, which is right now the current version of the master.
Comment 9 Rob Snelders 2012-11-24 13:52:54 CET
Thank you very much for your patch, I have committed it. Early next week I'll update the live bugzilla-assistant and then your patch is live.
Comment 10 Robinson Tryon (qubit) 2015-12-15 23:47:45 CET
Migrating Whiteboard tags to Keywords: (ProposedEasyHack -> needsDevEval, SkillJavaScript TopicWeb TopicQA )