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

Do not index SCSB items if they are private #2393

Merged
merged 1 commit into from
Jun 5, 2024

Conversation

maxkadel
Copy link
Contributor

@maxkadel maxkadel commented Jun 4, 2024

  • If there are only private items, skip indexing the whole record
  • If there is a mix of private and non-private items, only index the private items

Connected to #2383

Tested successfully on staging using a file from SCSB that included private items.

- If there are only private items, skip indexing the whole record
- If there is a mix of private and non-private items, only index the private items

Connected to #2383
@maxkadel maxkadel marked this pull request as ready for review June 5, 2024 14:43
next if recap_notes.map { |note| note.include?("P") }.include?(false)

id = id_extractor.extract(record).first
context.skip!("Skipped #{id} because record includes only private items.")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool!

Copy link
Member

@sandbergja sandbergja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @maxkadel 🦄

@sandbergja sandbergja merged commit 99ca4de into main Jun 5, 2024
11 checks passed
@sandbergja sandbergja deleted the do_not_index_any_private_partner_records branch June 5, 2024 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants