Set description of view_testopia user preference via hooks (Bugzilla 4.0+)

RESOLVED FIXED in 2.5

Status

Testopia
General
--
enhancement
RESOLVED FIXED
8 years ago
6 years ago

People

(Reporter: Bodo-Merle Sandor, Assigned: Greg Hendricks)

Tracking

unspecified
x86
Linux

Details

(Whiteboard: [Fixed by blocker])

Attachments

(2 attachments)

(Reporter)

Description

8 years ago
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101210 Iceweasel/3.6.13 (like Firefox/3.6.13)
Build Identifier: revno: 647

Up to now testopia used to patch the Bugzilla sources to set the description of "view_testopia" user preference. Do this via a hook in Bugzilla 4.0
Just add a new hook template file, extensions/Testopia/template/en/default/hook/global/setting-descs-settings.none.tmpl containing:

[%
    setting_descs.view_testopia = "View the Testopia links",
%]


Reproducible: Always
(Reporter)

Comment 1

8 years ago
Created attachment 513861 [details] [diff] [review]
New hook template containing the description of view_testopia
(Reporter)

Comment 2

7 years ago
Created attachment 523645 [details] [diff] [review]
Set filesystem permissions via 'install_filesystem' hook

With the closing of bug 644334 it is possible to set the permission of tr_importxml.pl via an extension hook. Shaves another line from extensions/Testopia/patch-4.0

Comment 3

6 years ago
We shouldn't mix several bugs into a single one. But you are right about both changes. Testopia should use hooks as much as possible to avoid hacking the Bugzilla source code directly. You forgot to remove the corresponding code from patch-XXX though. I included them (before seeing this bug) in bug 743589.
Status: UNCONFIRMED → NEW
Depends on: 743589
Ever confirmed: true
Whiteboard: [Fixed by blocker]
Target Milestone: --- → 2.5

Updated

6 years ago
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.