* 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>
* 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
* 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
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
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
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
* 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
CHANGELOG_BEGIN
Ledger API Specification: When using user management based authorization streams will now get aborted on authenticated user's rights change.
CHANGELOG_END
With this change, Daml exerciseByKey use the LF primitive
ExerciseByKey instead of the combinason of FetchByKey + Exercise.
CHANGELOG_BEGIN
CHANGELOG_END
* interfaces should not be implicitly serializable
* Add scala serializability check for interface choices
* Add scala serializability check for interface payloads
changelog_begin
changelog_end
CHANGELOG_BEGIN
Ledger API Specification: Maximum number of user rights per user is now limited to 1000 and is added to UserManagementFeature in VersionService. getLedgerApiVersion endpoint.
CHANGELOG_END
- Remove duplcate postgres test
- Move oracle tests under the common framework
- Move in-memory-fan-out test to sandbox-on-x
CHANGELOG_BEGIN
CHANGELOG_END
We add a `useUser` hook to daml-react returning the user currently
logged in the ledger participant. create-daml-app is changed
accordingly.
CHANGELOG_BEGIN
[daml-react] A `useUser` react hook is added to the daml-react
TypeScript library. It allows for easy access to the currently logged in
user of a ledger participant node for ledgers supporting user
management.
CHANGELOG_END
Mostly just trying to make sure we don’t lag behind there and can test
the same stuff (as in not older, don’t care about the exact commit) in
Canton and the assembly repo that we have with the regular process.
changelog_begin
changelog_end
It turns out we don’t need this anymore (according to CI which is good
enough for me). This is great since it means that we don’t need to
build our own GHC anymore and can instead fetch it from the upstream
cache.
changelog_begin
changelog_end
We must copy the slice of the log that we are reading, to ensure that we
are not iterating over the log while we mutate it in a separate
transaction. (In other words, objects must not escape the `readLog`
function.)
This is most likely the cause of a flaky test run that we saw recently.
CHANGELOG_BEGIN
CHANGELOG_END
* create-daml-app: Use alias templates for display names
We introduce Alias contracts to the create-daml-app Daml model and use
them to display aliases in the UI instead of party identifier strings.
CHANGELOG_BEGIN
CHANGELOG_END
* fix tests
* addressing review
* Add comments to Setup.daml
* factor out alias to option conversion
CHANGELOG_BEGIN
CHANGELOG_END
* small fix in setup.daml
* replace user dropdown with input in login screen
* fix compatibility tests
* fix alias loading flick in mainscreen
* remove canton incompatible sandbox options from daml.yaml
* fix gsg-trigger.patc
- vanila test -> low value, it is replicating what SoX test already does
- legacy-error-codes -> low value, this functionality is on its way out
- performance envelope -> low value, noone cares how fast that ledger is
CHANGELOG_BEGIN
CHANGELOG_END
The functions are available through typeclasses / typeclass instances
generated during desugaring. Moved the test over to use these, and
discovered a bug in our implementation of `observer`.
changelog_begin
changelog_end
@stefanobaghino-da is in charge of this release
changelog:
```
- [Daml Studio] The minimum supported vscode version is now 1.52.0.
- [Typescript Bindings] All methods for user management have been added to the bindings (createUser, deleteUser, getUser, listUsers, listUserRights, grantUserRight, revokeUserRight)
[Java bindings] Deprecate `DamlLedgerClient.Builder.withExpectedLedgerId`
Transaction Metering now persisted to database
- [Ledger API Test Tool] More command deduplication tests have been
enabled by default. This should not affect testing a fully functioning
ledger. If any tests fail, they can be temporarily excluded.
- [HTTP-JSON] Added endpoint /user/rights that if called with POST will return user rights of the user specified via the payload
- [HTTP-JSON] Added endpoints user/rights/grant & user/rights/revoke which allow granting & revoking user rights for a specific user
Add experimental Daml assistant support for ledger metering
[Java bindings] `DamlLedgerClient.forLedgerIdAndHost` and `DamlLedgerClient.forHostWithLedgerIdDiscovery` static methods
and the constructor taking a `ManagedChannel`, which were all deprecated since 0.13.38, have been removed.
- [Ledger API Test Tool] The retired test suites, ``LotsOfPartiesIT``
and ``TransactionScaleIT``, have been removed in favor of more
targeted benchmarking tests. If you are actively including these tests
in your test run, you will need to remove them. These tests are
disabled by default so it is likely that no change will be needed.
- [Ledger API Test Tool] The ``ParticipantPruningIT`` test case has
been enabled by default. You may need to disable specific test cases
accordingly.
Sandbox: Participant server now supports '--feature-user-management' flag to turn on or off user management feature.
- [Ledger API Test Tool] The ``MultiPartySubmissionIT`` test case has
been enabled by default. You will most likely not need to change
anything.
- [Ledger API Test Tool] The "ContractIdIT" test is now run by default,
using ledger feature flags to determine which test cases are run. You
will need to configure the ``StandaloneApiService`` accordingly.
```
commits:
```
346a61d79c0574f4a045d46b7e39a99217f44da4 release 2.0.0-snapshot.20220127.9042.0.4038d0a7
4038d0a7e3 Fix VSCode extension (#12611)
13acf66da6 Point out to run release manual tests on Windows with the KV sandbox (#12608)
7305a8c297 Color and typography edits (#12609)
4a6729eb70 Fix a bug in user management caching (#12605)
3e16e5ec98 Handle ledger bridge Queue errors (#12510)
b1a917596c ci: reduce Windows capacity (#12607)
53edac1fd7 Move some daml-script compat tests to sandbox-on-x (#12595)
6b902fdaaf [TS-Bindings] Complete support for user management (#12576)
f04dcfad4e release 2.0.0-snapshot.20220126.9029.0.42cf70b1 (#12603)
403efa70ba Add support for interfaces through data-dependencies (#12516)
ea62021eaf Upgrade ghcide (#12579)
98e68427cb ci: pin Windows folders, step 1 (#12597)
01219d6cdc ci: temporarily increase Windows capacity (#12599)
42cf70b18e ci: try to fix release process (#12600)
0579ebdd77 Mark the `withExpectedLedgerId` method in `DamlLedgerClient.Builder` as deprecated (#12537)
deb7f3a628 Move some trigger compat tests to sandbox-on-x (#12598)
5cdf9b95fb Remove some unecessary `implictly` with `Factory` (#12559)
9c3f1ce93a Drop dummy token from JSON API check (#12593)
3366c6f39b compatibility: Exclude another command deduplication test. (#12592)
6b50abf1f7 release 2.0.0-snapshot.20220126.9013.0.54339ada (#12587)
ad7148b1d6 Tear down daml services gracefully (#12591)
16a4f0626b Avoid explicitly listing all Oracle tests in build.yml (#12594)
bc9fa282fe Make ledger end non-optional (#12570)
122a487ac7 Fix static-time config in Canton (#12584)
7bcce7c1aa Upgrade rules-haskell (#12580)
159f38474e Drop 7zip from Windows dev-env (#12590)
215a63d55c correct deprecated options with newest synopsys-detect version (#12586)
84023ae1a0 update NOTICES file (#12589)
79864ef84f Fix error codes for V1 cid rejections (#12571)
54339ada82 Safeguard Oracle CI tests with lockIdSeed [DPP-802] (#12573)
5cccec2fe3 release: use-devenv (#12583)
90aacea36c split-release (#12577)
cc19df44a8 Persist transaction metering info [DPP-814,DPP-821] (#12274)
cb77c84cc7 damlc: Don't rely on worker for zero argument polymorphic type constructors (#12581)
ed33c0d5db split: flat(ter) files in Artifactory (#12575)
e355832bc1 split: do not push exe (#12574)
0afc4a5553 split: do not tag (#12569)
ebf7908007 LF: check contracts are consumed when found them in the cache (#12527)
ce06eb00fb Add serializability check for interface payloads in Haskell (#12560)
aced78f0b4 Drop dadew uninstall (#12566)
ac3ca1d20c ledger-api-test-tool: Enable command deduplication tests by default [KVL-1261] (#12541)
5f58698ba6 [JSON-API] Add list-specific-users-rights, grant & revoke user rights endpoints (#12352)
42aadec073 Cleanup Haskell serializability check (#12565)
5d93eb93e8 Engine stacktraces are disabled by default (#12562)
42d86acd06 [User management] Disabling user management in auth when user management feature is disabled [DPP-827] (#12503)
13153de88f update NOTICES file (#12564)
5bfe4ed589 Wait for server process in client_server_test (#12551)
f1cd4b1c7c Remove dependencies on compatibility libraries (#12548)
dcd721da99 Drop scenarios (#12484)
170d839ed0 Fix es (#12554)
8fa54c67ce Experimental daml assistant support for metering report [DPP-816] (#12485)
9802028380 Cut a new split release (#12547)
aec3390904 Replace silencer plugin with built-in warning configuration (#12543)
93cfe043f8 Remove from the Java bindings constructors that were deprecated since 0.x (#12536)
8d65aa3b4d Remove Sandbox classic stores and related unit tests (#12532)
24b2325d19 Bump node-fetch to address dependabot alerts (#12553)
fdb034ca94 split-release: Canton dependencies to public GCS (#12552)
3f8ec07bdf Upgrade to the latest Canton snapshot (#12544)
8692d80b33 Fix trigger compat test for canton sandbox (#12549)
3ea8aded13 LF: Test evaluation order of exercise and exercise_by_key (#12519)
36f8d67c59 Upgrade `css-loader` to 5.2.7 (#12550)
a150737d17 Upgrade msys2 (#12545)
01447fd489 docs: typos and minor clarification for authz docs (#12534)
fbf244e2f8 alert on invalid users in create-daml-app (#12518)
f2b4abe187 update NOTICES file (#12542)
bd0ae0239b Startup initialization header for runners [DPP-860] (#12525)
15c0ad7efa Migration DB unit testing for PostgreSQL v111 to v116 [DPP-756] (#12517)
7218e6f95d ledger-api-test-tool: Remove retired tests. (#12535)
cbb4986e89 Add Empty GRPC Metering Report Service [DPP-856] (#12515)
4d26f0899e ledger-api-test-tool: Enable ParticipantPruningIT for everyone. [KVL-1261] (#12529)
3044958cdf ledger-api-test-tool: Remove deprecated options. (#12533)
5ab9eae033 Make mutable-contract-state-cache the default and only option (#12528)
89d95e6d6c user management: allow ':' in user ids (#12531)
f5d7821ace compatibility: Disable MultiParticipantIT for old versions. (#12526)
2deeabf3fa [User management] Add feature flag to enable user management [DPP-827] (#12420)
b843117501 Drop feature flag for v0 cid support (#12522)
73277f4210 Upgrade to oracle 19.14 image for ci (#12523)
cdde8df9fd ledger-api-test-tool: Add assertions and a test case for successful completions when converting deduplication durations to offsets [KVL-1220] (#12462)
2267d1a15d sandbox-classic uses Sandbox-on-X internals [DPP-860] (#12466)
20cda0181a specify that deduplication offsets are exclusive (#12488)
e9e1b06da5 ledger-api-test-tool: Enable `MultiPartySubmissionIT` for everyone. [KVL-1261] (#12500)
a5f56e0671 Use canton sandbox in script+trigger compat tests (#12514)
9c03e7908b Build create-daml-app with -Werror (#12513)
688f1e1e0b Drop v0 contract ids (#12464)
c35d34db3d Remove ResetService from the grpc documentation (#12512)
eb618935ff resources: Remove ResettableResourceOwner. (#12499)
7880d5416d Add --port-file and --dar flags in daml sandbox (#12505)
3c8a6468fb Tell users to use --install-assistant=yes (#12507)
36536fabfa LF: Test evaluation order of lookup_by_key (#12494)
ad7ce54075 participant-integration-api: Factor out feature flags into a class. (#12496)
4d698c111a Update windows testing instructions (#12504)
0f8e40c92d user management: add reference docs (#12398)
96b8651863 Drop orphaned vim syntax files (#12502)
a644406539 Avoid stale DAML_SDK_VERSION_LATEST in assistant (#12493)
7a1b37c1a1 [User management] Nullable primary_party and for_party (#12419)
cd30f01779 update NOTICES file (#12498)
b11f11bde0 Drop support for no seeding in sandbox-classic (#12495)
5d2be1e1fd ledger-api-test-tool-on-canton: Use `join` to clean up exclusions. (#12497)
072d57a831 DPP-553 Consistently use anorm string interpolation (#12266)
f03fa6a5f1 ledger-api-test-tool: Govern ContractIdIT test runs through a feature. (#12454)
dd4fc1f755 split release (#12492)
de2a8c0c04 ci: use service account for Windows nodes (#12489)
644efd155d Lower log level to warn (#12490)
```
changelog_begin
changelog_end