Commit Graph

10556 Commits

Author SHA1 Message Date
fayi-da
75a5887721
Update documentation images for navigator (#14942)
* Update documentation images for navigator

CHANGELOG_BEGIN
- [DOCUMENTATION] Update navigator images
CHANGELOG_END

* Update alt text for navigator images

CHANGELOG_BEGIN
CHANGELOG_END
2022-09-06 17:07:23 +00:00
cgrigis-da
061986873f
Fix doc typos (#14933)
CHANGELOG_BEGIN
CHANGELOG_END
2022-09-06 18:15:27 +02:00
Sergey Kisel
01d80252e8
Use resources correctly so they're closed after use [DPP-1217] (#14946)
CHANGELOG_BEGIN
CHANGELOG_END
2022-09-06 17:54:07 +02:00
Moisés Ackerman
a97f83e19d
Fix unstable package ids in the presence of data-dependencies (#14936)
* Add test case

* Restart UniqSupply on every call of setupDamlGHC

changelog_begin
- [data-dependencies] Fixed an issue where packages with data-dependencies would get non-deterministic package ids (`#14936 <https://github.com/digital-asset/daml/issues/14936>`__).
changelog_end
2022-09-06 17:53:10 +02:00
Simon Maxen
bb99bd865c
Wrap metric test in eventually (#14945)
changelog_begin
changelog_end
2022-09-06 15:04:03 +01:00
Simon Maxen
fe2d5b06ac
Switch to using json structure for metering report [DPP-1134] (#14891)
* Switch to using json structure

changelog_begin
changelog_end
2022-09-06 15:02:52 +01:00
pbatko-da
81762254bc
[DPP-1148] Validate annotations size on resource creation and update (#14903)
Also introduce annotations validator to be later used in the ApiService layer.

changelog_begin
changelog_end
2022-09-06 15:32:50 +02:00
Carl Pulley
b361d96768
Changes to ensure CompiledPackages contains contract key template lambda definitions
* Compiler changes:
- add in ContractKeyWithMaintainersDefRef
- ensure compileModule compiles contract key lambdas for templates (and so allow contract keys to be extracted from contract instances)

CHANGELOG_BEGIN
CHANGELOG_END
2022-09-06 13:53:34 +01:00
Chun Lok Ling
dbebbeae44
Added interface id prefix without package id to choices popup (#14941)
* added interface id prefix without package id to choices popup

CHANGELOG_BEGIN
CHANGELOG_END

* strong prefix
* format
2022-09-06 10:52:25 +01:00
Raymond Roestenburg
fbe3d94bfe
14818 fetch by contract id with interface (#14917)
* Fallback to in-memory for interface ID.

CHANGELOG_BEGIN
- [JSON API] /v1/fetch by interface ID
CHANGELOG_END

* Added fix: not setting key in ActiveContract in interface case, fix for https://github.com/digital-asset/daml/pull/14841#discussion_r961960344
2022-09-06 11:03:31 +02:00
azure-pipelines[bot]
68e3a3ddc9
bump canton to 20220905 (#14938)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-09-06 10:52:33 +02:00
azure-pipelines[bot]
37297ce09b
update NOTICES file (#14939)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-09-06 10:52:09 +02:00
dylant-da
a2ea3ce685
Better errors for non-record non-monomorphic viewtypes (#14932)
* Improve error for wrong viewtypes

* Add tests for new viewtype errors

* satisfy changelog check

CHANGELOG_BEGIN
CHANGELOG_END

* Use strict foldl

* Update tests to be non-hyphenated

* Allow EExpectedViewType to define own article

* Use _TApps instead of _TypeSplitApp

* Remove hyphen from "type-constructor" in EExpectedViewType

* Add article to EExpectedViewType messages

* Improve EExpectedViewType errors for unexpected Type, add particle

* Fix tests for improved viewtype errors
2022-09-05 15:50:00 +00:00
azure-pipelines[bot]
3c5835370e
bump canton to 20220902 (#14921)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-09-05 15:51:17 +02:00
pbatko-da
0853fc44e0
4 - Add tools to map update request to an update object of the persistent store layer [DPP-1212] (#14858)
changelog_begin
changelog_end
2022-09-05 14:55:44 +02:00
Gary Verhaegen
1effd3eab2
add Fayi to release rotation (#14918)
Welcome!

CHANGELOG_BEGIN
CHANGELOG_END
2022-09-05 12:20:30 +02:00
azure-pipelines[bot]
68bde14549
update compat versions (2022-09-05) (#14928)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-09-05 12:10:10 +02:00
azure-pipelines[bot]
5be659f857
update NOTICES file (#14929)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-09-05 12:09:10 +02:00
tudor-da
d4646d7f9d
[ED] Explicit disclosure conformance tests [DPP-1095] (#14352)
* Disclosed contracts conformance tests

changelog_begin
changelog_end

* Addressed review comments

* Addressed Moritz' review comments

* Add conformance test asserting disabled feature

* More exhaustive testing:
* Aserting metadata contents
* Test duplicate keys/contract ids
* Test local key lookup visibility

* Addressed Carrie's review comments

* Added two more tests:
* Archival race test
* Superfluous inconsistent contracts race test

* Update ledger/ledger-api-tests/suites/src/main/scala/com/daml/ledger/api/testtool/suites/v1_dev/ExplicitDisclosureIT.scala

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

Co-authored-by: mziolekda <marcin.ziolek@digitalasset.com>
2022-09-05 08:49:21 +00:00
Rafael Guglielmetti
7a69759dce
Fix typo in Interface2.daml (#14927)
changelog_begin
changelog_end
2022-09-05 08:54:31 +02:00
Moisés Ackerman
db4de4e8c5
Engine: Include interface's packageId in usedPackages (#14887)
* Give type signature for runApi

* Add InterfaceRetro.dar in daml-lf/tests

* Add failing test case

* Include interface packageId in usedPackages

changelog_begin
changelog_end
2022-09-02 16:22:33 +00:00
Moisés Ackerman
1f2b709781
Data.NameMap: remove runtime check on HOF name changes (#14907)
* Add 'damlc validate-dar' test case for interface definition

* Add failing 'damlc validate-dar' test cases for interface instances

* Remove instance MonoTraversable e (NameMap a) from Data.NameMap

* Add (orphan) instance MonoTraversable ModuleRef (NameMap a) in DA.Daml.LF.Ast.Optics

* Data.NameMap: remove runtime check on HOF name changes

changelog_begin
changelog_end
2022-09-02 14:36:29 +00:00
Moisés Ackerman
b305f4111d
daml-doc improvements (#14867)
* Show "(no fields)" for fieldless records in daml-doc .rst output

* Update daml-test-files *.EXPECTED.rst

* Extract compareRendered from renderTest

* Add daml-doc test cases for renderFolder

* Add operator (DA.Daml.Doc.Render.Util.<->)

* Avoid trailing whitespace in daml-doc.{md,rst} output

* Update daml-test-files *.EXPECTED.{md,rst} and DA.Daml.Doc.Render.Tests

* Drop unused code

* Update comments

changelog_begin
changelog_end
2022-09-02 16:24:59 +02:00
Stephen Compall
3902380b14
declare retroactive interface implementations in TypeScript (#14892)
* include retro-implements in TS interface type decls

* split interface exercise test into two sub-tests

* test that contract ID conversion resolves

CHANGELOG_BEGIN
- [TypeScript codegen] Support for retroactive interface implementations
  included.  Choice inheritance is deprecated and `will be removed
  <https://github.com/digital-asset/daml/issues/14893>`__; to invoke an
  interface choice on a template-typed contract ID, convert it to an
  interface-typed ID with *TemplateName*``.toInterface``.
CHANGELOG_END
2022-09-02 10:10:58 -04:00
Raymond Roestenburg
d13695c75e
Draft /v1/query with interface ID, without query store (#14841)
Support /v1/query by interfaceID or a non-empty set of template ID's, fallback to in-memory for an interfaceId query.

Co-authored-by: Stephen Compall <stephen.compall@daml.com>


CHANGELOG_BEGIN
- [JSON API] /v1/query with a non-empty set of template ID’s or one interface ID
CHANGELOG_END
2022-09-02 12:49:06 +02:00
Sergey Kisel
0b5a333dc2
Support interfaces for benchtool [DPP-1163] (#14864)
* Support interfaces for benchtool [DPP-1163]

CHANGELOG_BEGIN
CHANGELOG_END
2022-09-02 12:23:20 +02:00
azure-pipelines[bot]
0c66368073
bump canton to 20220901 (#14908)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-09-02 12:11:19 +02:00
azure-pipelines[bot]
5d1ff40af2
update NOTICES file (#14909)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-09-02 11:47:05 +02:00
Stefano Baghino
4b9d32df06
Expand system requirements to include missing information (#14900)
Specifically:
- JDBC drivers
- Some sort of reference to minimum system requirements

changelog_begin
changelog_end
2022-09-02 09:35:43 +02:00
tudor-da
4064e992f3
[ED] Pass used disclosed contracts to WriteService.submitTransaction (#14881)
changelog_begin
changelog_end
2022-09-02 07:11:28 +00:00
tudor-da
636c07e15d
[ED] Validate disclosed contracts in command submission [DPP-1096] (#14865)
* [ED] Validate disclosed contracts during submission request validation

changelog_begin
changelog_end

* driver_metadata is Optional

* Addressed Pawel's review comments
2022-09-01 20:55:09 +02:00
mziolekda
55beea367d
remove kv metrics from the daml-sdk repo (#14897)
CHANGELOG_BEGIN
CHANGELOG_END
2022-09-01 19:01:48 +02:00
dylant-da
69296455f3
Better errors when trying to use guards in LF 15 (#14884)
* Make InterfaceGuardedNotExtended error out with guard message

* Move ConvertM into own module, make convertPrim failable

* Error out when exerciseGuarded is called

* Remove _exerciseDefault, now unused

* Error at runtime if _exerciseInterfaceGuard called in <= LF 1.15

* Add InterfaceChoiceGuardFailedNotExtended - test guarded exercises error

* lint

* Satisfy changelog

CHANGELOG_BEGIN
CHANGELOG_END

* Only error on exerciseGuarded if extended interfaces are NOT supported

* Make convertPrim impure - handle strict errors by inserting runtime errs

* Use ifdef/else/endif instead of ifdef/endif/ifndef/endif

Co-authored-by: Moisés Ackerman <6054733+akrmn@users.noreply.github.com>

Co-authored-by: Moisés Ackerman <6054733+akrmn@users.noreply.github.com>
2022-09-01 15:39:03 +01:00
Gary Verhaegen
8d48eebc06
remove Adriaan from CODEOWNERS (#14898)
CHANGELOG_BEGIN
CHANGELOG_END
2022-09-01 14:50:19 +02:00
Sergey Kisel
a8f0c2a9aa
Memoization of the filters based on package metadata view [DPP-1168] (#14872)
* Memoization of the filters based on package metadata view [DPP-1168]

CHANGELOG_BEGIN
CHANGELOG_END
2022-09-01 13:50:21 +02:00
Moisés Ackerman
91dabdee69
Fix LF conversion and typechecker #12051 TODOs (#14890)
* Add per interface choice context in serializability checks

* Update expected errors in daml-test-files

* Drop done todo

* Keep TyCon in InterfaceBinds

* Move convertInterface to top level

* convertInterface now returns a list of definitions

* Refactor convertInterface

* Create interface data type def in convertInterface

* Check for featureSimpleInterfaces in convertInterface

* Check for featureSimpleInterfaces in convertInterfaceInstance

* cleanup convertRequires

* Validate that an interface type constructor has no parameters

changelog_begin
changelog_end
2022-09-01 12:43:04 +02:00
Stefano Baghino
9985873bb4
Remove @adriaanm-da from release testing rotation (#14896)
changelog_begin
changelog_end
2022-09-01 09:46:34 +00:00
azure-pipelines[bot]
3e692a4d22
update NOTICES file (#14895)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-09-01 11:18:54 +02:00
azure-pipelines[bot]
0f0e8263d0
bump canton to 20220831 (#14894)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-09-01 11:06:00 +02:00
mziolekda
111c2c2645
This release is meant to include a fix on the Canton side. Because of (#14888)
how our release process works at the moment, this means we have to
create a new release on this side too, even though there is no code
change.

So it is totally expected at this point that the 2.3.4 line points to
the same commit as the 2.3.3 line, even though it looks a bit strange.

CHANGELOG_BEGIN
CHANGELOG_END
2022-09-01 10:40:04 +02:00
Moisés Ackerman
4b574ac393
Add damlc internal command debug-ide-span-info (#14792)
* update ghcide rev

* Add getSpanInfo action in daml-ide-core

* Add internal damlc command 'debug-ide-span-info'

changelog_begin
changelog_end
2022-09-01 09:53:19 +02:00
Carl Pulley
76adb3666e
Release note improvements
CHANGELOG_BEGIN
CHANGELOG_END
2022-08-31 16:37:28 +01:00
azure-pipelines[bot]
a3959c1286
rotate release duty after 2022-08-31 (#14878)
@carlpulley-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-08-31 16:16:32 +02:00
Sergey Kisel
29eb355af1
Split classes into separate files (#14885)
CHANGELOG_BEGIN
CHANGELOG_END
2022-08-31 14:05:47 +00:00
pbatko-da
07b30c23a1
Persistent stores for user management and party management supporting updates and concurrent change control [DPP-1198] (#14834)
Extend user store to support user modification with concurrent change control.
Make user's primary party modifiable and add isDeactivated modifiable attribute
Add user annotations.

Add party record store on par with user store.

changelog_begin
changelog_end
2022-08-31 15:38:54 +02:00
Stephen Compall
85f93f54a0
make exercise by interface contract ID safe (#14134)
* declare Interface, ToInterface, FromInterface in @daml/types library

* generate ToInterface and FromTemplate companion declarations

* add toInterface and unsafeFromInterface to template companion implementations

* declare marker types for every interface

* remove type parameter from interface companions' types

* add the union for forward implements

CHANGELOG_BEGIN
- [TypeScript codegen] To exercise an interface choice on a
  template-typed contract ID, you must now explicitly convert the
  contract ID to an interface-typed ID.  For example, where ``cid:
  ContractId<TemplateName>``, you can use
  ``TemplateName.toInterface(InterfaceName, cid)`` to produce a
  ``ContractId<InterfaceName>``.

  Interface contract IDs are also now typed as shown above; for example,
  the former type ``ContractId<InterfaceNameInterface<TemplateName>>``
  would now simply be ``ContractId<InterfaceName>``.
CHANGELOG_END
2022-08-31 09:25:53 -04:00
Stephen Compall
2b6289a259
enable interface view tests in api-type-signature (#14877)
CHANGELOG_BEGIN
CHANGELOG_END
2022-08-31 09:23:14 -04:00
Remy
15a77d691a
enable LF 1.15 LAPITT for canton (#14883)
CHANGELOG_BEGIN
CHANGELOG_END
2022-08-31 13:48:51 +02:00
Remy
ec3d080b49
add Bas as code owners of the compiler (#14712)
CHANGELOG_BEGIN
CHANGELOG_END
2022-08-31 11:51:17 +01:00
Chun Lok Ling
bb4a17e345
add test case (#14882)
CHANGELOG_BEGIN
CHANGELOG_END
2022-08-31 11:28:59 +01:00