question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Drop scenarios from the user-facing SDK

See original GitHub issue

For 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:

  1. 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.
  2. 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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
cocreaturecommented, Dec 15, 2021

Let’s keep this open until we flipped the default.

0reactions
cocreaturecommented, Jan 26, 2022

Yep, thanks a lot for taking care of this!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found