Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-add nolano tables to the tables map instead of specifying them directly #1342

Merged
merged 1 commit into from
Feb 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions lib/traject/readers/folio_postgres_reader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,10 @@ def delta_query(date, additional_tables: %w[cr cl cc])
'vi' => 'vi',
'cr' => 'cr_filter',
'cl' => 'cl_filter',
'cc' => 'cc_filter'
'cc' => 'cc_filter',
'hr' => 'hr_filter',
'item' => 'item_filter',
'rs' => 'rs_filter'
}

cr_filter = 'LEFT JOIN sul_mod_inventory_storage.holdings_record hr_filter ON hr_filter.instanceid = vi.id
Expand All @@ -249,7 +252,7 @@ def delta_query(date, additional_tables: %w[cr cl cc])
LEFT JOIN sul_mod_courses.coursereserves_courses cc_filter ON cc_filter.courselistingid = cl_filter.id"
}

additional_tables += %w[hr_filter item_filter rs_filter] if folio_version.nil? || folio_version < 'poppy'
additional_tables += %w[hr item rs] if folio_version.nil? || folio_version < 'poppy'

method = cursor_by_ids? ? :ids_sql_query : :contents_sql_query

Expand Down
Loading