GNOME Bugzilla – Bug 743027
[4.4] "Hardware" field is shown; should be hidden via CSS
Last modified: 2015-02-24 20:57:51 UTC
In the new bugzilla we can now choose the hardware: DEC, HP, PC, etc. Was it added on purpose?
Also see https://bugzilla.gnome.org/show_bug.cgi?id=742490 It was not added on purpose, but "normally" (in upstream) it is always there an cannot be disabled (grumble, https://bugzilla.mozilla.org/show_bug.cgi?id=763409 ). I'm wondering whether we had a hack in place to not show the field in 3.4. If so, I'd support trying to port that hack for the sake of having less than 5 billions UI fields shown which nobody needs. And same for that new "URL" field that we do not need (cannot find an option to disable that). And same for that new "Tags" field that we do not need (see https://bugzilla.mozilla.org/show_bug.cgi?id=1116994 ). Feature bloat.
This was removed from view from show_bug.cgi and the search. My intended solution was to teach the template bit to show text when the drop down only has one option. Then only have one option for Hardware and done :-P URL was removed as well. Maybe we should just use CSS to hide this?
(In reply to comment #2) > Maybe we should just use CSS to hide this? YES PLEASE! I quickly tried a week ago (for "Tags" though) but failed to find a good ID; I can probably try again if I find time but would not mind if someone else is faster.
Summarizing what needs to be done here (whoever wants to write the patch): * "display:none" for the id "container_rep_platform" on Advanced Search page. * "display:none" for the id "rep_platform" on show_bug.cgi * in template/en/*/global/field-descs.none.tmpl, change "rep_platform" from "Hardware" to "OS"
Offtopic, but as we are talking about CSS tweaks: * Would also love to somehow hide the entire <tr> (without any id) that includes the <th> with the id "field_label_tag" on show_bug.cgi * Would also love to somehow hide the entire <tr> (without any id) that includes the <th> with the id "field_label_bug_file_loc" on show_bug.cgi
I removed all the Hardware options that didn't have any bugs assigned to them. We're left with: All, PC, Other.
@Olav: Thanks. Seeing that we have several things to change in show_bug.cgi (bug 743056, don't show "Tags" field either) I really propose to copy /bugzilla-gnome-org-upstream/template/en/default/bug/edit.html.tmpl to /bugzilla-gnome-org-customizations/extensions/TemplateOverrides/template/en/default/bug/edit.html.tmpl It's going to be painful but I'm willing to maintain this. I'd do it but I have no idea how to use "digests" in https://git.gnome.org/browse/bugzilla-gnome-org-customizations/tree/extensions/TemplateOverrides/lib/Digests.pm#n18 properly (and have not checked if there is documentation).
> I'd do it but I have no idea how to use "digests" Maybe Krzesimir knows? I still have no idea what to put in there... :-/
Me? Why me? What digests? I have completely no idea what digests are for. :P Jokes aside, you just put sha256 sum of original file (the one in bugzilla-gnome-org-upstream repository from production branch, here /bugzilla-gnome-org-upstream/template/en/default/bug/edit.html.tmpl, the path part would be bug/edit.html.tmpl) I still have to write some docs for it, sorry.
On query.cgi we could already hide the Hardware field via custom CSS: #container_rep_platform { display: none; } On show_bug.cgi I am waiting for adding IDs to get reviewed upstream: https://bugzilla.mozilla.org/show_bug.cgi?id=1133245 After that we can also hide via custom CSS.
Hopefully fixed by https://git.gnome.org/browse/bugzilla-gnome-org-customizations/commit/?h=production&id=eb3b43bf4253823d81eddf942f3348d10a14bdf6 Only CSS changes as we do not need to hide a full table row in this case (second dropdown for OS in the same line still used and displayed). "Hardware" name is ugly though...
> [%- field_descs.${field.name} FILTER html %]:</a> I think you can rename Hardware to OS by using field_descs. See for an example on how to override: extensions/Voting/template/en/default/hook/global/field-descs-end.none.tmpl