]> git.koha-community.org Git - koha.git/commit
Bug 22437: Delete older merge requests at new merge time
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Fri, 3 Apr 2020 08:55:45 +0000 (08:55 +0000)
committerLucas Gass <lucas@bywatersolutions.com>
Fri, 15 May 2020 22:32:46 +0000 (22:32 +0000)
commitbcbabb76937f0fb7dd49ffb188841c16d6906aef
tree8a20ffd575702d04943592290b931ceadf50d158
parentb5807429f7b75f9a3e5020abecfb4afb135dcc17
Bug 22437: Delete older merge requests at new merge time

If you merge A to B, we should remove older AA merges (regular
merge to itself) in the queue before deleting A.

Test plan:
[1] Set merge limit in prefs to say X.
[2] Find three authorities A, B, C with linkcount >X, >X, <X.
[3] Merge C to B. This creates a 'BB merge' in the queue.
    Auth C is deleted.
[4] Merge B to A. Creating AA and BA in the queue.
    Auth B is deleted.
    Optionally verify that BB is no longer in the queue.
[5] Run the merge_authorities.pl cron job.
    Verify that the linkcount to A is the former total of ABC.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Phil Ringnalda <philringnalda@gmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Joy Nelson <joy@bywatersolutions.com>
(cherry picked from commit 08aa52c8315c7bec6df9800101c61591892d07dd)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
authorities/merge.pl