From c17a09188395d15f7c7a39b8643a23851cf4e53f Mon Sep 17 00:00:00 2001 From: David Denton Date: Thu, 24 Aug 2023 16:40:32 +0100 Subject: [PATCH] make event ID creation deterministic --- CHANGELOG.md | 4 ++++ .../org/http4k/connect/amazon/eventbridge/endpoints.kt | 2 +- settings.gradle.kts | 2 +- versions.properties | 6 +++--- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b33620808..1ff1f3093 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,10 @@ This list is not intended to be all-encompassing - it will document major and breaking API changes with their rationale when appropriate. Given version `A.B.C.D`, breaking changes are to be expected in version number increments where changes in the `A` or `B` sections: +### v5.1.6.0 +- **http4k-connect-*** - Upgrade dependencies. +- **http4k-connect-**** - Make generation of IDs more deterministic + ### v5.1.5.0 - **http4k-connect-*** - Upgrade dependencies. - **http4k-connect-cognito-**** - Add ConfirmForgottenPassword. H/T @dmcg diff --git a/amazon/eventbridge/fake/src/main/kotlin/org/http4k/connect/amazon/eventbridge/endpoints.kt b/amazon/eventbridge/fake/src/main/kotlin/org/http4k/connect/amazon/eventbridge/endpoints.kt index 39d28bafa..331cd3efa 100644 --- a/amazon/eventbridge/fake/src/main/kotlin/org/http4k/connect/amazon/eventbridge/endpoints.kt +++ b/amazon/eventbridge/fake/src/main/kotlin/org/http4k/connect/amazon/eventbridge/endpoints.kt @@ -28,7 +28,7 @@ fun AmazonJsonFake.putEvents(events: Storage>) = route { events[bus.value] = (events[bus.value] ?: listOf()) + new new.map { EventResult( - EventId.of(UUID.nameUUIDFromBytes(it.toString().toByteArray()).toString()), + EventId.of(UUID(0, events.keySet().size.toLong()).toString()), null, null ) } diff --git a/settings.gradle.kts b/settings.gradle.kts index d6f342eca..40f07e7a8 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -5,7 +5,7 @@ pluginManagement { } plugins { - id("de.fayard.refreshVersions").version("0.60.0") + id("de.fayard.refreshVersions").version("0.60.1") } refreshVersions { diff --git a/versions.properties b/versions.properties index 0a4f6b62d..8a3de1650 100644 --- a/versions.properties +++ b/versions.properties @@ -1,5 +1,5 @@ #### Dependencies and Plugin versions with their available updates. -#### Generated by `./gradlew refreshVersions` version 0.60.0 +#### Generated by `./gradlew refreshVersions` version 0.60.1 #### #### Don't manually edit or split the comments that start with four hashtags (####), #### they will be overwritten by refreshVersions. @@ -13,7 +13,7 @@ plugin.com.github.kt3k.coveralls=2.12.2 plugin.com.google.devtools.ksp=1.9.0-1.0.13 -plugin.de.fayard.buildSrcLibs=0.60.0 +plugin.de.fayard.buildSrcLibs=0.60.1 plugin.com.github.davidmc24.gradle.plugin.avro=1.8.0 @@ -64,6 +64,6 @@ version.se.ansman.kotshi..api=2.13.1 version.se.ansman.kotshi..compiler=2.13.1 -version.software.amazon.awssdk..bom=2.20.132 +version.software.amazon.awssdk..bom=2.20.133 version.com.nimbusds..nimbus-jose-jwt=9.31