Commit Graph

9113 Commits

Author SHA1 Message Date
Moritz Kiefer
4055df09b4
Bump canton (#12707)
This bumps Canton to the latest snapshot which includes the Windows fixes.

changelog_begin
changelog_end
2022-02-02 10:19:02 +01:00
azure-pipelines[bot]
725080541d
update NOTICES file (#12705)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines DAML Build <support@digitalasset.com>
2022-02-02 09:06:56 +01:00
tudor-da
5390505627
Remove participant-side command deduplication [DPP-848] (#12677)
* Remove participant-side command deduplication

changelog_begin
changelog_end

* Addressed review comments
2022-02-01 20:50:25 +00:00
Gary Verhaegen
85f269004c
split release (#12700)
I want to try a complete release through the split process. We might as
well use a recent commit.

CHANGELOG_BEGIN
CHANGELOG_END
2022-02-01 20:55:40 +01:00
Remy
ed1bf2469a
LF: Check activeness of cached contracts inside FetchInterface (#12698)
Missed in #12527.

CHANGELOG_BEGIN
CHANGELOG_END
2022-02-01 19:06:40 +00:00
Remy
aa2494f11a
Speedy: check contract type after checking if they are consumed (#12691)
Missed in #12527.

CHANGELOG_BEGIN
CHANGELOG_END
2022-02-01 15:36:40 +00:00
Remy
183f936def
LF: Imporve safety of the Serialization of proto message. (#12686)
This is a follow up of #12638, applied to LF support for KV.

CHANGELOG_BEGIN
CHANGELOG_END
2022-02-01 15:45:17 +01:00
davidrichards-da
b4ed15bab7
Changed product names in the documentation (#12668)
* Changes to product names

CHANGELOG_BEGIN
CHANGELOG_END

Terminology changes made:
- Removing reference to 'Connect'
- Changing the product names

* Update docs/source/support/overview.rst

Co-authored-by: Moritz Kiefer <moritz.kiefer@purelyfunctional.org>

* Update docs/source/getting-started/installation.rst

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

* Update docs/source/ops/connect/auth0.rst

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

* Update docs/source/ops/connect/auth0.rst

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

* Update docs/source/ops/connect/helm.rst

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

* Update docs/source/ops/connect/helm.rst

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

* Update docs/source/ops/connect/index.rst

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

* Update docs/source/support/compatibility.rst

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

* Update docs/source/support/compatibility.rst

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

* Update docs/source/tools/trigger-service/auth0_example.rst

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

Co-authored-by: Moritz Kiefer <moritz.kiefer@purelyfunctional.org>
Co-authored-by: Stefano Baghino <43749967+stefanobaghino-da@users.noreply.github.com>
2022-02-01 15:15:12 +01:00
Moritz Kiefer
5caaf1f4c3
Switch github urls from zip to tar.gz (#12692)
* Switch github urls from zip to tar.gz

It looks like github started packing zips slightly differently
breaking all hashes. This PR switches everything over to tar.gz which
hopefully works.

changelog_begin
changelog_end

* .

changelog_begin
changelog_end
2022-02-01 12:39:42 +00:00
Simon Maxen
6cdda6fbf7
Metering report [DPP-817] (#12604)
With experimental support for non-aggregated metering reporting

changelog_begin
with experimental support for non-aggregated metering reporting
changelog_end
2022-02-01 10:38:04 +00:00
tudor-da
716cc22ac9
Deduplication offset period errors handled in Sandbox-on-X [DPP-872] (#12652)
* Deduplication offset period errors handled in Sandbox-on-X
* InternalUnsupportedOperation error category

changelog_begin
changelog_end

* Apply suggestions from code review

Co-authored-by: Simon Meier <meiersi-da@users.noreply.github.com>

* Addressed review comments

* Apply suggestions from code review

Co-authored-by: Simon Meier <meiersi-da@users.noreply.github.com>

Co-authored-by: Simon Meier <meiersi-da@users.noreply.github.com>
2022-02-01 10:32:38 +00:00
Moisés Ackerman
e4764cc426
Upgrade to GHC 9.0.2 (#12300)
changelog_begin
changelog_end

Co-authored-by: Moritz Kiefer <moritz.kiefer@purelyfunctional.org>
2022-02-01 11:27:11 +01:00
Moritz Kiefer
1238e1b66b
Update profiling documentation to Canton sandbox (#12680)
changelog_begin
changelog_end
2022-02-01 10:00:53 +01:00
Moritz Kiefer
f1c7e9ed9a
Drop daml ledger navigator in favor of daml navigator (#12669)
fixes #11323

changelog_begin
changelog_end
2022-02-01 09:50:00 +01:00
Moritz Kiefer
773132481a
Drop profile-dir validation for sandbox-kv (#12671)
Given that we’re killing that in 2.0 it doesn’t make sense to keep
this. I’ll create an issue on the assembly repo to add corresponding
tests for the Sandbox tests.

changelog_begin
changelog_end
2022-02-01 09:49:41 +01:00
Stephen Compall
1fa095a327
match Foldable.foldl1's argument order to DA.List.foldl1's order (#12685)
List.foldl1 uses the first argument as the accumulator, whereas
Foldable.foldl1 uses the second argument.  I believe the latter is an
oversight (though the documentation doesn't suggest one way or the
other), so swap them here.

As discovered and reported by @gyorgybalazsi on the Daml Forum:
https://discuss.daml.com/t/in-daml-foldl1-works-differently-from-haskell-is-this-intentional/3819

CHANGELOG_BEGIN
- [Daml Standard Library] An argument order in the default
  implementation of ``Foldable.foldl1`` was reversed from that of
  ``DA.List.foldl1``; this incompatibly changes the former to match the
  latter.
CHANGELOG_END
2022-02-01 08:05:30 +00:00
azure-pipelines[bot]
06b63e980f
update NOTICES file (#12688)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines DAML Build <support@digitalasset.com>
2022-02-01 07:06:22 +00:00
Remy
2ac76fd4fe
LF: Gracefully handle serialization error of Values beyond 2GB (#12638)
fixes #12392

CHANGELOG_BEGIN
CHANGELOG_END
2022-01-31 21:10:27 +00:00
Moritz Kiefer
0494731928
Adjust response type for script JSON API user mgmt requests (#12683)
This broke due to concurrent merges of #12646 and #12578

changelog_begin
changelog_end
2022-01-31 19:17:00 +00:00
Hubert Slojewski
7aabc492a9
Update OpenTelemetry from 0.16.0 to 1.1.0 [KVL-1256] (#12568)
CHANGELOG_BEGIN
CHANGELOG_END
2022-01-31 18:30:29 +01:00
tudor-da
117c9202cd
Bump sandbox-on-x-it-tests size (#12681)
changelog_begin
changelog_end
2022-01-31 17:12:12 +00:00
Victor Peter Rouven Müller
100c59fc24
[JSON-API] Docs for user management endpoints (#12432)
* Update user-endpoint docs to newest implementation changes

* Add the missing star!

Co-authored-by: Gary Verhaegen <gary.verhaegen@digitalasset.com>

* More stars!

Co-authored-by: Gary Verhaegen <gary.verhaegen@digitalasset.com>

* Remove reference and shorten endpoint descriptions

* Use the right rule for capitalizing in titles

* Update docs/source/json-api/index.rst

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

* Use user ID instead of user id

changelog_begin

- [HTTP-JSON] Added documentation for the new user management endpoints

changelog_end

* Apply suggestions from code review

Co-authored-by: Simon Meier <meiersi-da@users.noreply.github.com>

* Update docs for endpoint adjustments & address review comments

* Fix build error

Co-authored-by: Gary Verhaegen <gary.verhaegen@digitalasset.com>
Co-authored-by: Stefano Baghino <43749967+stefanobaghino-da@users.noreply.github.com>
Co-authored-by: Simon Meier <meiersi-da@users.noreply.github.com>
2022-01-31 18:05:21 +01:00
tudor-da
92938d5e76
Moved com.daml.platform.sandbox to com.daml.ledger.sandbox in SoX (#12675)
* Moved com.daml.platform.sandbox to com.daml.ledger.sandbox in SoX

changelog_begin
changelog_end

* Reordered imports
2022-01-31 17:04:58 +00:00
Victor Peter Rouven Müller
8d5d3bdf2f
[JSON-API] User management endpoint adjustments (#12578)
* Return an empty object for deleteUser & createUser

* Make the field rights for creating a user optional & fix the tests

changelog_begin

- [HTTP-JSON] Adjusted the response for the createUser & deleteUser endpoint to an empty object instead of "true". This was done to allow possible future extensions to the return type without applying breaking changes.
- [HTTP-JSON] Made the field rights optional for the request body of the createUser endpoint. Now it is possible to create a user with just the userId (i.e. { "userId": "nice.user" }).

changelog_end
2022-01-31 18:04:42 +01:00
nickchapman-da
54c427f849
Expose documentation for user-management functions in daml-script. (#12674)
changelog_begin
changelog_end
2022-01-31 17:01:22 +00:00
nicu-da
c1afabe653
[participant-state] Add earliest_offset metadata to pruned data error [kvl-1270] (#12546) 2022-01-31 16:54:24 +00:00
Brian Healey
ef18bf4219
DEV all caps needed to exclude dev dependencies (#12679) 2022-01-31 16:39:51 +00:00
nickchapman-da
3d3d84fa6f
User management in daml-script over json API (#12646)
* WIP

changelog_begin
changelog_end

* small cleanup

* use symbolic names for status codes instead of 404/409

* improve recover methods to have them wrap the success case with Some
2022-01-31 15:28:10 +00:00
nicu-da
182edde951
[compatiblity tests] Limit the exclusion to versions that have the CommandDeduplication:Participant* tests (#12660) 2022-01-31 07:20:38 -08:00
Gary Verhaegen
f08dfa3264
Bump terraform (#12670)
We've been using an old version of Terraform for a long time now. The
main blocker used to be that there was no post-0.12 version of `secret`,
but that has now been resolved: there's a new fork, with new maintainers
(blessed by the original one and accepted by the Terraform registry)
[here].

I'll be upgrading one version at a time as 0.x versions are considered
major (and thus potentially breaking).

[here]: https://github.com/numtide/terraform-provider-secret

See https://github.com/digital-asset/daml/pull/12670 for details.

CHANGELOG_BEGIN
CHANGELOG_END
2022-01-31 15:46:59 +01:00
Moisés Ackerman
366cd897fc
Add new interface serializability tests (#12666)
changelog_begin
changelog_end
2022-01-31 14:31:29 +01:00
Moritz Kiefer
84cec38456
Upgrade ghc-lib (#12664)
* Upgrade ghc-lib

Bumping to include https://github.com/digital-asset/ghc/pull/96

changelog_begin
changelog_end

* .

changelog_begin
changelog_end
2022-01-31 13:29:34 +00:00
Moritz Kiefer
d215a010fd
Enable user management for the Canton sandbox (#12667)
changelog_begin
changelog_end
2022-01-31 12:27:29 +00:00
tudor-da
bb5722cd1b
Move sandbox-classic test lib and IT tests to Sandbox-on-x (#12641)
* Moved SandboxFixture and IT tests to Sandbox-on-X

changelog_begin
changelog_end

* Addressed review comments
2022-01-31 12:49:46 +01:00
azure-pipelines[bot]
c9a65d126b
update NOTICES file (#12659)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines DAML Build <support@digitalasset.com>
2022-01-31 12:38:23 +01:00
Gary Verhaegen
1fa7f61bb0
ci: pin workdirs on Windows (#12645)
The Bazel cache on Windows includes absolute paths. The normal process
for Azure is to dynamically allocate new top-level folders for each new
bbuild that runs on a given machine. The result of that is that we get
about a one in three chance to get caching for any single Windows build
(it's actually not _quite_ that because we don't run different builds an
equal number of times).

This PR is an attempt at pinning the folder to job mapping by mucking
around in [Azure internals], which may or may not have bad consequences
down the line, assuming it works at all.

[Azure internals]: https://github.com/microsoft/azure-pipelines-agent/blob/master/docs/jobdirectories.md

CHANGELOG_BEGIN
CHANGELOG_END
2022-01-31 10:20:12 +00:00
Sofia Faro
dcbb398cae
Typecheck experimental primitives in damlc (#12650)
Adds a check that experimental primitive is defined in damlc, before you can use it.

This is only for the Haskell side, and only intended so we can catch bugs in the compiler more easily. (It would have caught the bug where `observer` wasn't defined correctly in LFConversion.)

I also removed RESOLVE_VIRTUAL_CREATE since we're not using it anywhere, it has been superseded by UCreateInterface.

changelog_begin
changelog_end
2022-01-31 09:33:34 +00:00
Moritz Kiefer
0d5443f8de
Drop direct dependencies on system-filepath (#12658)
That package has been deprecated for years and we don’t even use
it. The deps are just redundant.

changelog_begin
changelog_end
2022-01-31 10:04:07 +01:00
Kamil Bozek
49f37b8e67
Allow defining ledger-begin and ledger-end offset conditions in ledger-api-bench-tool [DPP-836] (#12521)
* Allow defining ledger-begin and ledger-end offset conditions for transactions and transaction-trees streams in ledger-api-bench-tool

CHANGELOG_BEGIN
- [Integration Kit] - ledger-api-bench-tool allow to define ledger-begin and ledger-end offset boundaries for streams.
CHANGELOG_END

* Print ledger-api-bench-tool config in black&white to avoid colouring special characters printed

* Reduce duplication

* Add more unit tests for offset
2022-01-31 10:04:02 +01:00
Moisés Ackerman
f1560ce646
Support implements qualified interfaces (#12644)
changelog_begin
changelog_end
2022-01-31 09:55:57 +01:00
Stefano Baghino
20836b1622
Address CVE-2022-0355 alert, resolve simple-get to 4.0.1 (#12655)
changelog_begin
changelog_end
2022-01-30 23:17:04 +01:00
Sofia Faro
49e664606c
Clean up unstable-types test (#12648)
LF 1.6 isn't one of our compiler outputs anymore, so we don't need to special case it in the test.

changelog_begin
changelog_end
2022-01-28 16:15:21 +00:00
pbatko-da
214951e9c1
Fix log string interpolation in AkkaExecutionSequencer (#12647)
CHANGELOG_BEGIN
CHANGELOG_END
2022-01-28 16:45:04 +01:00
pbatko-da
c72c27c967
[User management] Terminate ongoing streams when user state has changed [DPP-830] (#12437)
CHANGELOG_BEGIN
Ledger API Specification: When using user management based authorization streams will now get aborted on authenticated user's rights change.
CHANGELOG_END
2022-01-28 16:44:39 +01:00
Remy
35eae895e4
Compiler: expose LF builtin ExerciseByKey (#12615)
With this change, Daml exerciseByKey use the LF primitive
ExerciseByKey instead of the combinason of FetchByKey + Exercise.

CHANGELOG_BEGIN
CHANGELOG_END
2022-01-28 16:29:16 +01:00
Sofia Faro
dfdb7cef40
Remove DA.Generics (#12634)
* Remove DA.Generics

changelog_begin
- [Daml Standard Library] The DA.Generics module has been removed.
changelog_end

* update unstable-types test
2022-01-28 14:55:25 +00:00
azure-pipelines[bot]
14f43e4f6d
update NOTICES file (#12642)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines DAML Build <support@digitalasset.com>
2022-01-28 09:10:26 -05:00
tudor-da
cfa8d30491
[Sandbox-on-X] Ledger-side in-memory command deduplication [DPP-872] (#12596)
* [Sandbox-on-X] Ledger-side in-memory command deduplication

changelog_begin
changelog_end

* Enirched SequenceSpec test

* Participant-side deduplication compatibility tests exclusions

* Fix LedgerConfigurationServiceIT

* Disable command deduplication tests for SoX without conflict checking

* Remove redundant max-dedup-seconds bridge config

* Default max deduplication time 5 minutes

* Deduplication queue length metrics

* Add back removed ledger config test in SequenceSpec
2022-01-28 11:42:25 +00:00
Moisés Ackerman
7567cf50aa
Add scala serializability checks for interfaces (#12631)
* interfaces should not be implicitly serializable

* Add scala serializability check for interface choices

* Add scala serializability check for interface payloads

changelog_begin
changelog_end
2022-01-28 09:44:02 +01:00
Moritz Kiefer
39a421eaf4
Drop unused silencer variable (#12640)
changelog_begin
changelog_end
2022-01-28 08:17:16 +01:00