Skip to content

add audit logs for create, update, delete and download of questions#12

Open
sahilpaudel-pe wants to merge 5 commits intoadityaU:feature/alertsfrom
sahilpaudel:feature/audit_logs
Open

add audit logs for create, update, delete and download of questions#12
sahilpaudel-pe wants to merge 5 commits intoadityaU:feature/alertsfrom
sahilpaudel:feature/audit_logs

Conversation

@sahilpaudel-pe
Copy link

@sahilpaudel-pe sahilpaudel-pe commented Nov 2, 2020

Adding feature for Audit logs on create, update, delete and download of a question.

lib/afterglow/actions/actions.ex - string integer mapping of action performed.
lib/afterglow/audit_logs/save.ex - function to save the data to db restricting delete operation.
web/controllers/question_controller.ex - added the audit log code in create, update and delete functions.
web/jobs/csv_tasks.ex - added the audit log code in download function.
web/models/audit_logs.ex - audit log model.

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