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

Review all Indexers overrides and reconcile with upstream changes #34

Closed
1 task
jillpe opened this issue Aug 3, 2023 · 4 comments
Closed
1 task

Review all Indexers overrides and reconcile with upstream changes #34

jillpe opened this issue Aug 3, 2023 · 4 comments
Assignees
Milestone

Comments

@jillpe
Copy link

jillpe commented Aug 3, 2023

Summary

Roughly 3 or 4 of these

Acceptance Criteria

  • Indexers overrides are reconciled with upstream changes

Screenshots or Video

Testing Instructions

Notes

@jillpe jillpe added this to AMS / GBH Aug 3, 2023
@jillpe jillpe converted this from a draft issue Aug 3, 2023
@jillpe jillpe added this to the Hyrax Upgrade milestone Aug 3, 2023
@jillpe jillpe added the blocked other work must be completed first label Aug 3, 2023
@jillpe jillpe removed the blocked other work must be completed first label Aug 10, 2023
@jillpe
Copy link
Author

jillpe commented Aug 10, 2023

No longer blocked, as of 2023-08-10

@ShanaLMoore ShanaLMoore self-assigned this Aug 14, 2023
@ShanaLMoore
Copy link

ShanaLMoore commented Aug 14, 2023

INDEXERS

AMS/WorkIndexer

  • #find_index_child_attributes => to index parent
  • keep

AssetIndexer

  • Inherits WorkIndexer
  • keep

ContributionIndexer

  • Inherits WorkIndexer
  • keep

DigitalInstantiationIndexer

  • Inherits WorkIndexer
  • keep

EssenceTrackIndexer

  • Inherits WorkIndexer
  • keep

PhysicalInstantiationIndexer

  • Inherits WorkIndexer
  • keep

QueuedNestingIndexer

class QueuedNestingIndexer
  extend Samvera::NestingIndexer
  def self.reindex_relationships(id:, maximum_nesting_depth: nil, extent:)
    if extent.match("queue")
      Rails.logger.info("nested indexing queued")
      Redis.current.zadd("nested:index:#{extent.delete("queue")}", 0, id.to_s)
    else
      ::Samvera::NestingIndexer.reindex_relationships(id: id, extent: 'full')
    end
    true
  end
end

@ShanaLMoore
Copy link

ShanaLMoore commented Aug 14, 2023

TODO: test searches per @laritakr We may need to update search queries

@ShanaLMoore ShanaLMoore assigned laritakr and unassigned ShanaLMoore Aug 14, 2023
@jillpe jillpe moved this to In Development in AMS / GBH Aug 15, 2023
laritakr added a commit to WGBH-MLA/ams that referenced this issue Aug 15, 2023
Calling QueuedNestingIndexer is obsolete after upgrades.
refs scientist-softserv#34
@github-project-automation github-project-automation bot moved this from In Development to Done in AMS / GBH Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

3 participants