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

Accountability #217

Open
2 of 7 tasks
rugulous opened this issue Jan 29, 2023 · 4 comments
Open
2 of 7 tasks

Accountability #217

rugulous opened this issue Jan 29, 2023 · 4 comments
Assignees
Labels
enhancement New feature or request new feature

Comments

@rugulous
Copy link
Member

rugulous commented Jan 29, 2023

We need to log when certain actions are taken, and who has done them

  • User's admin status is changed
  • User is made active/inactive
  • User is added/removed as band contact
  • User is created/changed
  • Organisation is created/changed
  • Membership is created/changed
  • Event is created/changed

This is essentially giving each entity a CreatedBy/LastModifiedBy attribute (plus date/time), as well as logging a few extra key actions

@rugulous rugulous added the enhancement New feature or request label Jan 29, 2023
@rugulous rugulous modified the milestones: V1.2.0, V1.1.0 Jan 30, 2023
@rugulous
Copy link
Member Author

This may seem like a good use case for Sequelize's hooks, but unfortunately I don't think it will be that simple.

We need to track the user performing the action, which won't be in the DB so won't be doable by a raw trigger

@rugulous rugulous moved this from To do to In Progress in Bandmaster Feb 15, 2023
@rugulous rugulous self-assigned this Feb 15, 2023
@rugulous
Copy link
Member Author

I suppose we should really know who created/most recently changed any entity, so it may make sense to add these fields to all of our tables

@rugulous
Copy link
Member Author

Found a better way to do this - starting a new branch!

@rugulous
Copy link
Member Author

This went too OTT so let's have a rethinkl

@rugulous rugulous moved this from In Progress to To do in Bandmaster Aug 10, 2023
@rugulous rugulous removed this from the V1.1.0 milestone Aug 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request new feature
Projects
Status: To do
Development

No branches or pull requests

1 participant