[open-ils-commits] [GIT] Evergreen ILS branch rel_3_0 updated. f98fd95bfcb2e9e3eab1d5091859e336131e1132

Evergreen Git git at git.evergreen-ils.org
Tue Nov 7 15:52:26 EST 2017


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 "Evergreen ILS".

The branch, rel_3_0 has been updated
       via  f98fd95bfcb2e9e3eab1d5091859e336131e1132 (commit)
      from  41a370aa566e27045e70a3acca4eba6025ec5cf7 (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 f98fd95bfcb2e9e3eab1d5091859e336131e1132
Author: blake <blake at mobiusconsortium.org>
Date:   Tue Nov 7 10:14:32 2017 -0600

    LP#1730692: fix two references to asset.copy_vis_attr_cache
    
    Corrected the table references in metabib.pm and site_generator.
    
    To test
    -------
    [1] Apply the patch.
    [2] Verify that sitemap_generator no longer crashes.
    [3] Verify that open-ils.storage.ordered.metabib.metarecord.records can be
        called without crashing.
    
    Signed-off-by: blake <blake at mobiusconsortium.org>
    Signed-off-by: Galen Charlton <gmc at equinoxinitiative.org>

diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/metabib.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/metabib.pm
index a8b2161..c8c3ea7 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/metabib.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/metabib.pm
@@ -95,7 +95,7 @@ sub ordered_records_from_metarecord { # XXX Replace with QP-based search-within-
     my $org = shift;
     my $depth = shift;
 
-    my $copies_visible = 'LEFT JOIN asset.copy_attr_vis_cache vc ON (br.id = vc.record '.
+    my $copies_visible = 'LEFT JOIN asset.copy_vis_attr_cache vc ON (br.id = vc.record '.
                          'AND vc.vis_attr_vector @@ (SELECT c_attrs::query_int FROM asset.patron_default_visibility_mask() LIMIT 1))';
     $copies_visible = '' if ($self->api_name =~ /staff/o);
 
diff --git a/Open-ILS/src/support-scripts/sitemap_generator b/Open-ILS/src/support-scripts/sitemap_generator
index 16fe5fd..1a238f5 100755
--- a/Open-ILS/src/support-scripts/sitemap_generator
+++ b/Open-ILS/src/support-scripts/sitemap_generator
@@ -154,7 +154,7 @@ sub get_record_ids {
                     ELSE bre.edit_date::date
                 END AS edit_date
             FROM biblio.record_entry bre
-                 INNER JOIN asset.copy_attr_vis_cache vc ON (bre.id = vc.record
+                 INNER JOIN asset.copy_vis_attr_cache vc ON (bre.id = vc.record
                      AND vc.vis_attr_vector @@ (
                          SELECT  c_attrs::query_int
                            FROM  asset.patron_default_visibility_mask()

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

Summary of changes:
 .../Application/Storage/Publisher/metabib.pm       |    2 +-
 Open-ILS/src/support-scripts/sitemap_generator     |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list