X-Git-Url: http://git.equinoxoli.org/?p=migration-tools.git;a=blobdiff_plain;f=mig-xml%2Fevergreen_staged_report.xml;h=b6f58f0727564ec9f30e4e644286c2ecc94d8dbb;hp=31fca03796f1ed30a3db9e5bd77e19d8ba2b2003;hb=16a82253bc9014f64bd07e05077ee2b4b0b7f810;hpb=91f3fc3c89d088788f7064bc06764ff83a40e607 diff --git a/mig-xml/evergreen_staged_report.xml b/mig-xml/evergreen_staged_report.xml index 31fca03..b6f58f0 100644 --- a/mig-xml/evergreen_staged_report.xml +++ b/mig-xml/evergreen_staged_report.xml @@ -44,9 +44,20 @@ circ_count circs 0 - Open Circulations - Circulation Status.Migrated.Count of Circs - SELECT 'Closed Circulations', x_migrate::TEXT, COUNT(id) FROM action_circulation_legacy WHERE xact_finish IS NOT NULL GROUP BY 2 UNION ALL SELECT 'Open Circulations', x_migrate::TEXT, COUNT(id) FROM action_circulation_legacy WHERE xact_finish IS NULL GROUP BY 2 + Migrated Circulations + Circulation Status.Count of Circs + SELECT 'Closed Circulations', COUNT(id) FROM action_circulation_legacy WHERE xact_finish IS NOT NULL AND x_migrate + UNION ALL SELECT 'Open Circulations', COUNT(id) FROM action_circulation_legacy WHERE xact_finish IS NULL AND x_migrate + + + + circ_count_unmigrated + circs + 0 + Open Un-migrated Circulations + Circulation Status.Count of Circs + SELECT 'No Matching User', COUNT(id) FROM action_circulation_legacy WHERE xact_finish IS NULL AND x_migrate = FALSE AND usr IS NULL + UNION ALL SELECT 'No Matching Item', COUNT(id) FROM action_circulation_legacy WHERE xact_finish IS NULL AND x_migrate = FALSE AND target_copy IS NULL @@ -304,6 +315,15 @@ + asset_precat + Precats (AKA Copies Without Bibs) + assets + 0 + Copy Count.Migating + SELECT COUNT(ac.id), ac.x_migrate::TEXT FROM asset_copy_legacy ac WHERE ac.x_bre_id = -1 GROUP BY 2 + + + asset_circ_mod_copies_count Copies by Circulation Modifier assets @@ -431,7 +451,7 @@ 0 Collision List SELECT ac.barcode FROM asset_copy_legacy ac WHERE ac.barcode ~* 'collision' ORDER BY 1 LIMIT 20 - This is a shortlist of patron barcode collisions that maxes out at 20. If there are more collisions we will need to run a custom report. + This is a shortlist of copy barcode collisions that maxes out at 20. If there are more collisions we will need to run a custom report. @@ -646,7 +666,7 @@ id = ac_sc.owner GROUP BY 2,3 ORDER BY 2,3 bibs 1 Count - SELECT COUNT(eg) FROM bib_id_map + SELECT COUNT(id) FROM biblio_record_entry_stage WHERE x_migrate = TRUE @@ -655,7 +675,7 @@ id = ac_sc.owner GROUP BY 2,3 ORDER BY 2,3 bibs 0 Count - SELECT COUNT(eg) FROM bib_id_map where eg::INTEGER NOT IN (SELECT DISTINCT record FROM asset_call_number) + SELECT COUNT(id) FROM biblio_record_entry where id NOT IN (SELECT DISTINCT record FROM asset_call_number) @@ -968,6 +988,18 @@ id = ac_sc.owner GROUP BY 2,3 ORDER BY 2,3 SELECT COUNT(map.id), aou.name, au_sc.name FROM actor_stat_cat_entry_usr_map map JOIN actor_stat_cat au_sc ON au_sc.id = map.stat_cat JOIN actor.org_unit aou ON aou.id = au_sc.owner GROUP BY 2, 3 ORDER BY 2,3 + + usr_thresholds + Patron Thresholds + actors + 0 + Pateron Group.Org Unit.Penalty.Threshold + SELECT pgt.name, aou.shortname, sp.name, p.threshold FROM permission_grp_penalty_threshold p + JOIN actor.org_unit aou ON aou.id = p.org_unit JOIN permission.grp_tree pgt ON pgt.id = p.grp JOIN config.standing_penalty sp ON sp.id = p.penalty + ORDER BY 2, 1, 3 + + + fund_count @@ -1012,8 +1044,97 @@ id = ac_sc.owner GROUP BY 2,3 ORDER BY 2,3 0 Migrated Serial MFHDs Number of MFHDs - SELECT COUNT(id) FROM seriarecord_entry + SELECT COUNT(id) FROM serial_record_entry + + + + + + dedupe_explain + dedupe + dedupe_process.asciidoc + + + + dedupe_bib_groups + dedupe + 0 + Scoring and Bib Record Groups + Count.Bib Record Groups + SELECT COUNT(id), 'Total Bibs Being Evaluated' FROM biblio.record_entry WHERE deleted IS FALSE AND id IN (SELECT eg::BIGINT FROM bib_id_map) + UNION ALL SELECT (COUNT(DISTINCT incoming_bib)), 'Incoming Bibs With Matches Found' FROM bib_matches + UNION ALL SELECT (COUNT(bre.id) - (SELECT COUNT(DISTINCT incoming_bib) FROM bib_matches)), 'Incoming Bibs With No Match' + FROM biblio.record_entry bre WHERE bre.deleted IS FALSE AND bre.id IN (SELECT eg::BIGINT FROM bib_id_map) + UNION ALL SELECT COUNT(DISTINCT incoming_bib), 'Incoming Bibs Being Merged into Incumbent' FROM bib_matches WHERE incumbent_bib_score >= incoming_bib_score + UNION ALL SELECT COUNT(id), 'Incumbent Bibs With Higher Scores to Incoming' FROM bib_matches WHERE incumbent_bib_score > incoming_bib_score + UNION ALL SELECT COUNT(id), 'Incumbent Bibs With Equal Scores to Incoming' FROM bib_matches WHERE incumbent_bib_score = incoming_bib_score + UNION ALL SELECT COUNT(id), 'Incumbent Bibs With Lower Scores to Incoming' FROM bib_matches WHERE incumbent_bib_score < incoming_bib_score + ; + + dedupe_format_count + dedupe + 0 + Count of Items Matching By Format + Count.Format(s) + SELECT COUNT(id), search_formats FROM bib_matches GROUP BY 2 ORDER BY 2; + + + + dedupe_score_ranges + dedupe + 0 + Count of Items Matching By Format + Lowest Record Score.Largest Record Score.Record Set + SELECT MIN(incumbent_bib_score), MAX(incumbent_bib_score), 'Incumbent Records' FROM bib_matches + UNION ALL SELECT MIN(incoming_bib_score), MAX(incoming_bib_score), 'Incoming Records' FROM bib_matches ; + + + + + + dedupe_sample_set + dedupe + 0 + Sample of 20 Matching Dedupe Record Sets + Bib Being Merged Into.Bib Being Merged + SELECT incumbent_bib, incoming_bib FROM bib_matches WHERE incumbent_bib_score >= incoming_bib_score LIMIT 20 ; + + + + + + + notices_overview + notices + 0 + Overview of Notices for Migration + ID.Active.Owner.Name.Delay.Validator.Reactor + SELECT ed.id, ed.active, aou.shortname, LEFT(ed.name,25) || '...', ed.delay, ed.validator, ed.reactor + FROM action_trigger.event_definition ed + JOIN actor.org_unit aou ON aou.id = ed.owner + WHERE ed.owner IN (SELECT DISTINCT home_ou FROM actor_usr) + OR ed.owner IN (SELECT DISTINCT parent_ou FROM actor.org_unit WHERE id in (SELECT DISTINCT home_ou FROM actor_usr)); + + + + + notices_count + notices + 0 + Count of Notices Run with State + Count of Notices.State.ID.Owner.Name + SELECT COUNT(ate.id), ate.state, ed.id, aou.shortname, LEFT(ed.name,25) || '...' + FROM action_trigger.event_definition ed + JOIN actor.org_unit aou ON aou.id = ed.owner + JOIN action_trigger.event ate ON ate.event_def = ed.id + WHERE ed.owner IN (SELECT DISTINCT home_ou FROM actor_usr) + OR ed.owner IN (SELECT DISTINCT parent_ou FROM actor.org_unit WHERE id in (SELECT DISTINCT home_ou FROM actor_usr)) + GROUP BY 2,3,4; + + + +