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

Add database audit trigger on invite update/delete #266

Merged
merged 1 commit into from
Jul 4, 2024

Conversation

norrisng-bc
Copy link
Contributor

Description

When an invite is used, it is deleted from the invite table. This deletion is now logged to the audit table via a database trigger (as is already the case for other audited actions).

https://apps.nrs.gov.bc.ca/int/jira/browse/SHOWCASE-3680

Types of changes

New feature (non-breaking change which adds functionality)

Checklist

  • I have read the CONTRIBUTING doc
  • I have checked that unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

Further comments

As is the case with the existing audit triggers, the new trigger will execute on updates and deletes.

At the moment, however, it effectively only runs on delete since there's no mechanism to modify invites after creation.

Copy link

github-actions bot commented Jul 4, 2024

Coverage Report

Totals Coverage
Statements: 61.13% ( 3052 / 4993 )
Methods: 50.99% ( 335 / 657 )
Lines: 68.15% ( 1832 / 2688 )
Branches: 53.7% ( 885 / 1648 )

Invites are deleted once used, so log this in the audit table
@norrisng-bc norrisng-bc force-pushed the feature/invite-audit-trigger branch from 3a5860a to 3efba85 Compare July 4, 2024 00:39
Copy link

codeclimate bot commented Jul 4, 2024

Code Climate has analyzed commit 3efba85 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 68.1% (0.0% change).

View more on Code Climate.

@TimCsaky TimCsaky merged commit 047c151 into master Jul 4, 2024
13 checks passed
@TimCsaky TimCsaky deleted the feature/invite-audit-trigger branch July 4, 2024 17:29
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