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

HAI-1527 Audit logging for permission updates #393

Merged
merged 4 commits into from
Sep 1, 2023

Conversation

corvidian
Copy link
Contributor

Description

Add audit logging for permission updates

Jira Issue:

Type of change

  • Bug fix
  • New feature
  • Other

Instructions for testing

Change permissions, check audit logs in DB.

Checklist:

  • I have written new tests (if applicable)
  • I have ran the tests myself (if applicable)
  • I have made necessary changes to the documentation, link to confluence
    or other location:

@corvidian corvidian force-pushed the HAI-1527/audit-logs-for-changing-permissions branch 2 times, most recently from 337eccf to 3a565a1 Compare August 24, 2023 14:09
@corvidian corvidian force-pushed the HAI-1527/edit-api-for-access-rights branch from 21d2fc4 to 390d7be Compare August 31, 2023 07:16
@corvidian corvidian force-pushed the HAI-1527/audit-logs-for-changing-permissions branch from 3a565a1 to 9fc4e10 Compare August 31, 2023 07:29
@corvidian corvidian force-pushed the HAI-1527/edit-api-for-access-rights branch from 390d7be to eaebceb Compare August 31, 2023 07:50
@corvidian corvidian force-pushed the HAI-1527/audit-logs-for-changing-permissions branch from 9fc4e10 to 62351e3 Compare August 31, 2023 08:00
Base automatically changed from HAI-1527/edit-api-for-access-rights to dev August 31, 2023 08:26
@corvidian corvidian force-pushed the HAI-1527/audit-logs-for-changing-permissions branch from 62351e3 to b8c53db Compare August 31, 2023 08:54
@corvidian corvidian marked this pull request as ready for review August 31, 2023 08:55
import org.springframework.transaction.annotation.Transactional

@Service
class HankeKayttajaLoggingService(private val auditLogService: AuditLogService) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are all these functions unit tested?

Copy link
Contributor Author

@corvidian corvidian Aug 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, some of these were copied over and unchanged. Removing them.

I added unit tests for the ones that are still in use.

@sonarcloud
Copy link

sonarcloud bot commented Sep 1, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@corvidian corvidian merged commit 821338b into dev Sep 1, 2023
4 checks passed
@corvidian corvidian deleted the HAI-1527/audit-logs-for-changing-permissions branch September 1, 2023 09:58
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