Summary: | Add ID column to Agreements table in the ERM | ||
---|---|---|---|
Product: | Koha | Reporter: | Esther Melander <esther.melander> |
Component: | ERM | Assignee: | Eric Garcia <cubingguy714> |
Status: | Pushed to main --- | QA Contact: | Lucas Gass (lukeg) <lucas> |
Severity: | enhancement | ||
Priority: | P5 - low | CC: | cubingguy714, ddaghita, jonathan.druart, jonathan.field, lucas, martin.renvoize, matt.blenkinsop, michaela.sieber, pedro.amorim |
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
GIT URL: | Change sponsored?: | --- | |
Patch complexity: | Trivial patch | Documentation contact: | |
Documentation submission: | Text to go in the release notes: |
The enhancement adds an ID column to the ERM's agreement table which is configurable through Table settings.
|
|
Version(s) released in: |
25.05.00
|
Circulation function: | |
Attachments: |
ERM ID number appended to agreement name
Bug 37273: Added ID column to ERM Agreements and Licenses Tables Bug 37273: (follow-up) Remove parentheses and # from column Bug 37273: Added ID column to ERM Agreements and Licenses Tables Bug 37273: (follow-up) Remove parentheses and # from column filters out of sync Bug 37273: Fix offset for column filters Bug 37273: Fix Cypress tests |
(In reply to Esther Melander from comment #0) > Created attachment 168606 [details] > ERM ID number appended to agreement name > > When creating an Agreement or License in the ERM, an ID number is added to > the agreement or license name. If it is necessary for the ID number to be > visible, it should be in a separate column from the name. Having the ID > number appended to the name is a little confusing (see example image). > Another option is to hide the hide ID number if it is not needed. I think this makes sense. @Joubu do we remember the initial reason why we decided the way it is currently? Trying to understand if there are any blockers for this. I guess I just wanted to avoid a new column in the table. We can have it in a separate column if it is more convenient for people. However I would not hide it, in case you want to search/order by the IDs. Not sure to understand why it is considered confusing however. It's not clear what the number means. Labeling it makes it understood the number is an ID number. I can see some cases where a number like '#1' is part of a title on the titles table, which can be confusing. Created attachment 169107 [details] [review] Bug 37273: Added ID column to ERM Agreements and Licenses Tables To test 1. Apply patch, yarn build, restart_all 2. System preferences -> ERMModule -> Enable 3. E-resource management -> Agreements -> "+New Agreement" 4. Notice ID is removed from name and put in it's own column 5. Repeat with licenses table Comment on attachment 169107 [details] [review] Bug 37273: Added ID column to ERM Agreements and Licenses Tables Review of attachment 169107 [details] [review]: ----------------------------------------------------------------- ::: koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsList.vue @@ +268,3 @@ > { > title: __("Name"), > data: "me.name:me.agreement_id", We can probably also change this to 'me.name' only. ::: koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/LicensesList.vue @@ +161,3 @@ > { > title: __("Name"), > data: "me.name:me.license_id", We can probably also change this to 'me.name' only. The ID# column worked. Created attachment 172137 [details] [review] Bug 37273: (follow-up) Remove parentheses and # from column The new ID column shows numbers like "(#2)". I think the parentheses and hash symbol are unnecessary and inconsistent with the way we do it in other places and should be removed. To test, apply the patch and rebuild the staff interface CSS: Either run 'yarn build' from the command line or if you're using a sandbox, click the "Actions" menu for your sandbox and choose "Build CSS and JS." Follow the previous test plan and confirm that the ID column looks correct. Created attachment 176740 [details] [review] Bug 37273: Added ID column to ERM Agreements and Licenses Tables To test 1. Apply patch, yarn build, restart_all 2. System preferences -> ERMModule -> Enable 3. E-resource management -> Agreements -> "+New Agreement" 4. Notice ID is removed from name and put in it's own column 5. Repeat with licenses table Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Created attachment 176741 [details] [review] Bug 37273: (follow-up) Remove parentheses and # from column The new ID column shows numbers like "(#2)". I think the parentheses and hash symbol are unnecessary and inconsistent with the way we do it in other places and should be removed. To test, apply the patch and rebuild the staff interface CSS: Either run 'yarn build' from the command line or if you're using a sandbox, click the "Actions" menu for your sandbox and choose "Build CSS and JS." Follow the previous test plan and confirm that the ID column looks correct. Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Pushed for 25.05! Well done everyone, thank you! Created attachment 178507 [details] filters out of sync This has caused the filters to become out of sync in agreements, and likely licenses too, haven't tested. Look at picture, the values for the "Description" filter are the "Status" ones, etc. filters_options inside tableOptions needs to be adjusted accordingly. This work is adding more niche specific behavior to specific tables, it's bad practice. This should be built and considered on top of bug 38201. Created attachment 179119 [details] [review] Bug 37273: Fix offset for column filters (In reply to Pedro Amorim from comment #11) > Created attachment 178507 [details] > filters out of sync > > This has caused the filters to become out of sync in agreements, and likely > licenses too, haven't tested. Look at picture, the values for the > "Description" filter are the "Status" ones, etc. > > filters_options inside tableOptions needs to be adjusted accordingly. Last patch fixes this. Pushed for 25.05! Well done everyone, thank you! Follow-up pushed! It broke ERM/Agreements_spec.ts and ERM/Licenses_spec.ts, please fix ASAP. Created attachment 179636 [details] [review] Bug 37273: Fix Cypress tests Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> (In reply to Jonathan Druart from comment #17) > Created attachment 179636 [details] [review] [review] > Bug 37273: Fix Cypress tests > > Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Patch pushed for 25.05. |
Created attachment 168606 [details] ERM ID number appended to agreement name When creating an Agreement or License in the ERM, an ID number is added to the agreement or license name. If it is necessary for the ID number to be visible, it should be in a separate column from the name. Having the ID number appended to the name is a little confusing (see example image). Another option is to hide the hide ID number if it is not needed.