Summary: | Add plugin hooks for authority record changes | ||
---|---|---|---|
Product: | Koha | Reporter: | Marcel de Rooy <m.de.rooy> |
Component: | Plugin architecture | Assignee: | Marcel de Rooy <m.de.rooy> |
Status: | CLOSED FIXED | QA Contact: | Testopia <testopia> |
Severity: | enhancement | ||
Priority: | P5 - low | CC: | david, dcook, fridolin.somers, jonathan.druart, kyle, martin.renvoize, tomascohen, victor |
Version: | Main | Keywords: | Manual |
Hardware: | All | ||
OS: | All | ||
Change sponsored?: | --- | Patch complexity: | Small patch |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: |
This enhancement allows plugin authors to implement an `after_authority_action` method in order to act upon authority create, modify and delete.
|
Version(s) released in: |
21.11.00,21.05.05,20.11.12
|
Circulation function: | |||
Bug Depends on: | 27155 | ||
Bug Blocks: | 33089 | ||
Attachments: |
Bug 27173: Add plugin hooks for authority record changes
Bug 27173: Add tests Bug 27173: Add plugin hooks for authority record changes Bug 27173: Add tests Bug 27173: Add plugin hooks for authority record changes Bug 27173: Add tests Bug 27173: Add plugin hooks for authority record changes Bug 27173: Add tests |
Description
Marcel de Rooy
2020-12-08 14:43:32 UTC
Created attachment 125409 [details] [review] Bug 27173: Add plugin hooks for authority record changes 2021-09-28 Updated version Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Created attachment 125410 [details] [review] Bug 27173: Add tests Test plan: Run t/db_dependent/Koha/Plugins/authority_hooks.t Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Created attachment 125411 [details] [review] Bug 27173: Add plugin hooks for authority record changes 2021-09-28 Updated version Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Created attachment 125412 [details] [review] Bug 27173: Add tests Test plan: Run t/db_dependent/Koha/Plugins/authority_hooks.t Created attachment 125715 [details] [review] Bug 27173: Add plugin hooks for authority record changes 2021-09-28 Updated version Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: David Nind <david@davidnind.com> Created attachment 125716 [details] [review] Bug 27173: Add tests Test plan: Run t/db_dependent/Koha/Plugins/authority_hooks.t Signed-off-by: David Nind <david@davidnind.com> Testing notes (koha-testing-docker): - Test plan was to apply patch and run tests - Hopefully that is sufficient (In reply to David Nind from comment #7) > Testing notes (koha-testing-docker): > > - Test plan was to apply patch and run tests > - Hopefully that is sufficient Thanks David. The test script proves that a plugin on top of this action works. Which is sufficient. We have been running a plugin based on this action for a year now in production. It copies the CREATE UPDATE DELETE actions to an external system where we try to reconcile authorities from several subsystems. Please remember to update https://wiki.koha-community.org/wiki/Koha_Plugin_Hooks :) Created attachment 126307 [details] [review] Bug 27173: Add plugin hooks for authority record changes 2021-09-28 Updated version Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Created attachment 126308 [details] [review] Bug 27173: Add tests Test plan: Run t/db_dependent/Koha/Plugins/authority_hooks.t Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Well tested, QA scripts happy, all works as expected. Passing QA Please add it to the wiki page: https://wiki.koha-community.org/wiki/Koha_Plugin_Hooks Pushed to master for 21.11, thanks to everybody involved! (In reply to Jonathan Druart from comment #13) > Please add it to the wiki page: > https://wiki.koha-community.org/wiki/Koha_Plugin_Hooks Done Pushed to 21.05.x for 21.05.05 Backported for plugins compatibility Pushed to 20.11.x for 20.11.12 Also backported for plugins compatibility Not backported to oldoldstable (20.05.x). Feel free to ask if it's needed. |