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
Improve subs logging #5908
Improve subs logging #5908
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.
nice 👍
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.
🧻
why not add a unit test to cover this? It's provided pretty critical to debug subs issues. I think it's worth it. |
This works openfoodnetwork=> select * from versions order by id desc limit 5;
id | item_type | item_id | event | whodunnit | object | created_at | custom_data
-----+------------+---------+---------+-----------+--------------------------------------------------+----------------------------+-------------
655 | Schedule | 13 | create | 1 | | 2020-08-27 14:20:04.590854 | []
654 | OrderCycle | 90 | create | 1 | | 2020-08-27 14:18:25.935542 | []
653 | OrderCycle | 74 | update | | --- +| 2020-08-25 08:38:45.651059 | [12]
| | | | | id: 74 +| |
| | | | | name: OC July +| |
| | | | | orders_open_at: 2020-07-31 22:00:00.000000000 Z +| |
| | | | | orders_close_at: 2020-09-15 22:00:00.000000000 Z+| |
| | | | | coordinator_id: 42 +| |
| | | | | created_at: 2020-06-09 10:36:15.215751000 Z +| |
| | | | | updated_at: 2020-08-25 08:38:30.233154000 Z +| | The row prior to the deploy does not have |
What? Why?
Related to #5743
Adds some minor improvements to subs logging, but the problems are not completely resolved yet. See issue notes.
What should we test?
whodunnit
field.Unpermitted attribute: order_cycle_ids
warning when creating/updating schedules.Release notes
Improved PaperTrail logging for subscriptions