Commit Graph

11019 Commits

Author SHA1 Message Date
azure-pipelines[bot]
36137e77c7
rotate release duty after 2022-11-23
CHANGELOG_BEGIN
CHANGELOG_END
2022-11-24 10:11:09 +00:00
mziolekda
9a12bb8b67
Add ability to override the service pool size [DPP-1306] (#15653)
* Add ability to override the service pool size

* don't set the value in the reference.conf
2022-11-24 11:09:54 +01:00
mziolekda
9cee266479
Move jwt library to libs-scala (#15674) 2022-11-24 11:08:56 +01:00
Sergey Kisel
adabba574f
Support of the transaction rollback in case of Either.Left (#15655) 2022-11-23 19:27:31 +00:00
fayi-da
448c184258
Remove overloaded methods in command client (#15519)
* Remove overloaded methods in CommandClient

* Remove overloaded methods in CommandClient

* Revert destructive changes to command client

* Add config for command client methods

* Add stubs for new submit methods in CommandClient

* Formatting

* create() should be static

* Add sample deprecation

* params on builder methods don't need to be optional. Add some javadoc notes

* Add tests for submitAndWait

* Add tests for submitAndWait

* Add implementation for submitAndWaitFor* methods

* Update tests

* Refactor CommandSubmissionClient

* Deprecate overloaded methods in CommandClient

* Update deprecated method use

* Lint

* Cleanup deprecated use

* Update required params

* CommandClientConfig -> CommandsBuilder

* Formatting

* Rename CommandsBuilder -> CommandsSubmission

* Delete deprecated tests

* Rename withParty(String) -> withActAs(String)

* Formatting

* Refactor SubmitRequest.java

* Refactor SubmitRequest.java

* Refactor SubmitAndWaitRequest and SubmitCommandsRequest

* Move CommandsSubmission to the java-bindings package and refactor dependencies accordingly

* todos for horrible casting

* Update language-support/java/bindings-rxjava/src/test/scala/com/daml/ledger/rxjava/grpc/CommandClientImplTest.scala

Co-authored-by: Stefano Baghino <43749967+stefanobaghino-da@users.noreply.github.com>

* make CommandsSubmission final

* e.t.c -> etc

* Remove use of singleton list for actAs

* Return unmodifiable lists in CommandsSubmission

* Cleanup SubmitCommandsRequest

* Formatting

* Update tests for SubmitCommandsRequest

* PR comments

* Use toCommands() in HasCommands

* Reorder constructor params

* Rename params and commandsSubmission -> submission

* Cleanup docs

* Update docs

* Update docs

* Cleanup test util

Co-authored-by: Stefano Baghino <43749967+stefanobaghino-da@users.noreply.github.com>
2022-11-23 16:10:06 +01:00
Brian Weir
cbebd8675b
Quickstart enhancement (#15651) 2022-11-23 15:53:18 +01:00
Carl Pulley
28fc3606ea
Trigger rule logging
* fixes #15489

CHANGELOG_BEGIN
CHANGELOG_END
2022-11-23 10:02:17 +00:00
nickchapman-da
18025794f2
use Jspon API "fetch" endpoint for daml-script queryInterfaceContractId (#15652) 2022-11-23 09:27:49 +00:00
Luc Bourlier
ffc31ce371
Tweak on HTTP metrics (#15641)
Alignment with the gRPC metrics.

CHANGELOG_BEGIN
CHANGELOG_END
2022-11-23 09:37:41 +01:00
azure-pipelines[bot]
1a86b8df49
bump canton to 20221122 (#15666)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-11-23 08:45:33 +01:00
mziolekda
eed43036e8
Fix non exhaustive matches in /ledger [DPP-1281] (#15608)
* Fix non exhaustive matches in /ledger

* eliminate the use of nowarn

* fixes post review
2022-11-22 19:18:06 +01:00
Sergey Kisel
0db050457d
Removed potentially unused classes (#15622) 2022-11-22 18:25:19 +01:00
Stephen Compall
375fcb4a47
use syntax that can report inequality failure in Java codegen test (#15643) 2022-11-22 17:03:46 +00:00
Remy
8358aab22c
[Ledger-API] Stricter version of the ValueValidate (#15650)
that does not strip trailling 0 when validating Numeric
2022-11-22 17:45:14 +01:00
dylant-da
ff6e776da0
Improve type error for Numeric types with precision > 37 and mistyped/missing field access (#15626)
* point to GHC with improved error

* Point to new GHC

* Fix error in RelTimeDetailsHidden1

* Point to updated ghc

* Point to new GHC

* Satisfy changelog check

CHANGELOG_BEGIN
CHANGELOG_END

* Fix assertion in RelTimeDetailsHidden1

* Amend tests with out-of-bounds NumericScale, point to updated GHC

* Drop quotes around type error

* Add tests for field access errors

* point to merged GHC
2022-11-22 15:44:25 +00:00
Stephen Compall
38079ea422
make packagePrefixes implicit in Java codegen (#15642)
* remove the package-prefix-free overload

* switch fullyQualifiedName, the basis, to a newtyped implicit

* remove unused packagePrefixes

* remove fullyQualifiedName indirection
2022-11-22 10:15:13 -05:00
Stephen Compall
51c3865701
use require for some argument checks instead of assert (#15646)
- suggested by @avdv in #15565; thanks
2022-11-22 10:13:59 -05:00
Stephen Compall
ba595c4ee7
remove unused mbSubst from TS codegen (#15644) 2022-11-22 10:13:26 -05:00
Luc Bourlier
3728919b66
Enables metrics for trigger-service [PLEN-13] (#15577)
* Adds the standard metrics to the HTTP endpoint

Refactors akka http metrics support to be used by both json-api and trigger-service

CHANGELOG_BEGIN

* Trigger Service - basic and HTTP endpoint metrics

CHANGELOG_END
2022-11-22 16:09:57 +01:00
Nicu Reut
0553f6866b
Add important points scaladoc for metrics [PLEN-49] (#15627) 2022-11-22 14:44:29 +01:00
Ratko Veprek
32b45966ad
Unified error category malicious or faulty with security alert (#15649)
Before this change, we had two error categories that were meant for the same purpose: malicious or faulty and security alert. Now, they have been merged together. As malicious or faulty was misunderstood and sometimes used instead of "SystemInternalAssumptionViolation", we've dropped that term.

Related to canton 10981
2022-11-22 14:05:06 +01:00
Nicu Reut
44a555b3a7
Add explicit buckets for payload size histograms [PLEN-45] (#15615) 2022-11-22 12:57:28 +00:00
dylant-da
ccde982df5
Error for implementing non-interfaces (#15435)
* point to updated GHC

* satisfy changelog

CHANGELOG_BEGIN
CHANGELOG_END

* Point to updated GHC

* Expect new interface view error message in ImplementsNonInterface

* Add test for trying to implement a non-interface

* Point to GHC with better error suppression, fix tests

* Remove unused TryImplementNonInterface

* point to rebased ghc

* point to forwarded GHC changes

* point to updated GHC

* Fix expected error in ImplementsNonInterface

* Point to merged commit
2022-11-22 11:07:21 +00:00
azure-pipelines[bot]
a2b76b49d2
bump canton to 20221121 (#15647)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-11-22 09:26:44 +01:00
Carl Pulley
4cc9ca00c2
Added in TriggerContext to carry logging contexts for trigger flows
CHANGELOG_BEGIN
CHANGELOG_END
2022-11-21 19:08:35 +00:00
Carl Pulley
7f973e4698
Logging of trigger in-flight command updates
CHANGELOG_BEGIN
CHANGELOG_END
2022-11-21 18:02:02 +00:00
Carl Pulley
7f425e3c5e
Basic infrastructure for using logging contexts
CHANGELOG_BEGIN
CHANGELOG_END
2022-11-21 16:14:49 +00:00
Jonas De Vuyst
514a757e57
Add DA.List.chunksOf function in Daml stdlib (#15618) 2022-11-21 16:09:34 +00:00
nickchapman-da
697aaf14da
[daml-script] interfaces over JSON API (#15460) 2022-11-21 15:18:41 +00:00
dylant-da
1f998f95e8
Add interfaces & interface choices to coverage report (#15563)
* extract interface info for coverage

* Remove commented out Summary monoid code

* DRY up identifier creator

* remove unused summarize usage

* Disambiguate template/interface identifiers & choices via Variety

* Redesign extractors & start printing reports

* Reformat, begin proper counting of implementation choices

* Fix filter for interface archives choices to exclude, not include

* Remove commented code in printTestCoverage

* Fix lint

* Add external report

* Add percentages to coverage report

* Complete `External interface choices` report section

* Forgot to extract sizes from implementationChoices

* Remove unused allExercisedImplementationChoices

* Improve pctage reporter

* Report uncovered templates/choices when getShowCoverage is True

* Flip getShowCoverage check

* Fix width of percentages in coverage report

* Update damlc tests for coverage report

* Fix filter & text for external interface implementations

* Remove unused / misused Variant, Report, and interfaceChoices extractor

* add section header to never created/exercised summaries
2022-11-21 13:27:39 +00:00
Carl Pulley
3627b62d00
Ensure high level triggers project their user state
CHANGELOG_BEGIN
CHANGELOG_END
2022-11-21 12:13:17 +00:00
matevarga-da
51ff569591
Match up JSON API logback date format (#15621)
I think it is reasonable to match all our default date log format across our components. The conversion is simple enough, but I did it at least 10 times just in the past 2 weeks.
2022-11-21 13:02:06 +01:00
mziolekda
9f0affea4a
fix Xlint:eta-zero warnings (#15607) 2022-11-21 11:45:46 +01:00
Carl Pulley
8c704407c1
Fixes for trigger logback.xml config
CHANGELOG_BEGIN
CHANGELOG_END
2022-11-21 10:06:47 +00:00
azure-pipelines[bot]
b6af643f7d
bump canton to 20221118 (#15632)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-11-21 10:38:49 +01:00
Moisés Ackerman
c15617e87d
Fix view in view method definition (#15595)
* Update GHC_REV

* Update *.EXPECTED.desugared-daml

* Add regression test for #15459

* Method-in-method test now checks runtime behavior
2022-11-21 09:34:51 +00:00
Sergey Kisel
218a6a8ae7
Fix cached user management tests to take into account cached implementation (#15633) 2022-11-20 11:36:56 +01:00
azure-pipelines[bot]
3c064572ae
bump canton to 20221117 (#15631)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-11-18 16:47:46 +01:00
Remy
bef0f15d70
[LF] make qualified choice name a LF concept (#15599) 2022-11-17 22:44:18 +00:00
Remy
3dee676cbb
[LF] making LF 1.15 stable (#15614) 2022-11-17 23:30:11 +01:00
davidrichards-da
7c19a058d3
Adding the Python bindings to the docs (#15601)
* Adding the Python bindings to the docs

Adding support for the Python bindings to the docs.
Adding a page on the Python bindings.
Adding references to them where appropriate.

* Update docs/source/app-dev/bindings-python.rst

Co-authored-by: katmurp <117752519+katmurp@users.noreply.github.com>

* Adding the phrase "(formerly known as DAZL)"

Adding the phrase "(formerly known as DAZL)" when the Python bindings are referenced for the first time on a page.

* Adding the python bindings into the TOC

Adding the python bindings into the TOC in the building applications section below Java Bindings and above Daml Script .

Co-authored-by: katmurp <117752519+katmurp@users.noreply.github.com>
2022-11-17 20:53:25 +00:00
azure-pipelines[bot]
fa50da0368
update NOTICES file (#15625)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-11-17 20:05:46 +01:00
azure-pipelines[bot]
99082e4788
update NOTICES file (#15606)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-11-17 18:22:57 +01:00
azure-pipelines[bot]
c1ffefaaed
bump canton to 20221116 (#15605)
Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
Co-authored-by: Remy Haemmerle <Remy.Haemmerle@daml.com>
2022-11-17 15:05:11 +00:00
Moisés Ackerman
f27808c8d3
Ensure git tags are fetched in job 'compatibility_stable_protobuf' (#15613)
Done by setting 'fetchTags: true' in the 'checkout' step before running the bash script
2022-11-17 15:58:49 +01:00
Nicu Reut
525831c4db
Fix flaky gRPC server metrics test (#15612) 2022-11-17 15:12:08 +01:00
Matthias Schmalz
96350ecf4f
Mentioned useful import in scaladoc of SecurityTestSuite. (#15611)
CHANGELOG_BEGIN
CHANGELOG_END
2022-11-17 13:27:31 +01:00
Oliver Seeliger
936594f523
Deduplication flake: allow inflight-request error (#15609)
In rare situations a canton participant returns a SUBMISSION_ALREADY_IN_FLIGHT
error instead of DUPLICATE_COMMAND due to a possible race condition between
publishing the TransactionAccepted read service update and updating internal
in-flight transactions. Particularly in Oracle runs this can result in a
subsequence "duplicate" command to still be considered in-flight.

Extended the tests to also accept the "in-flight" error code.

Changelog_begin
Changelog_end
2022-11-17 11:13:51 +01:00
Nicu Reut
253150e6e2
Change OpenTelemetry timer unit to seconds [PLEN-44] (#15585) 2022-11-17 09:52:24 +00:00
azure-pipelines[bot]
b2cb3464d9
rotate release duty after 2022-11-16 (#15593)
@basvangijzel-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-16 17:51:59 +01:00