-
Notifications
You must be signed in to change notification settings - Fork 55
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
Bump Misk & add audit client #427
Conversation
eventSource = "backfila", | ||
eventTarget = "ChickenSandwich", | ||
timestampSent = 2147483647, | ||
applicationName = "deep-fryer", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mpawliszyn can you double check all these values are as expected?
7ebb0e5
to
407f205
Compare
Waiting on help to fix Vitess changes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise looks good.
@@ -77,6 +78,7 @@ dependencies { | |||
|
|||
testImplementation(libs.miskTesting) | |||
testImplementation(libs.miskHibernateTesting) | |||
testImplementation(testFixtures(libs.miskAuditClient)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice!
override fun runCompleted(id: Id<DbBackfillRun>) { | ||
val (backfillName, run, description) = transacter.transaction { session -> | ||
val run = session.load<DbBackfillRun>(id) | ||
Triple(run.registered_backfill.name, run, "Backfill completed ${dryRunPrefix(run)}${nameAndId(run)}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably just create a local data class?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At first I thought this was the backfill description.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then we also won't be letting Db objects escape the session.
Misk 2025.04.01.184033-1915641
a6edc27
to
9e4623f
Compare
5261a39
to
c301320
Compare
|
||
private data class AuditEvent( | ||
val backfillName: String, | ||
val run: DbBackfillRun, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The point is not to have the Db object?
b1b17d7
to
df18b61
Compare
1199a2f
to
3963044
Compare
3963044
to
8dbac6f
Compare
Misk 2025.04.01.184033-1915641