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

🎁 Add listener to remove PCDM Collection from Featured #2154

Merged
merged 1 commit into from
Jan 16, 2024

Conversation

jeremyf
Copy link
Contributor

@jeremyf jeremyf commented Jan 16, 2024

With this commit I'm introducing the HyraxListener class, registering it
as part of the pub/sub ecosystem.

Then wiring in the behavior that removes the collection from the
featured collection. This echoes the callback behavior of the
Collection model.

With this commit I'm introducing the HyraxListener class, registering it
as part of the pub/sub ecosystem.

Then wiring in the behavior that removes the collection from the
featured collection.  This echoes the callback behavior of the
Collection model.
@@ -11,6 +11,6 @@ class Collection < ActiveFedora::Base
prepend OrderAlready.for(:creator)

def remove_featured
Copy link
Collaborator

Choose a reason for hiding this comment

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

How does this method get called?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is called via some callbacks defined inside the class but outside the scope of this diff.

@jeremyf jeremyf merged commit f6cd241 into i35-valkyrize-hyku Jan 16, 2024
1 of 3 checks passed
@jeremyf jeremyf deleted the valkyrie-add-featured-collection branch January 16, 2024 17:32
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.

2 participants