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

Send preservationAuditWF events to the event service #1357

Closed
jcoyne opened this issue Feb 7, 2020 · 4 comments · Fixed by #1375
Closed

Send preservationAuditWF events to the event service #1357

jcoyne opened this issue Feb 7, 2020 · 4 comments · Fixed by #1375
Assignees

Comments

@jcoyne
Copy link
Contributor

jcoyne commented Feb 7, 2020

Currently preservationAuditWF is not used as a workflow, but as a log of problems. It is not sending the object version, which is now a deprecated call in workflow_service_rails (https://app.honeybadger.io/projects/58890/faults/60031582). Can we change to use the event service in dor-services-app now?

@jcoyne jcoyne added the question label Feb 7, 2020
@mjgiarlo
Copy link
Member

Yes, let's do this.

@mjgiarlo mjgiarlo removed the question label Feb 10, 2020
@jmartin-sul
Copy link
Member

splitting this into two tickets. this ticket is now just about sending events to the event service. there is a new (currently blocked, slightly ambiguous) ticket for un-coupling from preservationAuditWF. see #1363.

@jmartin-sul jmartin-sul changed the title Switch preservationAuditWF events to the event service Send preservationAuditWF events to the event service Feb 11, 2020
@mjgiarlo mjgiarlo self-assigned this Feb 12, 2020
@ndushay
Copy link
Contributor

ndushay commented Feb 13, 2020

@mjgiarlo is this a dup of #1351 ?

I think we want to send passing AND error audit results to event service.

@jmartin-sul
Copy link
Member

jmartin-sul commented Feb 13, 2020

ah yes, had meant to close one or the other of this and #1351 as a dupe. but also i agree with @ndushay that the respective scopes of the two tickets differ slightly and that the wider scope of #1351 is what we want to do.

as noted in #1363 (comment), de-coupling preservation from workflow service is a bit trickier than just sending events to the event service and somehow exposing audit errors -- we actually do want to block versioning if the preserved object has issues (even if that wasn't part of the original intent of sending errors to WFS).

no preference as to which ticket gets kept open, now that this one has been updated with the relevant info.

my gut feeling without really digging into the code again is that we want to push events from AuditResults#report_results and where ever we manually notify honeybadger.

hopefully whatever work you've put into this so far can be extended to the slightly wider scope w/o too much trouble!

mjgiarlo added a commit to sul-dlss/dor-services-client that referenced this issue Feb 13, 2020
mjgiarlo added a commit that referenced this issue Feb 14, 2020
mjgiarlo added a commit that referenced this issue Feb 14, 2020
Fixes #1357
Fixes #1351

This pull request sends audit results to the new DOR event service which is provided by dor-services-app. As part of this, I refactored the WorkflowReporter such that the class methods (all that was exposed previously) create an instance of the class, with the instance doing all the work. This preserves the prior contract and allows for less passing around of state which now lives in the instance.
@mjgiarlo mjgiarlo added this to the 2020 Workcycle Sprint 4 milestone Feb 14, 2020
mjgiarlo added a commit that referenced this issue Feb 19, 2020
mjgiarlo added a commit that referenced this issue Feb 19, 2020
Fixes #1357
Fixes #1351

This pull request sends audit results to the new DOR event service which is provided by dor-services-app. As part of this, I refactored the WorkflowReporter such that the class methods (all that was exposed previously) create an instance of the class, with the instance doing all the work. This preserves the prior contract and allows for less passing around of state which now lives in the instance.
mjgiarlo added a commit that referenced this issue Feb 20, 2020
Fixes #1357
Fixes #1351

This pull request sends audit results to the new DOR event service which is provided by dor-services-app. As part of this, I refactored the WorkflowReporter such that the class methods (all that was exposed previously) create an instance of the class, with the instance doing all the work. This preserves the prior contract and allows for less passing around of state which now lives in the instance.
mjgiarlo added a commit that referenced this issue Feb 20, 2020
Fixes #1357
Fixes #1351

This pull request sends audit results to the new DOR event service which is provided by dor-services-app. As part of this, I refactored the WorkflowReporter such that the class methods (all that was exposed previously) create an instance of the class, with the instance doing all the work. This preserves the prior contract and allows for less passing around of state which now lives in the instance.
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 a pull request may close this issue.

4 participants