Skip to content

Commit da784da

Browse files
committed
Release 0.41.5
- CompositeGraphResponse errors filter by httpStatusCode Signed-off-by: Gopal S Akshintala <[email protected]>
1 parent bf07568 commit da784da

File tree

7 files changed

+11
-15
lines changed

7 files changed

+11
-15
lines changed

.idea/kotlinc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ tasks {
6464
test { dependsOn(npmInstall) }
6565
}
6666

67-
koverReport { defaults { xml { onCheck = true } } }
67+
kover { reports { total { html { onCheck = true } } } }
6868

6969
moshi { enableSealed = true }
7070

buildSrc/src/main/kotlin/Config.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
* ************************************************************************************************
77
*/
88
const val GROUP_ID = "com.salesforce.revoman"
9-
const val VERSION = "0.41.4"
9+
const val VERSION = "0.41.5"
1010
const val ARTIFACT_ID = "revoman"
1111
const val STAGING_PROFILE_ID = "1ea0a23e61ba7d"

buildSrc/src/main/kotlin/revoman.kt-conventions.gradle.kts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ kapt {
2222

2323
kotlin {
2424
compilerOptions {
25-
languageVersion.set(KOTLIN_2_0)
26-
apiVersion.set(KOTLIN_2_0)
2725
freeCompilerArgs.addAll("-Xjvm-default=all", "-Xcontext-receivers", "-Xjdk-release=11")
2826
}
2927
}

libs.versions.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
[versions]
2-
kotlin = "2.0.0-RC3"
3-
moshix = "0.27.0-alpha01"
4-
http4k = "5.19.0.0"
2+
kotlin = "2.0.0"
3+
moshix = "0.27.1"
4+
http4k = "5.21.0.0"
55
immutables = "2.10.1"
66
arrow = "1.2.4"
77
graal = "22.3.3" # 22.3.3 Compatable with Java 11
88
java-vavr = "0.10.4"
99
kotlin-vavr = "0.10.2"
1010
jetbrains-annotations = "24.1.0"
1111
okio = "3.9.0"
12-
kover = "0.7.6"
1312
kotest = "5.9.0"
1413
testLogger = "4.0.0"
1514
truth = "1.4.2"
@@ -24,13 +23,14 @@ mockito = "5.12.0"
2423
spring = "5.3.31" # 5.3.31 Compatable with Java 11
2524
json-assert = "1.5.1"
2625
nexus-publish = "2.0.0"
27-
kotlinx-datetime = "0.6.0-RC.2"
26+
kotlinx-datetime = "0.6.0"
2827
node-gradle = "7.0.2"
2928
mockk = "1.13.10"
3029
gradle-taskinfo = "2.2.0"
3130

3231
# Common dependencies
3332
junit = "5.10.2"
33+
kover = "0.8.0"
3434
detekt = "1.23.6"
3535
spotless = "6.25.0"
3636
apache-log4j = "2.23.1"

src/main/kotlin/com/salesforce/revoman/input/json/adapters/CompositeGraphResponse.kt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import com.salesforce.revoman.input.json.factories.DiMorphicAdapter
88
import com.squareup.moshi.Json
99
import com.squareup.moshi.JsonClass
1010

11-
private const val PROCESSING_HALTED = "PROCESSING_HALTED"
11+
private val CLIENT_ERROR = 400..499
1212

1313
@JsonClass(generateAdapter = true)
1414
data class CompositeGraphResponse(val graphs: List<Graph>) {
@@ -49,9 +49,7 @@ data class CompositeGraphResponse(val graphs: List<Graph>) {
4949
@Json(ignore = true)
5050
@JvmField
5151
val errorResponses: List<CompositeErrorResponse> =
52-
graphResponse.compositeResponse.filter {
53-
it.body.firstOrNull()?.errorCode != PROCESSING_HALTED
54-
}
52+
graphResponse.compositeResponse.filter { it.httpStatusCode in CLIENT_ERROR }
5553
@Json(ignore = true)
5654
@JvmField
5755
val firstErrorResponseBody: Body? = errorResponses.firstOrNull()?.body?.firstOrNull()

src/main/kotlin/com/salesforce/revoman/internal/postman/DynamicVariableGenerator.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ private val dynamicVariableGenerators: Map<String, () -> String> =
4949
"\$randomCity" to faker.address::city,
5050
// Grammar
5151
"\$randomAdjective" to faker.adjective::positive,
52+
"\$randomWord" to faker.lorem::words,
5253
// Business
5354
"\$randomCompanyName" to faker.company::name,
54-
"\$randomWord" to faker.lorem::words,
5555
// Domains, emails, and usernames
5656
"\$randomEmail" to { faker.internet.email() },
5757
// Date time

0 commit comments

Comments
 (0)