Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
driessamyn committed Oct 3, 2023
1 parent 8fcf4c4 commit 9516cbb
Show file tree
Hide file tree
Showing 9 changed files with 72 additions and 65 deletions.
2 changes: 1 addition & 1 deletion applications/examples/sandbox-app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ dependencies {
runtimeOnly project(':libs:messaging:db-message-bus-impl')
runtimeOnly project(':libs:serialization:serialization-checkpoint-api')
runtimeOnly project(':libs:serialization:serialization-kryo')
runtimeOnly project(":libs:state-manager:state-manager-db-impl")
runtimeOnly project(':libs:state-manager:state-manager-db-impl')
runtimeOnly project(':testing:group-policy-test-common')
runtimeOnly project(':libs:web:web-impl')

Expand Down
2 changes: 1 addition & 1 deletion components/flow/flow-service/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ dependencies {
integrationTestRuntimeOnly project(':libs:messaging:messaging-impl')
integrationTestRuntimeOnly project(':libs:serialization:serialization-checkpoint-api')
integrationTestRuntimeOnly project(':libs:serialization:serialization-kryo')
integrationTestRuntimeOnly project(":libs:state-manager:state-manager-db-impl")
integrationTestRuntimeOnly project(':libs:state-manager:state-manager-db-impl')
integrationTestRuntimeOnly project(':components:membership:membership-group-read-impl')
integrationTestRuntimeOnly project(':components:virtual-node:cpk-read-service-impl')

Expand Down
2 changes: 1 addition & 1 deletion components/ledger/ledger-common-flow/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ dependencies {
integrationTestRuntimeOnly project(':libs:messaging:db-message-bus-impl')
integrationTestRuntimeOnly project(':libs:messaging:messaging-impl')
integrationTestRuntimeOnly project(':libs:flows:session-manager-impl')
integrationTestRuntimeOnly project(":libs:state-manager:state-manager-db-impl")
integrationTestRuntimeOnly project(':libs:state-manager:state-manager-db-impl')
integrationTestRuntimeOnly "org.apache.aries.spifly:org.apache.aries.spifly.dynamic.framework.extension:$ariesDynamicFrameworkExtensionVersion"

cpis project(path: ':testing:ledger:ledger-common-empty-app', configuration: 'cordaCPB')
Expand Down
2 changes: 1 addition & 1 deletion components/ledger/ledger-consensual-flow/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ dependencies {
integrationTestRuntimeOnly project(':libs:messaging:messaging-impl')
integrationTestRuntimeOnly project(':libs:lifecycle:lifecycle-impl')
integrationTestRuntimeOnly project(':libs:flows:session-manager-impl')
integrationTestRuntimeOnly project(":libs:state-manager:state-manager-db-impl")
integrationTestRuntimeOnly project(':libs:state-manager:state-manager-db-impl')
cpis project(path: ':testing:ledger:ledger-consensual-state-app', configuration: 'cordaCPB')
}

Expand Down
2 changes: 1 addition & 1 deletion components/ledger/ledger-utxo-flow/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ dependencies {
integrationTestRuntimeOnly project(':libs:lifecycle:lifecycle-impl')
integrationTestRuntimeOnly project(':libs:flows:session-manager-impl')
integrationTestRuntimeOnly project(':libs:membership:membership-impl')
integrationTestRuntimeOnly project(":libs:state-manager:state-manager-db-impl")
integrationTestRuntimeOnly project(':libs:state-manager:state-manager-db-impl')

cpis project(path: ':testing:ledger:ledger-utxo-state-app', configuration: 'cordaCPB')
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package net.corda.libs.statemanager.api

/**
* Mutable map that allows only primitive types to be used as values.
* Map that allows only primitive types to be used as values.
*/
class Metadata(
private val map: Map<String, Any> = emptyMap()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,12 @@ class MetadataTests {
assertThat(meta2).isNotSameAs(meta1)
}

@Test
fun `new meta with additional elements`() {
val meta1 = Metadata(mapOf("foo" to "bar"))
assertThat(meta1.plus("batman" to "joker"))
.containsExactlyInAnyOrderEntriesOf(mapOf("foo" to "bar", "batman" to "joker"))
}

data class Superman(val kudos: Int)
}
54 changes: 27 additions & 27 deletions processors/flow-mapper-processor/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,49 +17,49 @@ dependencies {
implementation 'net.corda:corda-ledger-utxo'
implementation 'net.corda:corda-notary-plugin'

implementation project(":components:configuration:configuration-read-service")
implementation project(":components:flow:flow-mapper-service")
implementation project(":components:flow:flow-p2p-filter-service")
implementation project(":components:membership:locally-hosted-identities-service")
implementation project(':components:configuration:configuration-read-service')
implementation project(':components:flow:flow-mapper-service')
implementation project(':components:flow:flow-p2p-filter-service')
implementation project(':components:membership:locally-hosted-identities-service')
implementation project(':components:membership:group-policy')
implementation project(":components:membership:membership-group-read")
implementation project(":components:membership:membership-persistence-client")
implementation project(":components:virtual-node:cpi-info-read-service")
implementation project(":components:virtual-node:virtual-node-info-read-service")
implementation project(":libs:lifecycle:lifecycle")
implementation project(':components:membership:membership-group-read')
implementation project(':components:membership:membership-persistence-client')
implementation project(':components:virtual-node:cpi-info-read-service')
implementation project(':components:virtual-node:virtual-node-info-read-service')
implementation project(':libs:lifecycle:lifecycle')
implementation project(":libs:messaging:messaging")
implementation project(':libs:utilities')
implementation project(":notary-plugins:notary-plugin-common")
implementation project(':notary-plugins:notary-plugin-common')

runtimeOnly project(":components:configuration:configuration-read-service-impl")
runtimeOnly project(':libs:ledger:ledger-common-data')
runtimeOnly project(":components:ledger:notary-worker-selection-impl")
runtimeOnly project(':libs:ledger:ledger-consensual-data')
runtimeOnly project(':libs:ledger:ledger-utxo-data')
runtimeOnly project(":libs:crypto:crypto-serialization-impl")
runtimeOnly project(':libs:crypto:crypto-serialization-impl')
runtimeOnly project(':libs:crypto:merkle-impl')
runtimeOnly project(":components:configuration:configuration-read-service-impl")
runtimeOnly project(":components:flow:flow-mapper-impl")
runtimeOnly project(":components:membership:locally-hosted-identities-service-impl")
runtimeOnly project(":components:membership:membership-group-read-impl")
runtimeOnly project(":components:membership:membership-persistence-client-impl")
runtimeOnly project(":components:membership:group-policy-impl")
runtimeOnly project(":components:uniqueness:uniqueness-checker-client-service-impl")
runtimeOnly project(":components:virtual-node:cpi-info-read-service-impl")
runtimeOnly project(":libs:application:application-impl")
runtimeOnly project(':components:configuration:configuration-read-service-impl')
runtimeOnly project(':components:flow:flow-mapper-impl')
runtimeOnly project(':components:membership:locally-hosted-identities-service-impl')
runtimeOnly project(':components:membership:membership-group-read-impl')
runtimeOnly project(':components:membership:membership-persistence-client-impl')
runtimeOnly project(':components:membership:group-policy-impl')
runtimeOnly project(':components:uniqueness:uniqueness-checker-client-service-impl')
runtimeOnly project(':components:virtual-node:cpi-info-read-service-impl')
runtimeOnly project(':libs:application:application-impl')
runtimeOnly project(':libs:crypto:cipher-suite-impl')
runtimeOnly project(":libs:crypto:crypto-serialization-impl")
runtimeOnly project(':libs:crypto:merkle-impl')
runtimeOnly project(':libs:db:db-orm-impl')
runtimeOnly project(":libs:flows:external-event-responses-impl")
runtimeOnly project(":libs:flows:flow-api")
runtimeOnly project(":libs:flows:session-manager-impl")
runtimeOnly project(":libs:messaging:messaging-impl")
runtimeOnly project(':libs:flows:external-event-responses-impl')
runtimeOnly project(':libs:flows:flow-api')
runtimeOnly project(':libs:flows:session-manager-impl')
runtimeOnly project(':libs:messaging:messaging-impl')
runtimeOnly project(':libs:ledger:ledger-common-data')
runtimeOnly project(':libs:ledger:ledger-consensual-data')
runtimeOnly project(':libs:ledger:ledger-utxo-data')
runtimeOnly project(":libs:lifecycle:lifecycle-impl")
runtimeOnly project(":libs:schema-registry:schema-registry-impl")
runtimeOnly project(":libs:state-manager:state-manager-db-impl")
runtimeOnly project(':libs:lifecycle:lifecycle-impl')
runtimeOnly project(':libs:schema-registry:schema-registry-impl')
runtimeOnly project(':libs:state-manager:state-manager-db-impl')

}
64 changes: 32 additions & 32 deletions processors/flow-processor/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,60 +17,60 @@ dependencies {
implementation 'net.corda:corda-ledger-utxo'
implementation 'net.corda:corda-notary-plugin'

implementation project(":components:configuration:configuration-read-service")
implementation project(":components:flow:flow-service")
implementation project(':components:configuration:configuration-read-service')
implementation project(':components:flow:flow-service')
implementation project(':components:membership:group-policy')
implementation project(':components:membership:locally-hosted-identities-service')
implementation project(":components:membership:membership-group-read")
implementation project(":components:membership:membership-persistence-client")
implementation project(":components:ledger:ledger-utxo-token-cache")
implementation project(":components:virtual-node:cpi-info-read-service")
implementation project(":components:virtual-node:cpk-read-service")
implementation project(":components:virtual-node:sandbox-group-context-service")
implementation project(":components:virtual-node:virtual-node-info-read-service")
implementation project(':components:membership:membership-group-read')
implementation project(':components:membership:membership-persistence-client')
implementation project(':components:ledger:ledger-utxo-token-cache')
implementation project(':components:virtual-node:cpi-info-read-service')
implementation project(':components:virtual-node:cpk-read-service')
implementation project(':components:virtual-node:sandbox-group-context-service')
implementation project(':components:virtual-node:virtual-node-info-read-service')
implementation project(":libs:lifecycle:lifecycle")
implementation project(":libs:messaging:messaging")
implementation project(':libs:utilities')
implementation project(':libs:virtual-node:sandbox-group-context')
implementation project(":notary-plugins:notary-plugin-common")
implementation project(':notary-plugins:notary-plugin-common')

runtimeOnly project(":components:configuration:configuration-read-service-impl")
runtimeOnly project(":components:flow:flow-service")
runtimeOnly project(':components:ledger:ledger-common-flow')
runtimeOnly project(':libs:ledger:ledger-common-data')
runtimeOnly project(':components:ledger:ledger-consensual-flow')
runtimeOnly project(':components:ledger:ledger-utxo-flow')
runtimeOnly project(":components:ledger:notary-worker-selection-impl")
runtimeOnly project(':components:ledger:notary-worker-selection-impl')
runtimeOnly project(':libs:ledger:ledger-consensual-data')
runtimeOnly project(':components:ledger:ledger-utxo-flow')
runtimeOnly project(':libs:ledger:ledger-utxo-data')
runtimeOnly project(":libs:crypto:crypto-serialization-impl")
runtimeOnly project(':libs:crypto:crypto-serialization-impl')
runtimeOnly project(':libs:crypto:merkle-impl')
runtimeOnly project(':libs:crypto:cipher-suite-impl')
runtimeOnly project(":components:configuration:configuration-read-service-impl")
runtimeOnly project(":components:uniqueness:uniqueness-checker-client-service-impl")
runtimeOnly project(":components:membership:membership-group-read-impl")
runtimeOnly project(":components:membership:membership-persistence-client-impl")
runtimeOnly project(":components:membership:group-policy-impl")
runtimeOnly project(":components:membership:locally-hosted-identities-service-impl")
runtimeOnly project(":components:uniqueness:uniqueness-checker-client-service-impl")
runtimeOnly project(":components:virtual-node:cpi-info-read-service-impl")
runtimeOnly project(":components:virtual-node:cpk-read-service-impl")
runtimeOnly project(":components:flow:flow-mapper-impl")
runtimeOnly project(":libs:application:application-impl")
runtimeOnly project(':components:configuration:configuration-read-service-impl')
runtimeOnly project(':components:uniqueness:uniqueness-checker-client-service-impl')
runtimeOnly project(':components:membership:membership-group-read-impl')
runtimeOnly project(':components:membership:membership-persistence-client-impl')
runtimeOnly project(':components:membership:group-policy-impl')
runtimeOnly project(':components:membership:locally-hosted-identities-service-impl')
runtimeOnly project(':components:uniqueness:uniqueness-checker-client-service-impl')
runtimeOnly project(':components:virtual-node:cpi-info-read-service-impl')
runtimeOnly project(':components:virtual-node:cpk-read-service-impl')
runtimeOnly project(':components:flow:flow-mapper-impl')
runtimeOnly project(':libs:application:application-impl')
runtimeOnly project(':libs:db:db-orm-impl')
runtimeOnly project(":libs:flows:external-event-responses-impl")
runtimeOnly project(":libs:flows:flow-api")
runtimeOnly project(":libs:flows:session-manager-impl")
runtimeOnly project(":libs:messaging:messaging-impl")
runtimeOnly project(':libs:flows:external-event-responses-impl')
runtimeOnly project(':libs:flows:flow-api')
runtimeOnly project(':libs:flows:session-manager-impl')
runtimeOnly project(':libs:messaging:messaging-impl')
runtimeOnly project(':libs:ledger:ledger-common-data')
runtimeOnly project(':libs:ledger:ledger-consensual-data')
runtimeOnly project(':libs:ledger:ledger-utxo-data')
runtimeOnly project(":libs:lifecycle:lifecycle-impl")
runtimeOnly project(":libs:sandbox-internal")
runtimeOnly project(":libs:schema-registry:schema-registry-impl")
runtimeOnly project(":libs:serialization:serialization-kryo")
runtimeOnly project(":libs:state-manager:state-manager-db-impl")
runtimeOnly project(':libs:lifecycle:lifecycle-impl')
runtimeOnly project(':libs:sandbox-internal')
runtimeOnly project(':libs:schema-registry:schema-registry-impl')
runtimeOnly project(':libs:serialization:serialization-kryo')
runtimeOnly project(':libs:state-manager:state-manager-db-impl')
runtimeOnly project(":libs:web:web-impl")

}

0 comments on commit 9516cbb

Please sign in to comment.