Bug 37181 - Add --confirm option switch to pseudonymize_statistics.pl
Summary: Add --confirm option switch to pseudonymize_statistics.pl
Status: Needs documenting
Alias: None
Product: Koha
Classification: Unclassified
Component: Command-line Utilities (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low enhancement
Assignee: Nick Clemens (kidclamp)
QA Contact: Tomás Cohen Arazi (tcohen)
URL:
Keywords:
Depends on: 34611
Blocks:
  Show dependency treegraph
 
Reported: 2024-06-25 14:10 UTC by Tomás Cohen Arazi (tcohen)
Modified: 2024-11-22 12:08 UTC (History)
4 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
This adds a `--confirm` option to the `pseudoymize_statistics.pl` command line script. Without this option there will be no changes made when the script is run, avoiding any accidental changes.
Version(s) released in:
24.11.00
Circulation function:


Attachments
Bug 37181: Add --confirm option to pseudonymize_statistics.pl (2.03 KB, patch)
2024-06-25 14:14 UTC, Tomás Cohen Arazi (tcohen)
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Tomás Cohen Arazi (tcohen) 2024-06-25 14:10:38 UTC

    
Comment 1 Tomás Cohen Arazi (tcohen) 2024-06-25 14:14:15 UTC
Created attachment 168070 [details] [review]
Bug 37181: Add --confirm option to pseudonymize_statistics.pl

To test:
1 - Perform some transactions
2 - Enable Pseudonymization
3 - perl misc/maintenance/pseudonymize_statistics.pl -v
4 - Confirm test run an nothing changed
5 - perl misc/maintenance/pseudonymize_statistics.pl -v -c
6 - Confirm statistics are pseudonymized

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Amend: tidied the changes [tcohen]
Comment 2 Tomás Cohen Arazi (tcohen) 2024-06-25 14:21:49 UTC
The RM asked me to QA this patch on the original bug report. I moved it here for clarity.

Straight QA.
Comment 3 Katrin Fischer 2024-06-27 12:06:38 UTC
Pushed for 24.11!

Well done everyone, thank you!
Comment 4 Lucas Gass (lukeg) 2024-07-19 15:27:50 UTC
Enhancement will not be backported to 24.05.x