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

🧹 Fix relationship links #2161

Merged
merged 1 commit into from
Feb 2, 2024

Conversation

kirkkwang
Copy link
Collaborator

@kirkkwang kirkkwang commented Feb 2, 2024

This commit will make sure that the set child flag transaction fires when ingesting with Bulkrax. Also fixed a weird bug where the extra space in the query was causing the query to fail.

TODO: update gemfile.lock once the following gets merged

Issue:

This commit will make sure that the set child flag transaction fires
when ingesting with Bulkrax.  Also fixed a weird bug where the extra
space in the query was causing the query to fail.
@kirkkwang kirkkwang added the patch-ver for release notes label Feb 2, 2024
# specs refer to object as @object
object ||= @object || resource

solr_doc['account_cname_tesim'] = Site.instance&.account&.cname
solr_doc['bulkrax_identifier_tesim'] = object.bulkrax_identifier if object.respond_to?(:bulkrax_identifier)
solr_doc['account_institution_name_ssim'] = Site.instance.institution_label
solr_doc['valkyrie_bsi'] = object.kind_of?(Valkyrie::Resource)
solr_doc['member_ids_ssim'] = object.member_ids.map(&:id)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Note to self: We may need a valkyrie check here? valkyrie member ids returns valkyrie objects with id keys, allowing us to map (:id). Active Fedora's member_ids are just ids.

@ShanaLMoore ShanaLMoore changed the title 🧹 Fix set child flag 🧹 Fix relationship links Feb 2, 2024
@ShanaLMoore ShanaLMoore self-requested a review February 2, 2024 00:29
@jeremyf jeremyf merged commit 54f8d1f into i35-valkyrize-hyku Feb 2, 2024
3 of 4 checks passed
@jeremyf jeremyf deleted the i35-valkyrize-hyku-relationships branch February 2, 2024 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch-ver for release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants