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

Use the Hyrax::TimeService for events #4130

Merged
merged 1 commit into from
Oct 26, 2019
Merged

Conversation

no-reply
Copy link
Contributor

Hyrax::Event usually wants to be created "now". For Hyrax, "now" generally
means Hyrax::TimeService.time_in_utc.

We switch to using this method, and add a utility method for this. The method is
convenient for users, and extracts behavior from EventJob where it's not as
visible to users who might be trying to understand how to use the Event.

@samvera/hyrax-code-reviewers

`Hyrax::Event` usually wants to be created "now". For Hyrax, "now" generally
means `Hyrax::TimeService.time_in_utc`.

We switch to using this method, and add a utility method for this. The method is
convenient for users, and extracts behavior from `EventJob` where it's not as
visibile to users who might be trying to understand how to use the Event.
@jcoyne jcoyne merged commit 8b2dce3 into master Oct 26, 2019
@jeremyf jeremyf deleted the use-time-service-events branch January 22, 2020 21:09
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