Summary: | jQuery testing with specific user | ||
---|---|---|---|
Product: | Koha | Reporter: | Christopher Brannon <cbrannon> |
Component: | System Administration | Assignee: | Bugs List <koha-bugs> |
Status: | NEW --- | QA Contact: | Testopia <testopia> |
Severity: | enhancement | ||
Priority: | P5 - low | CC: | barbara.johnson, dcook, gmcharlt, lisette |
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
GIT URL: | Change sponsored?: | --- | |
Patch complexity: | --- | Documentation contact: | |
Documentation submission: | Text to go in the release notes: | ||
Version(s) released in: | Circulation function: |
Description
Christopher Brannon
2020-11-14 04:32:36 UTC
That's an interesting idea. I think that this could be quite useful for Javascript and CSS actually. I've been thinking more about this, and how to make this more practical. I think there should be a superlibrarian tab in the side tabs in the user account (obviously that only shows if the user is a superlibrarian, and it is the same account that is logged in. Under that tab, there would be fields like OPAC and Staff jQuery and CSS. If left blank, the normal fields in administration are used. If one of these superlibrarian fields has anything in it, it overrides it's counterpart, and the one in admin is not used. The idea is that only the logged in superlibrarian can create an override, and only under their own account. They can't create an override for another superlibrarian, and that override only works when that superlibrarian is logged in. It has no effect on other logged in users. This gives a good, isolated testing area for admin. Perhaps for good measure, there should also be a permission under the superlibrarian permission to enable/disable the overrides. It would not prevent access to the tab or override fields, but it would allow that superlibrarian and other superlibrarians the ability to render it inactive, in case, during testing, the override has some unexpected affect that keeps that user from being able to undo the code. It would also allow that superlibrarian to turn on/off the code they are testing without having to clear the fields in between testing. This would be really useful. |