Commit Graph

1268 Commits

Author SHA1 Message Date
fayi-da
d11704018a
Provide contract choice metadata (#15116)
* #13766 initial implementation of choice metadata for templates

* #13766 initial implementation of choice metadata for interfaces

* #13766 Add marker type to ContractTypeCompanion

* #13766 Minor type fix

* Cleanup after merge with main

* Temporary fix for package prefixes

* Format java files, rename Maker -> ContractType in ContractTypeCompanion

* Add documentation and tests

* Complete choice metadata implementation

CHANGELOG_BEGIN
- Add new representation of a choice, ChoiceMetadata.
- Generated templates and interfaces now include fields for each available choice. These fields will have a ChoiceMetadata type and will be called CHOICE_N, where N represents the choices' name.
CHANGELOG_END

* Update docs and cleanup tests
2022-10-07 20:54:43 +00:00
Stefano Baghino
32a6896ca7
Add link to support page (and indirectly to the support portal) (#15167)
* Add link to support page (and indirectly to the support portal)

changelog_begin
changelog_end

* Update docs/source/support/support.rst

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

Co-authored-by: carrielaben-da <91496516+carrielaben-da@users.noreply.github.com>
2022-10-06 10:03:10 +00:00
Moisés Ackerman
b30e0a3844
Add non-docs golden test for daml ledger export (#15136)
* Extract example-export-client to //daml-script/export/integration-tests/example-export-client

changelog_begin
changelog_end

* Parametrize example-export-client with Daml script to export

* Parametrize example-export-client with parties

* Extract daml_ledger_export_test to daml-script/export/integration-tests/matches-docs/util.bzl

* Rename daml-script/export/integration-tests/{matches-docs=>golden}

* Rename //daml-script/export/integration-tests/golden:{example-export=>matches-docs}*

* rules_daml/daml.bzl:daml_compile now accepts dependencies

* Drop trailing whitespace in daml ledger export comment

* Add test //daml-script/export/integration-tests/golden:export-values-compare
2022-10-03 15:31:51 +02:00
Moisés Ackerman
ca57d90fde
Mention interface instances in 'Reference: Templates' docs (#15133)
* Rename {My=>NameOf}Template in Interface docs code snippets

* Mention interface instances in 'Reference: Templates' docs

changelog_begin
changelog_end

* Remove 'active development' warning for interfaces

The warning for _required_ interfaces stays
2022-10-03 13:03:58 +00:00
pbatko-da
7652944a9c
Improve wording of the conveyance message in error codes docs (#15043)
changelog_begin
changelog_end
2022-09-28 08:55:12 +00:00
Simon Maxen
0b2971990b
Add metering report check section documentation (#15095)
changelog_begin
changelog_end
2022-09-28 08:25:52 +01:00
Chun Lok Ling
5d880d4a99
Documentation for ledgerApiError in json api (#15089)
* Documentation for ledgerApiError in json api

CHANGELOG_BEGIN
Added docs for "ledgerApiError" field in json api response when the error is originated from JSON API
CHANGELOG_END

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

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

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

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

Co-authored-by: carrielaben-da <91496516+carrielaben-da@users.noreply.github.com>
2022-09-26 17:37:42 +01:00
Simon Letort
4dcd7191ab
[Doc] Getting started: use node v16 (#15025)
* Node version: active LTS v16

fix https://github.com/digital-asset/daml/issues/13062 and https://github.com/digital-asset/daml/issues/14084

* fix link and improve wording

* Create codeql-analysis.yml

* Revert "Create codeql-analysis.yml"

This reverts commit bf3770a9a7.

* changelog

CHANGELOG_BEGIN
CHANGELOG_END
2022-09-26 15:08:26 +00:00
pbatko-da
ca81adeb3e
6 - Ledger API changes for UM/UP extensions for Hub [DPP-1211] (#14937)
changelog_begin

[Ledger API Specification]:
1. Add 'is_deactivated' attribute to participant users.
2. Introduce participant server's local metadata for parties and participant users consisting of:
 - a resource version for optional concurrent change control,
 - modifiable key-value based annotations.
3. Add experimental update RPCs for parties and participant users:
  - participant user's modifiable fields are: 'primary_party', 'is_deactivated', 'metadata.annotations',
  - party's modifiable fields are 'local_metadata.annotations'.
4. Discourage use of 'party_details.display_name' in favor of using party's metadata annotations.

changelog_end


Other notes:

- no-op updates are allowed,
- update paths are resource relative,
- as annotation deletion is by providing an key with the empty string value,
- as a corollary, only non-empty strings are valid annotation values.
2022-09-26 12:56:55 +00:00
carrielaben-da
1d58dfee2f
TOC test changes (#14741)
Removing toc duplication

[CHANGELOG_BEGIN]
[CHANGELOG_END]

Co-authored-by: carrie-laben <91496516+carrie-laben@users.noreply.github.com>
2022-09-23 14:47:21 +00:00
Gary Verhaegen
75b17a17ed
fix live-preview (#15061)
Accidentally broken in #14985.

CHANGELOG_BEGIN
CHANGELOG_END
2022-09-22 10:03:11 +00:00
carrielaben-da
247e0d858f
Folder name corrections (#15051)
Correcting the folder names in the first two sections of the Basic Contracts tutorial to reflect what the user will actually see.

[CHANGELOG_BEGIN]
[CHANGELOG_END]
2022-09-22 10:01:31 +00:00
Stefano Baghino
a15f576308
Add "Next steps" page to "An introduction to Daml" (#14899)
* Add "Next steps" page to "An introduction to Daml"

The idea is that of offering a comprehensive set of possible next steps after learning how to write Daml.

The page suggests certifications and points to existing examples as the previous final line on the last page,
as well as adding suggestions on where to learn more about building off-ledger services, how to install,
operate and maintain a ledger, where to learn about proven design patterns and the availability of Daml Hub
to get started without having to run your own ledger.

changelog_begin
changelog_end

* Apply suggestions from code review

Thank you @carrielaben-da, great suggestions as always!

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

Co-authored-by: carrielaben-da <91496516+carrielaben-da@users.noreply.github.com>
2022-09-20 15:00:13 +00:00
Raymond Roestenburg
deba5b4630
Doc add live ready auth 14649 (#15045)
* Added readyz route.

* Doc for liveness and readiness endpoints for auth middleware.

CHANGELOG_BEGIN
- oauth2 middleware: liveness and readiness endpoints
CHANGELOG_END
2022-09-20 16:38:49 +02:00
fayi-da
51af09646c
add abstract class parents to type-parameterless records, variants, enums (#15023)
* Add abstract class parents to generated ordinary records and variants

* Add common supertype for generated enums

* Add abstract class parents to generated ordinary records and variants

CHANGELOG_BEGIN
- Ordinary Records and Variants now have a super class defining toValue()
- Generated enums now have a common supertype, DamlEnum<T>
CHANGELOG_END
2022-09-15 15:26:31 +01:00
Gary Verhaegen
3d70c68952
docs: no index (#14985)
This removes the index.rst files from the repo, and instead generates a
placeholder index that just includes all the rst files at build time.

The reason for this change is that the ToC is defined in docs.daml.com,
and having one on both sides is both confusing and error-prone.

CHANGELOG_BEGIN
CHANGELOG_END
2022-09-15 12:12:12 +02:00
carrielaben-da
a21da1be7a
Update quickstart.rst (#14267)
* Update quickstart.rst

Updated installation instructions

[CHANGELOG_BEGIN]
[CHANGELOG_END]

* Update quickstart.rst

To address Moritz's comment re: line 164

[CHANGELOG_BEGIN]

[CHANGELOG_END]

* Update docs/source/app-dev/bindings-java/quickstart.rst

[CHANGELOG_BEGIN]
[CHANGELOG_END]

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

* Update quickstart.rst

Another attempted update. As I walk through this, it's not clear to me that we need any step beyond step 3 ("In the browser, log in as alice...") for a beginning user working through the tutorial locally?

[CHANGELOG_BEGIN]
[CHANGELOG_END]

* Update docs/source/app-dev/bindings-java/quickstart.rst

[CHANGELOG_BEGIN]
[CHANGELOG_END]

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

* Quickstart.rst Maven edits

Hopefully final edits to this branch

[CHANGELOG_BEGIN]
[CHANGELOG_END]

* Integration w ledger update fix (#14983)

* fix Sphinx build

* update tree output

* remove non-existing ui-backend.conf reference

* update daml build output

* run through the whole thing

Co-authored-by: carrie-laben <91496516+carrie-laben@users.noreply.github.com>
Co-authored-by: Moritz Kiefer <moritz.kiefer@purelyfunctional.org>
Co-authored-by: Gary Verhaegen <gary.verhaegen@digitalasset.com>
2022-09-09 09:33:46 -04:00
Brian Weir
33f2ea596d
Integrate daml finance (#14989) 2022-09-09 10:54:24 +00:00
mziolekda
dacb8f509f
Update Ledger API version and its documentation (#14986)
* Update Ledger API version and its documentation

CHANGELOG_BEGIN
Ledger API version bump to 2.1
CHANGELOG_END

* corrections post-review
2022-09-09 10:23:58 +00:00
Sergey Kisel
18d2571058
Document interface subscription capability [DPP-1221]. (#14982)
* Document interface subscription capability [DPP-1221].

CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: mziolekda <marcin.ziolek@digitalasset.com>
2022-09-09 09:00:09 +00:00
Moisés Ackerman
66f03b17f4
Fix minimum Daml-LF version in interface reference docs (#14991)
changelog_begin
changelog_end
2022-09-09 08:48:41 +00:00
tudor-da
62c64c6e2a
Correct error message for not found templates/interfaces in stream subscriptions [DPP-1220] (#14935)
* Correct error message for not found templates/interfaces in stream subscription

changelog_begin
When subscribing to Ledger API transaction streams with unknown template or interface ids
filter, a client is served with a NOT_FOUND/TEMPLATES_OR_INTERFACES_NOT_FOUND error code.
changelog_end

* Temporarily create a custom preview and dev conformance test for Canton
in order to allow the changed test exclusion
2022-09-07 16:17:32 +02:00
Chun Lok Ling
91310e2ffe
Added documentation for interface support in json-api (#14963)
* Added documentation for interface support in json-api

CHANGELOG_BEGIN
Added documentation for interface support in json-api
CHANGELOG_END

* Added documentation for interface support in json-api

CHANGELOG_BEGIN
Added documentation for interface support in json-api
CHANGELOG_END

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

Co-authored-by: Raymond Roestenburg <98821776+ray-roestenburg-da@users.noreply.github.com>

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

Co-authored-by: Raymond Roestenburg <98821776+ray-roestenburg-da@users.noreply.github.com>

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

Co-authored-by: Raymond Roestenburg <98821776+ray-roestenburg-da@users.noreply.github.com>

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

Co-authored-by: Raymond Roestenburg <98821776+ray-roestenburg-da@users.noreply.github.com>

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

Co-authored-by: Raymond Roestenburg <98821776+ray-roestenburg-da@users.noreply.github.com>

Co-authored-by: Raymond Roestenburg <98821776+ray-roestenburg-da@users.noreply.github.com>
2022-09-07 14:12:21 +00:00
Matthias Schmalz
08559be6af
New error category: SecurityAlert (#14957)
CHANGELOG_BEGIN
Added new error category "SecurityAlert".
Corrected documentation of GRPC status codes for error categories MaliciousOrFaultyBehavior, AuthInterceptorInvalidAuthenticationCredentials, and InsufficientPermission.
CHANGELOG_END
2022-09-07 15:57:04 +02:00
Gary Verhaegen
93f9ffbbd5
docs: fix interface functions table (#14959)
CHANGELOG_BEGIN
CHANGELOG_END
2022-09-07 15:08:26 +02:00
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
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
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
Stefano Baghino
8b962e36b8
Improvements to the HTTP JSON API service docs (#14863)
changelog_begin
changelog_end

1. Document that the fetch-by-contract-ID endpoint can take a template ID
2. Reinforce the point made in #14601 and always specify the package ID
2022-08-30 12:22:51 +02:00
Moisés Ackerman
3ac7d87498
Monomorphize interface methods and choices (#14853)
* Update ghc rev

* Update daml-test-file InterfaceGuarded

* Add daml-test-files for interface method and choice monomorphicity

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

* Update daml-test-files *.EXPECTED.{md,rst}

* Fix data-dependencies tests

* Fix ide test

* Update code-snippets-dev/Interfaces.daml

* Update interface reference docs to reflect monomorphic methods and choices

* Apply suggestions from code review

changelog_begin
changelog_end

Co-authored-by: carrielaben-da <91496516+carrielaben-da@users.noreply.github.com>
2022-08-29 16:24:35 +02:00
Meriam Lachkar
3c3a8f874d
document how to enable dev on both Daml and Canton (#14838)
* document how to enable dev on both Daml and Canton

changelog_begin
changelog_end

* Update docs/source/daml/reference/interfaces.rst

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

* Update docs/source/daml/reference/interfaces.rst

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

* Update docs/source/daml/reference/interfaces.rst

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

* Update docs/source/daml/reference/interfaces.rst

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

* change the link reference to a ref

Co-authored-by: carrielaben-da <91496516+carrielaben-da@users.noreply.github.com>
Co-authored-by: Moritz Kiefer <moritz.kiefer@purelyfunctional.org>
2022-08-29 11:01:50 +02:00
Moisés Ackerman
e3c2662ed9
Update reference docs for interfaces and interface instances (#14743)
* Update reference docs for interfaces and interface instances

  * Rename subsection on empty interface instance clauses

  * Move empty interface instance example below explanation

  * Split 'interface instance in the interface' into its own subsection

  * Add code example for interface instance in the interface

  * Rephrase docs on interface method types

  * Move docs on required interfaces to the bottom

  * Add section on interface values

  * Explain result of applying a method, highlight 'this' binding

changelog_begin
changelog_end

Co-authored-by: Stefano Baghino <43749967+stefanobaghino-da@users.noreply.github.com>
Co-authored-by: Moritz Kiefer <moritz.kiefer@purelyfunctional.org>
2022-08-19 13:54:58 +02:00
Moisés Ackerman
e97e8e31c7
Add pygments keywords (#14758)
* break daml_reserved into one keyword per line

* sort daml_reserved alphabetically

* add a few missing keywords

changelog_begin
changelog_end
2022-08-19 13:27:27 +02:00
Simon Maxen
38925252fb
Add support for metering report signing using community and enterprise keys [DPP-1136] (#14735)
* Add support for metering report signing using community and enterprise keys

changelog_begin
changelog_end
2022-08-18 11:34:12 +01:00
Moisés Ackerman
009c3c306b
Add interface instance syntax, including retroactive interface instances (#14715)
* Extract qualifyLocally in LFConversion

* Update ghc rev

* Add parent type argument to interface instance desugaring types

* Check interface instance parent in LFConversion

* Convert interface instances in interface declarations

* Update daml-test-files to use 'interface instance' syntax

* Update other tests to use 'interface instance' syntax

* Update interface reference docs to use 'interface instance' syntax

* Update other files to use 'interface instance' syntax

* Add todo in DA.Daml.LF.Ast.Pretty

* Add daml-test-files for retroactive interface instances

changelog_begin
changelog_end
2022-08-17 12:06:59 +00:00
cgrigis-da
9b3ec7f45f
[Doc] Fix some typos in intro docs (#14658)
* [Doc] Fix some typos in intro docs

CHANGELOG_BEGIN
CHANGELOG_END

* Update docs/source/daml/intro/9_Dependencies.rst

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

* Apply review comments

Co-authored-by: carrielaben-da <91496516+carrielaben-da@users.noreply.github.com>
2022-08-15 15:34:59 +02:00
cgrigis-da
ad4ad64224
Fix indent that creates an unneeded subparagraph (#14605)
CHANGELOG_BEGIN
CHANGELOG_END
2022-08-11 16:01:33 +02:00
Stefano Baghino
43f2184c5a
Remove unused --wall-clock-time from daml-intro-7 template (#14689)
Apart from not being actually used in any part of the relative
chapter of "An Introduction to Daml" (https://docs.daml.com/2.3.2/daml/intro/7_Composing.html),
where the transaction view actually shows the usage of static time,
the options has been dropped when we switched to a Canton-based
sandbox as part of Daml 2.0 and causes an error when running
`daml start`, as part of the ninth chapter of "An Introduction to Daml"
(https://docs.daml.com/2.3.2/daml/intro/9_Dependencies.html#hashes-and-identifiers).

Fixes #14654

changelog_begin
changelog_end
2022-08-11 09:32:53 +00:00
dylant-da
0d37134bc2
Change placeholder unit viewtypes to empty records (#14656)
* Update views in integration-v1dev to be EmptyInterfaceView instead of ()

* Update expected desugared daml for `EmptyInterfaceView`

* Update compiler Shake / DataDependencies viewtypes to EmptyInterfaceView

* Add record viewtypes to docs, update docs

* Add empty records to daml-lf, language-support, ledger, trigger tests

* Qualify EmptyInterfaceView in ledger semantic Interface tests

* Fix imports for EmptyInterfaceView in IIou / CIou / Transferrable

* empty changelog commit

CHANGELOG_BEGIN
CHANGELOG_END

* Qualify EmptyInterfaceView import

* Fix imports of EmptyInterfaceView in TypeScript codegen tests

* Accept Interface doc changes

* Add EmptyInterfaceView to DataDependencies tests

* Remove missing interface viewtype test - all interfaces must have views

* Replace all EmptyInterfaceView with EmptyInterfaceView {}
2022-08-10 16:45:23 +00:00
Simon Maxen
9f3547fd0f
Add metrics of gRPC return status codes [DPP-1084] (#14634)
* Add metrics of gRPC return status codes

changelog_begin
changelog_end
2022-08-09 20:06:49 +01:00
Stefano Baghino
354a14ea60
Make emphasis visible (#14604)
Setting the font weight to 500 makes it effectively invisible, at least
in certain configurations (my setup is an Ubuntu 20.04 with Chrome 103).

In my experiments, 600 is the minimal font weight that makes the difference
visible on my setup. In order to keep the appearance of links unchanged,
I also decreased the font weight for links to the same as the body.

Another possibility to make a compromise that could work for different
setups could be to lower the font weight for bold to 600 and have a weight
specific for links at 500. This allows emphasis to appear clearly on setups
with less sophisticated font management but not to exagerated it for links.

changelog_begin
changelog_end
2022-08-04 10:09:23 +02:00
dylant-da
8e8e0dabdf
Convert viewtype and view methods to LF (#14456)
* Add DA_Internal_Interface to convertTypeDef exclusion check

* Move desugared types/values for interface views into DA.Internal.Desugar

* Convert viewtype and view method declarations

* Typecheck view types and view declarations

* Add unit viewtypes to InterfaceChoiceCollision tests

* Add unit viewtypes to more compiler/damlc tests

* Modify empty interfaces/implements to have viewtypes/views

* Add unit viewtypes to remaining Interface tests

* Test for error thrown when viewtype not specified

* Fix daml-lf/ interface tests to use new syntax / unit views

* Add placeholder view of type Unit to TestInterfaces

CHANGELOG_BEGIN
CHANGELOG_END

* Fix typescript interface tests with unit viewtype

* Add unit viewtype to Java & Scala codegen

* Add unit viewtype to triggers tests interface

* Add unit viewtypes to ledger/test-common

* Add unit viewtypes to ledger-service/http-json

* Fix some damlc tests

* Use viewtype syntax in InterfaceViewNonSerializable test

* Remove HasInferfaceView instances in convertBind

* Add unit view to QualifiedInterface.daml test

* Generate HasInterfaceView instances in DataDependencies

* Add unit viewtypes and views to compiler/damlc/tests

* Document reconstruction of HasInterfaceView

* Move desugared types/values for interface views into DA.Internal.Desugar

* Add desugarable function view w/ EViewInterface desugaring

* Remove templateName and viewtype from generated EViewInterface

* Update desugared-daml

* Proof of concept: use _view -> EViewInterface prim via HasInterfaceView

* Move view, HasInterfaceView to DA.Internal.Interface

* Update desugared-daml tests

* Stop removing and re-generating HasInterfaceView instances

* Do not generate docs for generated "_view_" methods

* Report errors with interface TypeConNames prettily

* Fix InterfaceViewNotSpecified @ERROR to reflect new error text

* Don't import magic `view` method from Prelude to avoid name clash

* Update shake interface goto definition test locations

* Temp disable view spec tests, will re-implement views in speedy

* Add unit viewtype to Java code snippet docs

* Update Interface syntax docs for views

* Add unit viewtype to Transferrable.daml

* Add back "empty" interface implementation to interfaces.rst

* Re-enable view tests by having _view methods on InterfaceViews.daml file

* Remove deprecated commented-out view desugaring code
2022-08-03 16:23:38 +01:00
Stefano Baghino
c99611ec14
Clarify resolution of templates without package ID (#14601)
* Clarify resolution of templates without package ID

In particular, with regards to the HTTP JSON API service.

changelog_begin
changelog_end

* Emphasize use case for package ID resolution

Suggested by @garyverhaegen-da

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

* Emphasize further

* Fix RST formatting

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

Co-authored-by: Gary Verhaegen <gary.verhaegen@digitalasset.com>
2022-08-03 11:34:16 +00:00
Meriam Lachkar
a5bf4a1282
Improve the documentation to run Daml script on Canton (#14529)
* Improve the documentation to run Daml script on Canton

CHANGELOG_BEGIN
CHANGELOG_END

* hints to synchronize contracts

* Fixup sphinx syntax in Daml Script on Canton docs

Annoyingly sphinx links are kinda confusing made worse by the fact
that we need to reference stuff defined in the Canton repo docs.

changelog_begin
changelog_end

Co-authored-by: Moritz Kiefer <moritz.kiefer@purelyfunctional.org>
2022-07-28 09:53:05 +00:00
Gary Verhaegen
596860f4e0
docs: fix code snippets in daml/reference/functions (#14561)
A couple snippets seemed to have drifted. Rather than fix the line
numbers and risk having them drift again, this PR switches the references
to using comments instead, which should hopefully be more future-proof.

CHANGELOG_BEGIN
CHANGELOG_END
2022-07-28 09:36:17 +00:00
Stephen Compall
1a9dc020f9
overloaded choices in json-api (#14410)
CHANGELOG_BEGIN
- [JSON API] For exercise endpoints, when multiple choices with the same
  name are defined, the one directly defined on the ``templateId``,
  which may be a template or interface ID, will be selected; if a
  template ID is specified that only inherits the choices with the same
  name, the new ``choiceInterfaceId`` option must be specified to select
  the source of the choice.
CHANGELOG_END
2022-07-27 15:40:58 +00:00
Remy
88d4ff93f2
LF: remove precondition in interface (proto & scala side) (#14511)
CHANGELOG_BEGIN
CHANGELOG_END
2022-07-27 10:52:35 +02:00
shimonzerbib-da
d33370bedc
Update production-setup.rst (#14424)
* Update production-setup.rst

@carrielaben-da Minor edits

* Update docs/source/json-api/production-setup.rst

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

* Update docs/source/json-api/production-setup.rst

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

* Update docs/source/json-api/production-setup.rst

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

* Update docs/source/json-api/production-setup.rst

CHANGELOG_BEGIN
CHANGELOG_END

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

Co-authored-by: ShimonZerbib <106097817+ShimonZerbib@users.noreply.github.com>
Co-authored-by: carrielaben-da <91496516+carrielaben-da@users.noreply.github.com>
2022-07-27 07:48:12 +02:00
Stephen Compall
8586eb68da
suggest JSON API/JavaScript users use the bindings and codegen (#14536)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: carrielaben-da <91496516+carrielaben-da@users.noreply.github.com>
2022-07-26 19:48:40 +00:00