Commit Graph

10904 Commits

Author SHA1 Message Date
Stephen Compall
b84ce35982
@hidden does not take an argument (#15461) 2022-11-07 11:20:45 -05:00
Gary Verhaegen
46c0d39926
start 2.3.7 release process (#15454)
* start 2.3.7 release process

* include #15456
2022-11-07 16:14:37 +01:00
azure-pipelines[bot]
f935598069
bump canton to 20221104 (#15450)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-11-07 12:13:27 +00:00
azure-pipelines[bot]
05e564071c
update NOTICES file (#15452)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-11-07 12:43:45 +01:00
pbatko-da
3d83948cdb
[DPP-1144] Do not fail when benchtool-tests package is not found by Benchtool (#15455)
changelog_begin
changelog_end
2022-11-07 10:05:11 +00:00
Stephen Compall
2d2f645fdd
split JSON API production setup doc to separate documents (#15409)
* split JSON API production setup doc to separate documents

CHANGELOG_BEGIN
CHANGELOG_END

* remove json-api and production-setup TOCs

- properly placed in digital-asset/docs.daml.com#55

- suggested by @garyverhaegen-da; thanks
2022-11-04 15:33:11 -04:00
dylant-da
1f2c728113
Fix overeager tuple warning (#15418)
* Success!

* Remove dead / unnecessary code from debugging

* Remove unused `userWrittenTuple` helper

* Import `GHC.Types.magic` where necessary

* Test for example in issue #15338

* satisfy changelog check

CHANGELOG_BEGIN
CHANGELOG_END

* Remove fst/snd lint tests, which weren't correct/useful anyways

* Update DocTest to import GHC.Types where necessary

* Update desugar tests

* Fix daml repl to include GHC.Types import

* Add GHC.Types to the doctest

* style improvement: if cond then action else pure () -> when cond action

* Point to merged GHC
2022-11-04 17:16:34 +00:00
Chun Lok Ling
d7d3bc28d6
Module collision check on generated item only (#15440)
* do the module collision check on generated item only

* Revert "do the module collision check on generated item only"

This reverts commit a6a38425ab.

* added test for detectModuleCollisions

* added test to reproduce issue #15341

* Revert "Revert "do the module collision check on generated item only""

This reverts commit cd4c5a24fd.

* fix test case

* use `daml.lf.language.Reference.Module` instead

* add change log

CHANGELOG_BEGIN
Bug fix: Module name collision check performed on modules which is not to be generated #15340 #15341
CHANGELOG_END

* remove debug log

* Minor renaming

* refine name test case name

* add comment

* format

Co-authored-by: Fayi Femi-Balogun <fayimora.femibalogun@digitalasset.com>
2022-11-04 17:04:20 +00:00
pbatko-da
ba55d37467
[DPP-1141] Run VACUUM ANALYZE from Benchtool at the end of submission step (PG only) (#15385)
changelog_begin
changelog_end
2022-11-04 16:41:55 +01:00
Remy
f240917e94
[Speedy] Drop second argument of SResultFinal (#15429) 2022-11-04 14:20:21 +01:00
Stefano Baghino
5d6a0355a3
Specify that parties are allocated only if necessary (#15441)
Makes the behavior of `daml ledger allocate-parties` more explicit
2022-11-04 12:53:03 +00:00
tudor-da
ce464c2421
Precompute scala pb serialized size at creation [DPP-1301] (#15408)
* Precompute ScalaPB serializedSize for stream messages

changelog_begin
Introduces a gRPC streams optimization targeting complex protobuf payloads.
When enabled, it can allow up to 60-80% throughput increase for GetTransactions/GetTransactionTrees/GetActiveContracts.
The optimization is toggleable by an additional config parameter for the API server: `api-server.optimize-grpc-streams-throughput`
changelog_end

* Address Marton's review comment

* Update ledger/participant-integration-api/src/main/scala/platform/store/ScalaPbStreamingOptimizations.scala

Co-authored-by: mziolekda <marcin.ziolek@digitalasset.com>

* Rename to withPrecomputedSerializedSize

Co-authored-by: mziolekda <marcin.ziolek@digitalasset.com>
2022-11-04 10:31:15 +00:00
azure-pipelines[bot]
132211242d
bump canton to 20221103 (#15438)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-11-04 10:52:56 +01:00
nickchapman-da
c9db43f579
implement queryView for GrpcLedgerClient (#15406) 2022-11-03 17:41:07 +00:00
azure-pipelines[bot]
43fafb813e
rotate release duty after 2022-11-02 (#15415)
@ray-roestenburg-da is taking care of [testing](https://github.com/digital-asset/daml/blob/main/release/RELEASE.md) today's release, so they get pushed back to the end of the line.

Please do not merge this before the release is fully tested.

CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-11-03 18:31:59 +01:00
Remy
50ecf93ef1
[compatibility test] add sleep between canton start and script start (#15432)
Canton seams to be slower to start since 20221101
2022-11-03 17:30:02 +01:00
azure-pipelines[bot]
377e284dd0
bump canton to 20221102 (#15431)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-11-03 16:54:57 +01:00
pbatko-da
553674a850
[DPP-1144] Retrieving a Daml packageId from Ledger API server for Benchtool (#15400)
changelog_begin
changelog_end
2022-11-03 11:46:51 +01:00
atriantafyllos-da
d8f907b928
Added groupable class in GroupTag [DPP-1296]. (#15382)
CHANGELOG_BEGIN
CHANGELOG_END
2022-11-03 10:57:56 +01:00
Remy
ed9d9c7ae6
[Speedy] move submissionTime in OnLedger case class (#15427) 2022-11-02 23:36:33 +00:00
Remy
e23f0a5cde
Speedy Cosmetic cleanup (#15421)
* change trait to abstract class
* add missing override
* cleanup scope restrictions
* add missing final
* add missing extends Product with Serializable
2022-11-02 16:11:36 +00:00
Stefano Baghino
ccb299afce
Retire changelog entries mechanism (#15423)
* Retire changelog entries mechanism

It is no longer used these days, so it simply imposes unnecessary
work. If it ever becomes useful again, retrieving the relevant
scripts from history should be relatively easy.

* Remove references to `unreleased.sh`

* Re-add `unreleased.sh` for summarization -- feedback from @mziolekda`
2022-11-02 14:58:46 +00:00
Stefano Baghino
4957838e7b
Drop comments about 0.x when talking about upgrades (#15419)
The comments refer to 0.x and can be misleading for 2.x users
(since the default is not 1.8 anymore and have not been for a
long time at this point). Furthermore, I am also relatively
sure that 1.8 is not even an option at all for 2.x users.

changelog_begin
changelog_end
2022-11-02 09:58:52 -04:00
Gary Verhaegen
216f9f4775
gsg test: pin puppeteer (#15422)
Somehow our setup doesn't work with puppeteer 19+.

CHANGELOG_BEGIN
- GSG: Several TypeScript warnings have been fixed in the final "Testing
  Your Web App" section of the Getting Started Guide. The
  `create-daml-app` template includes an updated `config.ts` file, and the
  documentation page as been updated to pin the `puppeteer` version to a
  known-working one and tweak the `index.test.ts` file.
CHANGELOG_END
2022-11-02 14:46:01 +01:00
Remy
5a3a013b21
Speedy: cleanup SBUKeyBuiltin (#15420)
CHANGELOG_BEGIN
CHANGELOG_END
2022-11-02 13:35:59 +00:00
azure-pipelines[bot]
1b8193c922
update NOTICES file (#15417)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-11-02 12:01:17 +01:00
Moisés Ackerman
a33127599e
Add coerceInterfaceContractId : (...) => ContractId i -> ContractId j (#15405)
* Replace '1.dev only'=>'Daml-LF >= 1.15' in docs for interface functions

* Define coerceInterfaceContractId

* Test coerceInterfaceContractId in InterfaceContractDoesNotImplementInterface

* Test coerceInterfaceContractId in InterfaceConversions

* Add entry for coerceInterfaceContractId in interface reference docs

* update *.EXPECTED.desugared-daml files

changelog_begin
- [Daml Standard Library] Added function ``coerceInterfaceContractId``
changelog_end
2022-11-02 10:48:12 +00:00
azure-pipelines[bot]
3d8db7e646
bump canton to 20221101 (#15416)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-11-02 11:01:46 +01:00
fayi-da
33b637433d
Query store support for interface query/fetch (#15304)
* Update contracts table to allow multiple rows per contract id

* Keep template id for deletes

* add tpid grouping to deleteContracts

* chunking implementation

* mention tpid for postgres ON CONFLICT

* Remove ByInterfaceId special case

* add changelog

CHANGELOG_BEGIN
- [JSON API] The JSON API query store database has changed schema and
  needs to be reset. If you are migrating from a previous version,
  either reset your database manually or start the HTTP JSON API with
  one of the options that regenerate the schema (``create-only``,
  ``create-if-needed-and-start``, ``create-and-start``).
CHANGELOG_END

* add tpid to ignore_row_on_dupkey_index pragma

- came up in discussion with @ray-roestenburg-da; thanks

Co-authored-by: Stephen Compall <stephen.compall@daml.com>
2022-11-01 15:53:57 -04:00
Chun Lok Ling
b77a4552d1
Use typed acstransaction streams in quickstart java examples (#15363)
* Added new method using contractUtil instead of filter so that creation of filter is not necessary in IouMain.

* public fields instead of private fields with getters

* delete getContracts

* var

* move ContractUtil to java binding

* to String

* update doc

* address comments

* address comment

* add change log

CHANGELOG_BEGIN
change quickstart java example to use typed acs stream and transaction.
CHANGELOG_END

* rename to response

* format

* update line number
2022-11-01 19:22:12 +00:00
Nicu Reut
5f192c1839
Code clean-up for OpenTelemetry implementation [PLEN-29] (#15357) 2022-11-01 17:13:07 +00:00
Nicu Reut
7077a4dce1
Add global labels to the OpenTelemetry metrics implementation [PLEN-5] (#15407) 2022-11-01 15:28:53 +00:00
Stephen Compall
7ab367b0e3
call library functions instead of generating code (#15401)
* factor variant case handling to utility function

* factor record case handling to utility function

* remove unused import; reformat

* full internal api notes

CHANGELOG_BEGIN
CHANGELOG_END
2022-11-01 11:01:56 -04:00
Carl Pulley
b1e5caaf62
Trigger documentation for interfaces
CHANGELOG_BEGIN
CHANGELOG_END
2022-11-01 14:59:41 +00:00
nickchapman-da
d00665c764
use all parties for query functions (#15381) 2022-11-01 13:47:39 +00:00
Nicu Reut
c93b9a5c9d
Add the metrics context to the metric creation API [PLEN-5] (#15378) 2022-11-01 11:47:27 +00:00
Moisés Ackerman
ae4d7c681b
Move regression test for #14291 into compatibility tests (#15390)
* Extract helper _validate_dar in data_dependencies.bzl

* Generalize daml_script_test from daml_script.bzl

* Move regression test for #14291 into compatibility tests

changelog_begin
changelog_end

run-full-compat: true
2022-11-01 10:39:16 +01:00
Wallace Kelly
1ff7062bc6
Correct number of steps for creating new feature (#15387)
* Correct number of steps for creating new feature

* Add change log entry

changelog_begin
changelog_end
2022-10-31 17:27:35 +00:00
azure-pipelines[bot]
b7c636f0ab
bump canton to 20221028 (#15394)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-10-31 08:39:16 +01:00
Stefano Baghino
1b726fe841
Expand the reference for the TypeScript library (#15361)
* Expand the reference for the TypeScript library

The content is more or less there, I expanded some explanations and added a
reference to `create-daml-app`.

changelog_begin
changelog_end

* Fix link

* Update docs/source/app-dev/bindings-ts/index.rst

Co-authored-by: carrielaben-da <91496516+carrielaben-da@users.noreply.github.com>

* Update docs/source/app-dev/bindings-ts/index.rst

Co-authored-by: carrielaben-da <91496516+carrielaben-da@users.noreply.github.com>

* Update docs/source/app-dev/bindings-ts/index.rst

Co-authored-by: carrielaben-da <91496516+carrielaben-da@users.noreply.github.com>

Co-authored-by: Jennifer Whyte <42810081+jwhyte-da@users.noreply.github.com>
Co-authored-by: carrielaben-da <91496516+carrielaben-da@users.noreply.github.com>
2022-10-28 16:22:55 -04:00
nickchapman-da
a20ac183aa
handle view computations which fail in daml-script (#15384)
changelog_begin
changelog_end
2022-10-28 17:05:18 +01:00
azure-pipelines[bot]
a16fd640c2
update NOTICES file (#15375)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-10-28 14:56:03 +02:00
Carl Pulley
1b4a812d37
Use a TrieMap to manage pendingCommandIds in trigger runners
* Fixes #15376

CHANGELOG_BEGIN
CHANGELOG_END
2022-10-28 12:49:01 +01:00
nickchapman-da
70b29e1b63
simplify code (#15380)
changelog_begin
changelog_end
2022-10-28 11:22:09 +00:00
Remy
bd7e12809e
[LF] fix versioning of value w.r.t. interface (#15370)
CHANGELOG_BEGIN
CHANGELOG_END
2022-10-28 12:31:58 +02:00
tudor-da
4730eda113
Stream subscription delay in LedgerApiBenchTool (#15352)
changelog_begin
changelog_end
2022-10-28 10:22:57 +00:00
azure-pipelines[bot]
1cd590823e
bump canton to 20221027 (#15374)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-10-28 08:58:11 +02:00
nickchapman-da
d14e68dc53
[daml-script] queryView (#15286) 2022-10-27 14:06:25 +01:00
Stephen Compall
68e04a4e8b
getContractTypeId on Template and Contract (#15367)
* add getContractTypeId to Contract

* add getContractTypeId to Template

* generate getCompanion methods for every Template

* hide ContractId#getCompanion

* test getting from interface Contract

* test getting from template and template contract

* add changelog

CHANGELOG_BEGIN
- [Java codegen] Template payloads and contract instances (including for
  interface views) now support a ``getContractTypeId`` method that
  returns the template or interface ID.
CHANGELOG_END
2022-10-27 08:45:38 -04:00
Moisés Ackerman
d2f824fcc2
Fix DD test case 'Cross Daml-LF version with double data-dependency' (#15371)
The problem is that `damlcForTarget tools depLfVer` could return an older damlc
than needed for `targetLfVer`.

The reason this didn't fail before is that the legacy damlc supports up to
LF=1.14, and `lfVersionTestPairs` never had `depLfVer < 1.14 && targetLfVer > 1.14`

changelog_begin
changelog_end
2022-10-27 14:03:03 +02:00