Commit Graph

3049 Commits

Author SHA1 Message Date
Samuel Williams
537447d92c
Json Api tests to canton (#16782)
Co-authored-by: Remy <remy.haemmerle@daml.com>
2023-05-10 16:01:39 +01:00
Remy
90c023e98e
Migrate LedgerClient test from to Canton (#16795) 2023-05-10 11:16:40 +02:00
nickchapman-da
5a7451bdf4
[engine] choice authority: clarify remaining things to do (#16752) 2023-04-27 18:30:32 +00:00
nickchapman-da
8ad44f5fbc
kill Node.Authority with fire (#16524) 2023-04-18 14:16:44 +01:00
nickchapman-da
1c4d9c2882
[engine] speedy evaluation for choice authority (#16658)
* Push choice authority through speedy evaluation

fix tests for choice-authorizers limits config

make calls to NeedAuthority as required from speedy begin-exerise builtin; and test

prepare for no authorizers check

* authorization check for NoAuthorizers
2023-04-17 08:28:26 +01:00
nickchapman-da
859d69b1a5
[engine] make authorizers field explicit in Node.Exercise (#16541)
* make authorizers field explicit in TX Node.Exercise

* use Option for exe-node choiceAuthorizers field, to be explicit about when old/default behaviour occurs
2023-04-06 13:05:44 +01:00
Brian Healey
b80dca2dd8
identity provider id awareness for party and user management apis through ledger client (#16632)
* identity provider id awareness for party and user management apis through ledger client

* none case for ObjectMetadata translation
2023-03-30 18:26:53 +00:00
mziolekda
bba520dc57
Fix updating of the audience field in IDP (#16630) 2023-03-30 10:52:32 +00:00
Brian Healey
6c874e8bd2
Add identity provider config to ledger client (#16625)
* IdentityProviderConfigService through ledger client: create config

* IdentityProviderConfigService through ledger client: get config

* IdentityProviderConfigService through ledger client: list configs

* IdentityProviderConfigService through ledger client: delete config
2023-03-30 09:47:05 +02:00
Brian Healey
6a3a7a84a4
implement updateUser in ledger client (#16589)
* implement updateUser in ledger client

* Use unique parties for updateUser trigger test

* scalafmt
2023-03-23 00:12:54 +00:00
Carl Pulley
9c7fc37438
Testing bug fix: ensure package ID is only calculated once per Dar file load (#16582) 2023-03-21 13:32:45 +00:00
Nicu Reut
209e6ec947
Deprecate non-labeled metrics factories [PLEN-183] (#16441) 2023-03-15 11:09:16 +01:00
atriantafyllos-da
e58ea28601
Upgraded circe-yaml to 15.0-RC1. [#16412]. (#16415) 2023-03-13 14:51:43 +01:00
Remy
e6faddb750
Kill com.daml.lf.data.LawlessTraversals (#16516) 2023-03-10 13:34:14 +00:00
mziolekda
c528aaeb12
remove the obsolete sandbox perf (#16450) 2023-03-02 17:33:09 +00:00
mziolekda
aebec01884
move ledger-api-test-tool out of ledger (#16445)
* move ledger-api-test-tool out of ledger

* fix canton test tool
2023-03-02 17:04:45 +00:00
Nicu Reut
7246a21520
Use labeled metrics for the CacheMetrics [PLEN-163][PLEN-167] (#16406) 2023-03-02 11:55:37 +01:00
mziolekda
d8d55ca412
upgrade to scala 2.13.10 (#16423)
* update build system to scala 2.13.10

* fix failing scala files

* format

* fix compatibility

* resolve conflict on maven_install_2.13.json
2023-02-28 23:21:53 +00:00
Nicu Reut
196d0b5f75
Add ability to document async gauges [PLEN-176] (#16402) 2023-02-28 14:38:15 +00:00
Nicu Reut
7e87912cd5
Add ability to configure histograms through the config files [PLEN-159] (#16387) 2023-02-28 10:50:26 +00:00
Nicu Reut
80d5425a88
Migrate DatabaseMetrics to use a labeled metrics factory [PLEN-164] (#16396) 2023-02-28 07:15:45 +00:00
nickchapman-da
fd75c5ece1
[engine] construct ResultNeedAuthority (#16390) 2023-02-27 15:13:30 +00:00
Sergey Kisel
b33d635beb
Customizable JWT audiences (#16330) 2023-02-27 16:05:38 +01:00
Remy
ec147a8263
[Engine] Check disclosed contract key during preprocessing (#16320) 2023-02-22 21:36:12 +01:00
nickchapman-da
a50d99eeb2
[engine] new Result type: ResultNeedAuthority (#16347) 2023-02-20 15:16:53 +00:00
Nicu Reut
8708120ea8
Remove legacy gRPC metrics [PLEN-104] (#16339) 2023-02-20 13:23:52 +01:00
Remy
12c240e06e
[Speedy] do not need disclosed contract at Machine creation time (#16302)
This PR make several (small) changes on how the disclosed contract are
handle by the speedy machine.

(1) disclosed contract at not anymore pass a builtin time. They were
any pass latter using `SBCacheDisclosedContract`.

(2) disclosed contracts are first keep in their own cache,
disclosedContracts: Map[V.ContractId, CachedContract]. They are moved
to the cached for used contract only if used.  In fact we need to be
sure the used disclosed contracts pass through the
Speedy#addGlobalContract to verify the transaction limits are not
overpassed.
2023-02-17 22:59:41 +00:00
Nicu Reut
af4445253f
Instrument the executor services using OpenTelemetry [PLEN-105] (#16328) 2023-02-17 18:14:57 +01:00
Marton Nagy
59bc473b43
Fix transaction_meta handlin (#16325)
* Fixes maxEventSequentialId by using queryStrategy compatible with ledger-begin conditions (+ unit test)
* Fixes ETQ data migration so no transaction_meta entries left before the pruning offset (+ migration test)

[CHANGELOG_BEGIN]
[CHANGELOG_END]
2023-02-16 09:07:45 +01:00
Simon Maxen
6f96aa5e0b
Event query service [DPP-1366] (#16273)
* Add EventQueryService (conformance disabled)

* Update with review comments

* Limit by ledger end

* Limit iterations searching for visible contract key

* Test with choice that recreates key

* Update proto comments

* Add to event query service to services document

* Inject message into token validator

* Fix docs typo

* Improve docs
2023-02-15 17:01:14 +01:00
mziolekda
1a3980bf89
Separate test-common from the rest of the ledger code (#16307)
* move files

* format

* wrong file

* fix conformance tests

* add readme

* fix compatibility tests

* fix haskell tests
2023-02-14 15:29:13 +00:00
Nicu Reut
a50379179e
Add label support to the metrics tag [PLEN-102] (#16309) 2023-02-14 10:40:10 +01:00
Remy
9073e6d09c
[Engine] Add cooperative interruption (#16175)
build on top of #16129
2023-02-14 08:38:46 +00:00
Nicu Reut
c74d950912
Parse multi-value audiences for the JWT tokens [PLEN-138] (#16281) 2023-02-13 13:44:39 +01:00
Marton Nagy
ae8a232f8f
ETQ - Cleanup transaction_meta handling (#16268)
Before this PR the transaction_meta table could have entries
before or at the pruned-upto-offset.
This PR removes the need for keeping those entries, and simplifies
handling and meaning of transaction_meta data.

* Switches transaction_meta pruning to prune everything before pruning offset
* Flips maxEventSequentialIdOfAnObservableEvent implementation to minimum of strictly bigger meta - 1 (plus unit tests)
* Removes dead code, simplifies EventRange lookup and DTO
* Adds pruning SQL migration to remove all entries
* Removes the need of join to parameters table for pointwise queries

[CHANGELOG_BEGIN]
[CHANGELOG_END]
2023-02-13 10:52:02 +01:00
Nicu Reut
67754f65ad
Reword indexed updates metrics (#16277) 2023-02-13 09:27:10 +00:00
mziolekda
d9974984fd
Remove circular dependency on the //ledger project caused by ledger-resources [DPP-1410] (#16295)
* remove circular dependency on the //ledger project caused by ledger-resources

* format
2023-02-13 08:38:44 +00:00
pbatko-da
262d692759
Remove ledger dependency on script (#16292) 2023-02-10 15:22:00 +00:00
Remy
df43a69020
[LF] Refactor ProcessedDisclosedContract (#16227)
- move it to com.daml.lf.transaction as it is an output
- include create node
2023-02-10 15:11:22 +01:00
nickchapman-da
196cc4718e
[engine] create TX authority nodes from PTX (#16270) 2023-02-09 17:56:28 +00:00
mziolekda
9b81120631
remove dependency on ledger/errors from ledger-api (#16263) 2023-02-09 17:26:55 +01:00
Nicu Reut
50701da79b
Use OpenTelemetry metrics for the non-repudiation modules [PLEN-106] (#16271) 2023-02-09 15:20:19 +00:00
mziolekda
f8af22e852
fix circular dependency between ledger and ledger-service (#16262) 2023-02-09 14:58:20 +01:00
tudor-da
e5b7ab6066
Add GetLatestPrunedOffsets to TransactionService [DPP-1394] (#16186)
* Add GetLatestPrunedOffsets to TransactionService

* Add compatibility test exclusion

* Add GetLatestPrunedOffsetsAuthIT test

* Address Pawel's review comments

* Addressed review comments

* Add exclusion for the new test for conformance tests in Canton

* WIP
2023-02-09 13:05:57 +00:00
pbatko-da
13f5d3e7a4
[DPP-1395] Expand pruning backend tests (#16257) 2023-02-08 16:20:56 +01:00
Remy
a75db47275
[LF] factorize GlobalKeyWithMaintainers and KeyWithMaintainers (#16251) 2023-02-08 13:58:43 +01:00
Nicu Reut
496e6d57ee
Use OpenTelemetry metrics for the ledger-api-bench-tool [PLEN-100] (#16240) 2023-02-08 13:07:47 +01:00
mziolekda
6501782dea
Reenable IDP canton tests (#16252) 2023-02-07 19:31:37 +01:00
Nicu Reut
20f1227d5c
Remove latest offset gauge [PLEN-103] (#16247) 2023-02-07 10:08:02 +01:00
pbatko-da
391ba32201
[DPP-1395] Adding pruning benchmarking capability to the benchtool + non-transient contracts (#16201)
Changes:
1. Add support for defining pruning benchmarks.
Currently the new top-level `unary` section allow defining only a single `pruning` section.
Declaring both top sections `unary` and `streams` in a single workflow config is unsupported.
```
unary:
  - type: pruning
    name: pruning-or-101
    max_duration_objective: 600s
    prune_all_divulged_contracts: false
```

2. Add support for optionally submitting non-transient contracts.
```
submission:
  ...
  allow_non_transient_contracts: true
```
2023-02-07 08:40:56 +01:00