Commit Graph

9299 Commits

Author SHA1 Message Date
Kamil Bozek
dfd38186fe
Remove pre-1.18 error codes [DPP-773] (#12841)
* Remove legacy error codes

CHANGELOG_BEGIN
CHANGELOG_END

* Remove ValidatorFixture

* Removed redundant helper function

* Remove redundant object

* Rebased.

run-full-compat: true

* Rebased.

run-full-compat: true
2022-02-15 15:28:36 +01:00
tudor-da
d97f9815b2
Cleaned Sandbox-on-X logging (#12931)
changelog_begin
changelog_end
2022-02-15 15:23:38 +01:00
mziolekda
183caab8c9
Fix incorrect documentation in versioning bazel utilities (#12938)
CHANGELOG_BEGIN
CHANGELOG_END
2022-02-15 13:18:08 +01:00
Samir Talwar
8540ba8f6a
daml-sdk-head: Fix help text so it doesn't refer to an unbound var. (#12944)
CHANGELOG_BEGIN
CHANGELOG_END
2022-02-15 11:49:42 +00:00
Gary Verhaegen
1b3ae53249
remove license-checker symlink (#12946)
Actual code removed in #12909.

CHANGELOG_BEGIN
CHANGELOG_END
2022-02-15 11:48:49 +00:00
Moritz Kiefer
04eff2722c
Drop daml-lf-verify (#12942)
This is completely unmaintained, unused and partially broken so delete
it for now. Worst case, we recover it from Git history.

closes #6550 because it now refers to deleted code.

changelog_begin
changelog_end
2022-02-15 12:31:32 +01:00
Moritz Kiefer
4b0beda87c
Drop KV sandbox (#12937)
changelog_begin
changelog_end
2022-02-15 10:31:46 +00:00
Moritz Kiefer
bedc7c7326
Allocate parties explicitly in create-daml-app compat tests (#12936)
fixes #12932

changelog_begin
changelog_end
2022-02-15 10:51:18 +01:00
Moritz Kiefer
704de6dc35
Drop patch for mod package in lsp-types (#12921)
We needed this before the upgrade to GHC 9.0 due to our use of
integer-simple. With GHC 9.0 and the corresponding switch from
integer-simple to ghc-bignum native this is no longer required.

changelog_begin
changelog_end
2022-02-15 10:24:05 +01:00
Moritz Kiefer
2de470de31
Upgrade nixpkgs (#12926)
Partially just to keep things up2date, partially to get a chance to
upgrade to Bazel 5.

changelog_begin
changelog_end
2022-02-15 08:59:47 +00:00
Moritz Kiefer
67f214b1d1
Fix daml script reference in copy-unix-release-artifacts (#12933)
I also changed CI config so we run this on every build but only upload
on releases. That should hopefully make sure we catch this immediately
next time. The script is fast enough that this shouldn’t slow this
down meaningfully.

changelog_begin
changelog_end
2022-02-15 09:53:15 +01:00
azure-pipelines[bot]
1e8e1e1edb
update NOTICES file (#12930)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines DAML Build <support@digitalasset.com>
2022-02-15 09:47:04 +01:00
Moisés Ackerman
4848519fc6
Enable go-to-definition for interface methods and choices (#12903)
* Extend interface go to def test to cover methods and choices

changelog_begin
changelog_end
2022-02-15 08:30:30 +00:00
Moritz Kiefer
756b8bc406
Raise akka log-lveel for CoordinatedShutdown in daml-script (#12919)
Trying to work around https://github.com/akka/akka/pull/30944/files
having introduced rather confusing log messages in Daml script.

There are probably some other tools where we might want to do this but
I think daml script is the main one as the other ones are long-running
services where you don’t expect to shutdown the actor system during
regular operatino.

changelog_begin
changelog_end
2022-02-15 09:07:13 +01:00
Jennifer Whyte
4df4db11e8
Add new toctrees in daml docs (#12880)
* Add toctrees in daml docs

CHANGELOG_BEGIN
CHANGELOG_END

* Update operating-daml.rst

Remove wrong link (ops/index>

CHANGELOG_BEGIN
CHANGELOG_END

* Making toc visible on new pages

Making toctrees visible so new pages aren't empty

* Update docs/source/building-applications.rst

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

* Fix underlines

CHANGELOG_BEGIN
CHANGELOG_END

* Fix missing from toctree messages

CHANGELOG_BEGIN
CHANGELOG_END

* Fix pdf docs

changelog_begin
changelog_end

Co-authored-by: Moritz Kiefer <moritz.kiefer@purelyfunctional.org>
2022-02-15 07:34:29 +00:00
Stefano Baghino
dc5f203323
Address CVE-2022-0144, resolve shelljs to 0.8.5 (#12927)
changelog_begin
changelog_end
2022-02-14 22:30:06 +00:00
Kamil Bozek
9a1742ccea
Fix compatiblity tests failures after removing legacy error codes. (#12920)
* Fix compatiblity tests failures after removing legacy error codes.

CHANGELOG_BEGIN
CHANGELOG_END

run-full-compat: true

* Fix formatting

run-full-compat: true
2022-02-14 22:44:50 +01:00
Stefano Baghino
a49c321902
Add party identifier autocompletion to Navigator (#12923)
Fixes #12789

Adds a new query endpoint to Navigator's GraphQL backend that
lists all the parties registered by Navigator. The parties are
filtered on the server based on a query from the frontend and
served back. The frontend uses this to provide suggestion and
autocompletion features whenever a party identifier input is
required.

changelog_begin
[Navigator] Whenever you have to input a party identifier you
are now offered suggestions and the possibility to
autocomplete. See #12789.
changelog_end
2022-02-14 20:55:46 +00:00
Gary Verhaegen
c04fa81d6a
ci: bump Windows workdirs (#12918)
Since #12645, we added a new pipeline, so we need to add a corresponding
entry.

As for #12645, the content of the files and the directory structure is
taken directly from a live CI node, as printed by the (now-named)
`workdirs` step.

CHANGELOG_BEGIN
CHANGELOG_END
2022-02-14 18:49:32 +00:00
dependabot[bot]
afef1a3827
Bump follow-redirects from 1.14.7 to 1.14.8 in /navigator/frontend (#12911)
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.14.7 to 1.14.8.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.14.7...v1.14.8)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-14 18:47:26 +00:00
Moritz Kiefer
3bcfaa7dcb
Support building via rosetta (#12910)
* Support building via rosetta

Not as nice as a native build but seems useful enough until we have
that working.

changelog_begin
changelog_end

* .

changelog_begin
changelog_end

* .

changelog_begin
changelog_end

* .

changelog_begin
changelog_end
2022-02-14 19:06:17 +01:00
Simon Maxen
e56676e871
Minimal change needed to support is_final proto update (#12917)
changelog_begin
changelog_end

Breaks-Protobuf: true
2022-02-14 16:45:09 +00:00
mziolekda
8786f81aa2
Remove daml-on-sql (#12891)
* Remove daml-on-sql

CHANGELOG_BEGIN
Remove daml-on-sql
CHANGELOG_END

* migrate daml-on-sql documentation to sandbox-on-x
2022-02-14 17:17:27 +01:00
Samir Talwar
5d6fa519d2
ledger-api-test-tool: Remove MonotonicRecordTimeIT. [KVL-1076] (#12914)
* ledger-api-test-tool: Remove MonotonicRecordTimeIT.

This only makes sense for KV ledgers; they can implement it themselves
now.

CHANGELOG_BEGIN
- [Ledger API Test Tool] The optional ``MonotonicRecordTimeIT`` test
  suite has been removed as it doesn't apply to most ledgers. If it is
  necessary, ledger driver implementors are encouraged to write their
  own and/or copy it from the last published version.
CHANGELOG_END

* ledger-api-test-tool-on-canton: Forget about MonotonicRecordTimeIT.
2022-02-14 16:09:27 +00:00
Stefano Baghino
7252a66b2f
Wire contract identifier autocompletion in Navigator (#12916)
Navigator already had the possibility of autocompleting contract
identifiers, the only thing missing was to wire it in in full. This is
done mostly to inform how to address the more involved #12789.

changelog_begin
[Navigator] All input fields where a contract identifier can be passed
now provide the possibility of auto-completing based on the contracts
existing on the ledger.
changelog_end
2022-02-14 15:55:46 +00:00
Stefano Baghino
09a3eeab0c
Shorten contract and party identifiers in Navigator (#12913)
As we transition to Canton, we use a new format of contract and party
identifiers that can break the UI of Navigator here and there. In
order to prevent this, we use the same rules as Canton does to shorten
identifiers (basically, elide any hash longer than 12 characters).
Full identifiers are still shown as part of the tooltip.

Furthermore, a tooltip suggests that clicking on the shortened
identifier copies it in full length on the clipboard (which is indeed
what happens). There are a couple of possible improvements to this
interaction, which cannot be handled as part of this PR due to time
constraint:

- the visual cue suggesting that the identifier can be copied can be
improved by adding a clipboard icon besides the label
- there is no visual feedback from copying the identifier, ideally the
user should somehow see that the copying took place (e.g. by turning the
clipboard icon suggested in the point above into a checkmark for a
couple of seconds)

changelog_begin
[Navigator] Contract and party identifiers are shortened on the UI
but can be copied in full by clicking on their label.
changelog_end
2022-02-14 16:10:09 +01:00
Samir Talwar
23de5e364b
ledger-api-test-tool: Make certain classes public. (#12915)
They're necessary to implement suites elsewhere.

CHANGELOG_BEGIN
CHANGELOG_END
2022-02-14 15:55:11 +01:00
Moritz Kiefer
8e32842f57
Switch docs for upgrade automation to Canton Sandbox (#12908)
changelog_begin
changelog_end
2022-02-14 14:08:32 +00:00
dependabot[bot]
f0a2fe9129
Bump follow-redirects from 1.14.7 to 1.14.8 (#12912)
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.14.7 to 1.14.8.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.14.7...v1.14.8)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-14 13:57:13 +00:00
tudor-da
307931d5b4
Extracted kvutils Config to //leger/ledger-runner-common [DPP-865] (#12889)
* Extracted kvutils Config to //leger/ledger-runner-config

changelog_begin
changelog_end

* Sandbox-on-X logback.xml does not depend on the kvutils/app one

* Remove unused dependencies

* Add copyright header back

* Remove dependency of SoX on kvutils
2022-02-14 13:52:06 +00:00
Moritz Kiefer
d6e6c568fe
Fold daml test-script under daml script --all (#12895)
I tried to keep the changes somewhat minimal and reuse what is already
there. I think there is a fair amount of cleanup we can do afterwards
but hopefully this way it’s easier to review.

fixes #12837

changelog_begin

- [Daml Script] `daml test-script` has been replaced by `daml script
  --all`. The option to spin up a ledger automatically has been
  removed and you always have to specify one.

changelog_end
2022-02-14 14:23:21 +01:00
Moritz Kiefer
a30c5c2ebc
Switch upgrade docs to Canton sandbox (#12904)
* Switch upgrade docs to Canton sandbox

Mainly requires explicitly allocating parties & users and dealing with
Navigator being annoying.

changelog_begin
changelog_end

* .

changelog_begin
changelog_end
2022-02-14 13:55:53 +01:00
Moritz Kiefer
6a585c9eca
Drop license-checker from dev-env (#12909)
No reason to keep a custom nix deriv around for something we don’t
use.

changelog_begin
changelog_end
2022-02-14 13:50:12 +01:00
Simon Maxen
cc4c06c640
Metering Aggregation [DPP-818] (#12723)
* Add support for aggregated transaction metering

changelog_begin
Support added for aggregated transaction metering
changelog_end

* Update with review comments
2022-02-14 11:36:23 +00:00
Gary Verhaegen
c2a6397751
re-enabble patch-bazel-windows (#12905)
This reverts a small part of 9e1e42d27c
(#12901).

Microsoft seems to have given us our free parallel jobs back, so we can
run the patch_bazel job again.

Fixes #12900.

CHANGELOG_BEGIN
CHANGELOG_END
2022-02-14 11:23:48 +00:00
Marton Nagy
830963e629
Remove event_id indexes (#12743)
changelog_begin
changelog_end
2022-02-14 08:47:32 +01:00
azure-pipelines[bot]
473c8be6a7
update NOTICES file (#12902)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines DAML Build <support@digitalasset.com>
2022-02-14 08:42:03 +01:00
Moritz Kiefer
9e1e42d27c
Drop dependency on hosted nodes (#12901)
This should hopefully get CI working again.

There are two changes in here:

1. We can no longer change our patched Bazel. I didn’t switch away
   from the current patched version for now (we upload it to gcp bucket
   so it still works fine even if we cannot build it) but if we upgrade,
   we need to go to an unpatched version for now.
2. We need to get `az` from dev-env. I tested the self service compat
   job stuff and it works fine with this but there is a chance other
   parts don’t.

changelog_begin
changelog_end
2022-02-14 02:49:38 +01:00
Adriaan Moors
3ebd9d7be0
Navigator: don't leak memory via PartyState (#12896)
Undoing an unnecessary refactoring from #12187

stefanobaghino-da confirmed this fixes the memory leak he observed
in "long" running navigator sessions.

CHANGELOG_BEGIN
CHANGELOG_END
2022-02-12 11:37:21 +01:00
Samir Talwar
3dccabf6ba
ledger/cli-opts: Add tests for --auth-* CLI parameters. (#12894)
These were previously untested.

CHANGELOG_BEGIN
CHANGELOG_END
2022-02-11 19:42:21 +01:00
tudor-da
dd6dab6e6b
[Sandbox-on-X] Address various TODOs (#12823)
* Removed no-action TODOs

changelog_begin
changelog_end

* Assert self-service error codes in SequenceSpec

* Move InternallyInconsistentKeys and InternallyDuplicateKeys to LedgerApiErrors.WriteServiceRejections

* Restructured ledger bridge metrics
* Buffers before each processing stage

* Do not log the failure stacktrace on ledgerId lookup

* Addressed review comments

* Buffer size before prepare submission is 128
2022-02-11 17:03:41 +00:00
Moritz Kiefer
a230de2f82
Support getting started guide on Daml Hub (#12878)
* Support getting started guide on Daml Hub

This is annoyingly complex so let me try to provide an explanation for
the changes:

1. On Daml hub, we need to use a separate token for the public party
   and the user party.
2. This means that we need separate contexts. I cannot get access to
   the default context (not exposed) so annoyingly even for the user context we need to
   use a custom context
3. The way to get access to the public party in Daml hub is via a
   hook that reads it from the context. However, we cannot call that
   within the login callback so the way things work now that we login
   immediately show a "Logging in..." loading screen while we run the
   background query. This is actually kinda nice since it means
   something happens immediately after clicking login.

I’m sure there are better ways of handling this, my react foo is very
weak but this is what I managed to get to work.

Tested locally as well as on Daml hub and both work fine.

changelog_begin
changelog_end

.

.

.

.

.

.

.

* s/any/void/

* fmt
2022-02-11 16:41:07 +00:00
Kamil Bozek
cab76a9a65
Remove legacy error codes docs sources (#12892)
CHANGELOG_BEGIN
CHANGELOG_END
2022-02-11 17:34:10 +01:00
pbatko-da
550ed7ca51
[User management] Document errors and required/optional fiels in user management proto definition. (#12873)
changelog_begin
changelog_end
2022-02-11 15:08:37 +01:00
pbatko-da
099c827338
[User management] Add user based authorization support to bench-tool. (#12871)
Adds a new bench-tool CLI option: '--user-based-authorization-secret=<secret>' that enables user based authorization.

changelog_begin
changelog_end
2022-02-11 14:45:31 +01:00
Victor Peter Rouven Müller
2617213251
Fix dependabot alert for glob-parent (#12890)
* Fix dependabot alert for glob-parent

changelog_begin
changelog_end

* Also update the yarn lock file after making changes xD
2022-02-11 12:58:37 +00:00
mziolekda
d9d8083451
Remove references to pre-canton sandbox from documentation (#12888)
* Remove references to pre-canton sandbox from documentation

CHANGELOG_BEGIN
CHANGELOG_END

* address review comments
2022-02-11 13:57:44 +01:00
Victor Peter Rouven Müller
300bbf86ae
[JSON-API] Fix duplicate calls to the command service while debug logging is enabled (#12699)
* Fix duplicate calls to the command service while debug logging is enabled

changelog_begin

- [HTTP-JSON] Fixed duplicate calls to the command service while debug logging is enabled.
- [HTTP-JSON] Fixed internal server errors which can occur while debug logging is enabled.

changelog_end

* Cleanup the code a bit, test still failing tho :(

* Finally fix the bug for real now

* Address review comments

* don't cast

Co-authored-by: Stephen Compall <stephen.compall@daml.com>
2022-02-11 12:53:31 +00:00
Victor Peter Rouven Müller
9e77b8dbf6
Fix logging of internal server errors for the json api (#12822)
changelog_begin

- [HTTP-JSON] Internal server errors are now properly logged again. See `issue #12887 <https://github.com/digital-asset/daml/issues/12887>`__.

changelog_end
2022-02-11 13:51:44 +01:00
Kamil Bozek
9785101254
Remove references to the legacy error codes from docs (#12749)
CHANGELOG_BEGIN
CHANGELOG_END
2022-02-11 13:23:07 +01:00