Skip to content

feat(common-lib): introduce strenum on audit constants to generate map of custom string const types#394

Merged
SATYAsasini merged 1 commit into
devtron-labs:feat-audit-logs-v2from
Bhupesh-V:audit-strenum-const
Jul 15, 2026
Merged

feat(common-lib): introduce strenum on audit constants to generate map of custom string const types#394
SATYAsasini merged 1 commit into
devtron-labs:feat-audit-logs-v2from
Bhupesh-V:audit-strenum-const

Conversation

@Bhupesh-V

@Bhupesh-V Bhupesh-V commented Jul 14, 2026

Copy link
Copy Markdown

The script/tool executes per go generate directive, generates a separate file per type which contains a map declaration containing all the values of that type, this makes it easy to traverse over all the values for any list based queries.

strenum logs

Generated: constants_auditmodule_gen.go (6 constants found)
Generated: constants_auditresource_gen.go (45 constants found)
Generated: constants_auditaction_gen.go (15 constants found)

@SATYAsasini
SATYAsasini merged commit 1d0013c into devtron-labs:feat-audit-logs-v2 Jul 15, 2026
2 checks passed
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