Skip to content

Conversation

@ChayanDass
Copy link
Contributor

Implemented the USER audit type and refactored all if-else blocks into a switch-case for cleaner maintainability.

Fixes: #166

Added

  • Implemented missing audit handling for Type = "USER" inside GetAuditEntity.
    The entity is now populated with the corresponding User model instead of returning null.

Changed

  • Refactored all existing audit type checks (LICENSE, OBLIGATION, TYPE, CLASSIFICATION)
    from multiple if-else blocks to a cleaner and more maintainable switch statement.

Implemented USER audit type and refactored all if-else blocks into a switch-case for cleaner maintainability.

Signed-off-by: Chayan Das <[email protected]>
Copy link
Collaborator

@deo002 deo002 left a comment

Choose a reason for hiding this comment

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

Changes Look Good!

@deo002 deo002 merged commit b500fb5 into fossology:main Nov 25, 2025
9 checks passed
@ChayanDass ChayanDass deleted the fix/audit-user branch November 25, 2025 08:10
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.

Bug: entity field is null in GetAllAudit response for USER updates

2 participants