-
Notifications
You must be signed in to change notification settings - Fork 0
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
Staging: NoMethodError: undefined method `log_profile_event' for nil:NilClass #138
Comments
May be fixed by #136 |
Related MRs: |
sample file to reproduce the above |
Attempt to resolve the log_profile error (error still occurs) : 9d7cb4b |
Narrowed down that this originates from the Bulkrax CreateRelationshipsJob. Relevant Backtrace:
Event at breakpoint: #<Dry::Events::Event |
This comes from the Bulkrax::CreateRelationships job. The deprecation of the add_members method in collection_behavior routes to Hyrax::Collections::CollectionMemberService.add_members_by_ids, which expects a user, and passes nil by default. This means that the ObjectLifecycleListener receives an event with a nil user as it creates the ContentUpdateEventJob and throws a NoMethodError on the log_profile_event call for each collection member that is added. I have verified that this is only a notifier and not an indication of a failure. Collection relationships were created appropriately in spite of this notification error. This could potentially be solved by changing to call the |
Test by monitoring Sentry for error after a Bulkrax import which includes linking a work to a collection. |
✅ Did a test on a brand new tenant with: And did not observe any |
Why is depositor coming across as nil?
https://sentry.io/organizations/scientist-inc/issues/3597913959/?project=6745049&referrer=project-issue-stream
caused by running an importer.
The text was updated successfully, but these errors were encountered: