[koha-commits] main Koha release repository branch master updated. v3.12.00-beta1-1018-g69577a1

Git repo owner gitmaster at git.koha-community.org
Wed Sep 4 16:11:31 CEST 2013


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "main Koha release repository".

The branch, master has been updated
       via  69577a1a77413e0609b9f0f4eca4f4ce969ad9a7 (commit)
       via  1d5a4a0a8187672f79f886f59842ca11e2a14e55 (commit)
      from  52a6d2189d816d2414490bb171ca3387ac2999ac (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 69577a1a77413e0609b9f0f4eca4f4ce969ad9a7
Author: Galen Charlton <gmc at esilibrary.com>
Date:   Fri Aug 2 16:22:41 2013 +0000

    Bug 10361: (follow-up) add tests for search history functions
    
    This adds tests for the new PurgeSearchHistory function and
    AddSearchHistory.  GetSearchHistory is not tested due to its
    current broken state (see bug 10667).
    
    To test:
    
    [1] Run prove -v t/db_dependent/Search_SearchHistory.t
    [2] Verify that all tests pass.
    
    Signed-off-by: Galen Charlton <gmc at esilibrary.com>
    Signed-off-by: Mirko Tietgen <mirko at abunchofthings.net>
    Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>
    Signed-off-by: Galen Charlton <gmc at esilibrary.com>

commit 1d5a4a0a8187672f79f886f59842ca11e2a14e55
Author: Mirko Tietgen <mirko at abunchofthings.net>
Date:   Tue Jun 11 15:35:44 2013 +0200

    Bug 10361: Add option to cleanup_database.pl to purge OPAC search history
    
    Add an option to cleanup_database.pl to purge the search_history
    entries older than X days.
    
    Test plan:
    
    - Apply patch
    - Check that your test DB has some entries a little older than 30 days
      and a few ones even older than that in search_history:
    
      SELECT * FROM search_history WHERE time < DATE_SUB( NOW(), INTERVAL 30 DAY );
    
      If not, modify some existing entries.
    
    - Run cleanup_database with a fixed number of days (replace XX with
      something higher than 30)
    
      /misc/cronjobs/cleanup_database.pl --searchhistory XX
    
    - Check that entries older than XX days got deleted from search_history
    - Run without the day parameter
      /misc/cronjobs/cleanup_database.pl --searchhistory
    - Check that entries older than 30 days got deleted from search_history
    
    Signed-off-by: Galen Charlton <gmc at esilibrary.com>
    Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>
    Signed-off-by: Galen Charlton <gmc at esilibrary.com>

-----------------------------------------------------------------------

Summary of changes:
 C4/Search.pm                          |    9 ++++-
 misc/cronjobs/cleanup_database.pl     |   21 ++++++++--
 t/db_dependent/Search_SearchHistory.t |   71 +++++++++++++++++++++++++++++++++
 3 files changed, 96 insertions(+), 5 deletions(-)
 create mode 100644 t/db_dependent/Search_SearchHistory.t


hooks/post-receive
-- 
main Koha release repository


More information about the koha-commits mailing list