daml/language-support/ts
Stephen Compall a55eabb132
handle incomplete event metadata for parsing exercise results (#15050)
* drop payload and key instead of passing through
* build a "hidden" dar with a new template for build-and-lint-test
* test the events that come back; passing
* test key and that template is definitely not registered
* confirm test fails without changes to @daml/ledger

  ✕ undecodable exercise result event data is discarded (334 ms)

● interfaces › undecodable exercise result event data is discarded

  Failed to look up template 24124e8b5ae6c7f06835529d5b7338ed32308cdcb6409ba72f88351da9145ff1:Hidden:NotVisibleInTs. Make sure your @daml/types version agrees with the used Daml SDK version.

    at lookupTemplate (../../../../language-support/ts/daml-types/index.ts:269:11)
    at ../../../../language-support/ts/daml-ledger/index.ts:196:59
    at ../node_modules/@mojotech/json-type-validation/src/decoder.ts:795:31
    at Result.andThen (../node_modules/@mojotech/json-type-validation/src/result.ts:130:19)
    at Decoder.decode (../node_modules/@mojotech/json-type-validation/src/decoder.ts:795:7)
    at Decoder.decode (../node_modules/@mojotech/json-type-validation/src/decoder.ts:312:37)
    at Decoder.decode (../node_modules/@mojotech/json-type-validation/src/decoder.ts:501:31)
    at decodeValue_1 (../node_modules/@mojotech/json-type-validation/src/decoder.ts:371:68)
    at ../node_modules/@mojotech/json-type-validation/src/decoder.ts:375:65
        at Array.reduce (<anonymous>)

CHANGELOG_BEGIN
- [JS codegen] Exercise no longer fails on unrecognized templates occurring in
  create/archive events resulting from an exercise, such as may happen when
  exercising interface choices; instead, any such "uninterpretable creates" have
  their payloads changed to ``{}`` and their keys removed.
CHANGELOG_END
2022-09-29 17:12:51 +00:00
..
codegen handle incomplete event metadata for parsing exercise results (#15050) 2022-09-29 17:12:51 +00:00
daml-ledger handle incomplete event metadata for parsing exercise results (#15050) 2022-09-29 17:12:51 +00:00
daml-react widen @daml/react types to admit querying interfaces (#14968) 2022-09-07 17:12:42 +00:00
daml-types forbid interface choices for createAnd and byKey (#14971) 2022-09-08 12:29:20 -04:00
packages remove unneeded yarn resolutions (#14714) 2022-08-16 11:30:31 -04:00
.gitignore language-support/ts yarn install (#4159) 2020-01-22 17:28:14 +01:00
BUILD.bazel update copyright headers (#12240) 2022-01-03 16:36:51 +00:00
defs.bzl Upgrade typescript and typedoc (#12457) 2022-01-18 15:52:39 +01:00
eslint.bzl update copyright headers (#12240) 2022-01-03 16:36:51 +00:00
jest.bzl update copyright headers (#12240) 2022-01-03 16:36:51 +00:00
package.json language: add daml-react package to ts libraries (#4259) 2020-01-29 15:37:47 +01:00
typedoc.bzl docs: fix ts docs pages (#14157) 2022-06-15 13:19:18 +02:00