-
Notifications
You must be signed in to change notification settings - Fork 205
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
Aligning DB contract table with domain.ActiveContract class #3989
Conversation
@@ -111,13 +111,21 @@ private class ContractsFetch( | |||
for { | |||
ac <- domain.ActiveContract fromLedgerApi ce leftMap (de => | |||
new IllegalArgumentException(s"contract ${ce.contractId}: ${de.shows}")) | |||
lfKey <- ac.key.cata( |
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.
lfKey <- ac.key.cata( | |
lfKey <- ac.key traverse apiValueToLfValue leftMap (_.cause) |
@@ -34,6 +34,7 @@ da_scala_library( | |||
"@maven//:org_scalaz_scalaz_core_2_12", | |||
"@maven//:org_tpolecat_doobie_core_2_12", | |||
"@maven//:org_tpolecat_doobie_free_2_12", | |||
"@maven//:org_tpolecat_doobie_postgres_2_12", |
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.
"@maven//:org_tpolecat_doobie_postgres_2_12", |
Use the same technique used for insertContracts
: take Get[Array[String]]
as an implicit argument to selectContracts
.
adding key,signatories, observers and agreement_text to DB contract table removing witnessParties Reading signatories and observers from contracts table Updating doc, removing witnessParties Address code review comments, thanks @S11001001 CHANGELOG_BEGIN [JSON API - Experimental] - Align ``contract`` table with ``domain.ActiveContract`` class. The database schema has changed, if using ``--query-store-jdbc-config``, you must rebuild the database by adding ``,createSchema=true``. See #3754. - ``witnessParties`` field is removed from all JSON responses. CHANGELOG_END
a6dc267
to
29bcb3e
Compare
remove witnessParties and workflowId fields. workflowId has be removed from JSON output a while ago.
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 changes to the APIs look good to me. Thank you very much.
Closes: #3754
Pull Request Checklist
CHANGELOG_BEGIN
andCHANGELOG_END
tagsNOTE: CI is not automatically run on non-members pull-requests for security
reasons. The reviewer will have to comment with
/AzurePipelines run
totrigger the build.