[Bug 42141] New: Design pattern introduced in 40191 does not work in staff SIP configuration
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42141 Bug ID: 42141 Summary: Design pattern introduced in 40191 does not work in staff SIP configuration Initiative type: --- Sponsorship --- status: Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: minor Priority: P5 - low Component: System Administration Assignee: koha-bugs@lists.koha-community.org Reporter: bibliothek@th-wildau.de QA Contact: testopia@bugs.koha-community.org CC: gmcharlt@gmail.com The introduced design pattern in 40191 which enhances every Vue resource with the possibility to 'Save and show resource', 'Save and list resources' or 'Save and continue editing' does not work staff clients SIP2 configuration To recreate go to Administration -> Self-service circulation (SIP2) and create one of the following: - institutions - accounts - system_preference_overrides Then try the 'Save', 'Save and continue editing' and 'Save and return to list' buttons. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42141 --- Comment #1 from Jan Kissig <bibliothek@th-wildau.de> --- Created attachment 195695 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=195695&action=edit Bug 42141: Fix Save and show/list/edit button on Vue SIP2 config This patch fixes the behavior of the Save (Save and list, Save and continue editing, Save and show) button which is controlled via useBaseResource.navigationOnFormSave on Accounts, Institutions and System preference overrides in Administration -> Self-service circulation (SIP2) To test: a) go to Administration -> Self-service circulation (SIP2) b) create one of the given resources (institution, account, system preference override) and fill out mandatory fields c) click either Save or Save and continue editing or Save and show d) check that you always end up on the list. e) apply patch and run 'yarn js:build' , reload your browser f) repeat b) and c) g) check that the desired view is now shown - show the edited/created resource - list all created resources - continue editing the resource -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42141 Jan Kissig <bibliothek@th-wildau.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|koha-bugs@lists.koha-commun |bibliothek@th-wildau.de |ity.org | Patch complexity|--- |Small patch Status|NEW |Needs Signoff --- Comment #2 from Jan Kissig <bibliothek@th-wildau.de> --- Bug 42141: Fix Save and show/list/edit button on Vue SIP2 config This patch fixes the behavior of the Save (Save and list, Save and continue editing, Save and show) button which is controlled via useBaseResource.navigationOnFormSave on Accounts, Institutions and System preference overrides in Administration -> Self-service circulation (SIP2) To test: a) go to Administration -> Self-service circulation (SIP2) b) create one of the given resources (institution, account, system preference override) and fill out mandatory fields c) click either Save or Save and continue editing or Save and show d) check that you always end up on the list. e) apply patch and run 'yarn js:build' , reload your browser f) repeat b) and c) g) check that the desired view is now shown - show the edited/created resource - list all created resources - continue editing the resource -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42141 Jan Kissig <bibliothek@th-wildau.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #195695|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42141 --- Comment #3 from Jan Kissig <bibliothek@th-wildau.de> --- Created attachment 195696 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=195696&action=edit Bug 42141: Fix Save and show/list/edit button on Vue SIP2 config This patch fixes the behavior of the Save (Save and list, Save and continue editing, Save and show) button which is controlled via useBaseResource.navigationOnFormSave on Accounts, Institutions and System preference overrides in Administration -> Self-service circulation (SIP2) To test: a) go to Administration -> Self-service circulation (SIP2) b) create one of the given resources (institution, account, system preference override) and fill out mandatory fields c) click either Save or Save and continue editing or Save and show d) check that you always end up on the list. e) apply patch and run 'yarn js:build' , reload your browser f) repeat b) and c) g) check that the desired view is now shown - show the edited/created resource - list all created resources - continue editing the resource -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42141 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |david@davidnind.com --- Comment #4 from David Nind <david@davidnind.com> --- For me (after a yarn build or yarn js:build, and a fresh browser (with cache cleared)), the "Save and continue editing" still returns me to the table with the list. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42141 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Failed QA -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42141 --- Comment #5 from Jan Kissig <bibliothek@th-wildau.de> --- (In reply to David Nind from comment #4)
For me (after a yarn build or yarn js:build, and a fresh browser (with cache cleared)), the "Save and continue editing" still returns me to the table with the list.
Hi David thanks for that fast testing. The test plan lacks more detailed instructions. Without the patch all 3 resources will return to list. Even when other save and ... options are clicked. With the patch: 1. Institutions: - default is Save (which will go to the list) - 'Save and continue' and 'Save and show' should work now as described 2- Account: - default Save (which will go to show the resource) - the other options 'Save and continue editing' and 'save and return to list' should work as described now. 3. System pref override: - default is Save (which will open the list) - the other options 'Save and continue' and 'Save and show' should work as describes. For 1. and 3. I set the default action on Save to return to the list. For 2 I set the default to 'show' the resource. Could you verify that? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42141 --- Comment #6 from David Nind <david@davidnind.com> --- (In reply to Jan Kissig from comment #5)
With the patch: 1. Institutions: - default is Save (which will go to the list) - 'Save and continue' and 'Save and show' should work now as described
"Save": returns to the list "Save and continue editing": stays on the form and lets you continue editing "Save and show": shows the institution details (with Edit and Delete menu options) (note: "Save and show" not used before the patch, and not used in the ERM module)
2- Account: - default Save (which will go to show the resource) - the other options 'Save and continue editing' and 'save and return to list' should work as described now.
"Save": shows the account details (with Edit and Delete menu options) (note: works differently from Institutions, which returns to the table) "Save and continue editing": stays on the form and lets you continue editing "Save and return to list": saves any changes and returns to the list
3. System pref override: - default is Save (which will open the list) - the other options 'Save and continue' and 'Save and show' should work as describes.
"Save": returns to the list "Save and continue editing": stays on the form and lets you continue editing "Save and show": shows the system preference override details (with Edit and Delete menu options) (note: "Save and show" not used before the patch, and not used in the ERM module) Thanks Jan! On retesting, have shown results above (applied patch, yarn build, restart_all, fresh browser). Maybe there was something wrong with my setup (I shut down KTD, updated everything, restarted KTD, and repeated everything). I don't think this bug should introduce "inconsistencies" for SIP, when compared to the ERM module: - Save: For ERM, saves and shows details vs SIP where there are two different behavours (stays on the page, and doesn't return to the list x 1 occurrence, vs 2 occurrences where they return to the list) - Save and show: not used by the ERM mdoule, this is the "Save" behavour (also not used before this patch is applied) For most of the ERM module (excluding eUsage forms): - Save: saves and shows details (stays on the page, and doesn't return to the list) - Save and continue editing: stays on the form and lets you continue editing - Save and return to list: saves any changes and returns to the list Because of the inconsistencies, I left as Failed QA. Hope this makes sense (have been looking at this for too long!). David -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42141 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |40191 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40191 [Bug 40191] Design pattern: Redirect user to a view of the record after saving instead of list -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42141 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |37893 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37893 [Bug 37893] Migrate some SIP configuration into the staff interface -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42141 Marion Durand <marion.durand@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |marion.durand@biblibre.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42141 Jan Kissig <bibliothek@th-wildau.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Signed Off --- Comment #7 from Jan Kissig <bibliothek@th-wildau.de> ---
... I don't think this bug should introduce "inconsistencies" for SIP, when compared to the ERM module: - Save: For ERM, saves and shows details vs SIP where there are two different behavours (stays on the page, and doesn't return to the list x 1 occurrence, vs 2 occurrences where they return to the list) - Save and show: not used by the ERM mdoule, this is the "Save" behavour (also not used before this patch is applied)
For most of the ERM module (excluding eUsage forms): - Save: saves and shows details (stays on the page, and doesn't return to the list) - Save and continue editing: stays on the form and lets you continue editing - Save and return to list: saves any changes and returns to the list
Because of the inconsistencies, I left as Failed QA.
Hope this makes sense (have been looking at this for too long!).
David
Hi David, I can understand the little confusion with the action behind the 'Save' button as it could mean either 'Save and show', 'Save and continue editing' or 'Save an show list' but is always labeled 'Save', though the alternative save buttons behind the drop down have their actions clearly labeled. As for the different behaviors introduced in this patch: With bug 40191 a new property (navigationOnFormSave) gives the developer exactly this option to control which action should be taken on the default 'Save' click. There is also some info in the coding guidelines now: https://wiki.koha-community.org/wiki/Coding_Guidelines#JS18:_Vue_resource_de... As in sip2 the configurations for 'Institutions' and 'Syspref overrides' are not so complicated (having only a few options to be set) I choose to return to the list on after saving. But for the 'Accounts', with its many options to be set, I thought it would be nice to see what I just entered after save. As this patch fixes the functionality behind the button I would remove the FQA and set it SO. The default action behind that 'Save' button can be changed on a different bug -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42141 Paul Derscheid <paul.derscheid@lmscloud.de> changed: What |Removed |Added ---------------------------------------------------------------------------- QA Contact|testopia@bugs.koha-communit |paul.derscheid@lmscloud.de |y.org | Status|Signed Off |Passed QA -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42141 Paul Derscheid <paul.derscheid@lmscloud.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #195696|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42141 --- Comment #8 from Paul Derscheid <paul.derscheid@lmscloud.de> --- Created attachment 200749 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=200749&action=edit Bug 42141: Fix Save and show/list/edit button on Vue SIP2 config This patch fixes the behavior of the Save (Save and list, Save and continue editing, Save and show) button which is controlled via useBaseResource.navigationOnFormSave on Accounts, Institutions and System preference overrides in Administration -> Self-service circulation (SIP2) To test: a) go to Administration -> Self-service circulation (SIP2) b) create one of the given resources (institution, account, system preference override) and fill out mandatory fields c) click either Save or Save and continue editing or Save and show d) check that you always end up on the list. e) apply patch and run 'yarn js:build' , reload your browser f) repeat b) and c) g) check that the desired view is now shown - show the edited/created resource - list all created resources - continue editing the resource Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42141 --- Comment #9 from Paul Derscheid <paul.derscheid@lmscloud.de> ---
From a functional standpoint this is PQA to me.
-- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42141 Pedro Amorim (ammopt) <pedro.amorim@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Passed QA |Pushed to main Version(s)| |26.11.00 released in| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42141 --- Comment #10 from Pedro Amorim (ammopt) <pedro.amorim@openfifth.co.uk> --- Thanks everyone! Pushed to main for 26.11! -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org