Drop scenarios from the user-facing SDK
See original GitHub issueFor 2.0 we want our users to use Daml Script instead. We have lots of tests and internals that rely on scenarios so as a first step, we should only drop it from the user facing SDK.
I’d suggest the following steps:
- Add a hidden flag to damlc to control whether scenarios are supported or not. If scenario support is off we error out when compiling scenarios with an error message suggesting to users to use Daml Script instead. It’s fine if that flag is available to users in the resulting SDK as long as it does not show up in
--help
. We can start with keeping scenario support on by default and then gradually switch it off in places until we can flip the default. - The script/scenario service should gain a flag that enables/disables scenario support. If it is disabled we reject grpc requests to start scenarios (but continue accepting requests for scripts). Apart from tests the script service is always started from damlc so it should pass that flag depending on its own mode.
We can then later start switching over our own tests and eventually kill that flag but we don’t have to do that on a 2.0 timeline.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:8 (7 by maintainers)
Top Results From Across the Web
JavaScript SDK Design Guide - GitHub
Suggest improvements by editing, or drop suggestions on the issue list. ... Three use cases worth considering while designing a JavaScript SDK:.
Read more >How To Implement Drag And Drop In JavaScript Using ...
How to write a test case to automate Drag and Drop in JavaScript using ... “The user-facing API for emulating complex user gestures....
Read more >What's new about AWS SDK for JavaScript v3? - cloudonaut
In this blog post, I show you the new capabilities and use cases where they help you most, no matter if you use...
Read more >Retries and timeouts - AWS SDK for .NET
The AWS SDK for .NET can retry requests that fail due to server-side throttling or dropped connections. There are two properties of service...
Read more >Operator SDK Version upgrade guide
This document aims to facilitate the process of upgrading the Operator SDK version for an existing operator project. In most cases the upgrading ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Let’s keep this open until we flipped the default.
Yep, thanks a lot for taking care of this!