-
Notifications
You must be signed in to change notification settings - Fork 7
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
Update entity_check_job to loop through entities only #98
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please see comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few comments as I've noticed a few things. I also got errors when running locally as the checksum_calculated_at was a little out. I had to add Timecop.
I'll push a commit to fix review comments and added Timecop.
Also removed model
altogether from entity checksum.
Could you take a look please.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updates look good 👍
I'm going to test this in Register staging overnight. We can then merge if all OK. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
We noticed after testing on Register, that the entity_check_job would loop through sub-types causing an extra event to be sent to BQ.
This PR updates the perform method to loop through entities only and updates the build_event_for method to handle entity_name rather than model. The logger message had to be moved too.