-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove mentions of controller..can
choice syntax in 2.8.0 docs
#453
Conversation
controller..can
syntax in 2.8.0 docscontroller..can
choice syntax in 2.8.0 docs
.. literalinclude:: ../code-snippets/Reference.daml | ||
:language: daml | ||
:start-after: -- start choice-first choice name snippet | ||
:end-before: -- end choice-first choice name snippet | ||
:caption: Option 1 for specifying choices: choice name first | ||
|
||
.. literalinclude:: ../code-snippets/Reference.daml | ||
:language: daml | ||
:start-after: -- start controller-first choice name snippet | ||
:end-before: -- end controller-first choice name snippet | ||
:caption: Option 2 for specifying choices (deprecated syntax): controller first | ||
|
||
:start-after: -- start new choice name snippet | ||
:end-before: -- end new choice name snippet |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these new snippets will likely fail until the daml PR that adds them is merged into main
@@ -56,7 +56,6 @@ Choice Name | |||
|
|||
- The name of the choice. Must begin with a capital letter. | |||
- If you're using choice-first, preface with ``choice``. Otherwise, this isn't needed. | |||
- Must be unique in your project. Choices in different templates can't have the same name. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this has ever been true, at least not since I joined
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AFAIK It's true within a file/module, but not across a project.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, I've updated to reflect this
3a5ed5a
to
38a77b9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
thanks for your feedback @carrielaben-da |
8359134
to
52d0334
Compare
IIUC, this will only build successfully once digital-asset/daml#17362 (digital-asset/daml@1bee52e) is released and we update
on the flipside, that means we don't really need to keep the old snippets around, so I'll be removing them next week |
52d0334
to
d3fb57e
Compare
d3fb57e
to
3062ec0
Compare
Updated |
docs/2.8.0/versions.json
Outdated
@@ -1,5 +1,5 @@ | |||
{ | |||
"daml": "2.7.0-snapshot.20230719.11983.0.vd999a21a", | |||
"daml": "cbcaca974ac24c69246c08f167f20b759ebfade6", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I messed up, digital-asset/daml#17390 isn't part of today's release. do I have to wait for the next release or is it okay to point to (the current commit of) main
?
docs/2.8.0/versions.json
Outdated
@@ -1,5 +1,5 @@ | |||
{ | |||
"daml": "2.7.0-snapshot.20230719.11983.0.vd999a21a", | |||
"daml": "cbcaca974ac24c69246c08f167f20b759ebfade6", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"daml": "cbcaca974ac24c69246c08f167f20b759ebfade6", | |
"daml": "2.8.0-snapshot.20230912.12110.0.v788fccd9", |
These must match folders on Artifactory, so using git commits won't work here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, I didn't see this last week and thought I had to wait until a snapshot release, now I see that the snapshots on Artifactory are enough. Oh well, lesson learned for the next time :)
Co-authored-by: carrielaben-da <91496516+carrielaben-da@users.noreply.github.com>
81b625c
to
938f592
Compare
Part of digital-asset/daml#17361
Daml PRs: digital-asset/daml#17362, digital-asset/daml#17390
DA-GHC PR: digital-asset/ghc#171
docs.daml.com PR: #453
TODO
daml
version indocs/2.8.0/versions.json
must be updated to the snapshot with the changes from Clean up template/choice snippets after 'controller..can' removal daml#17390docs.daml.com/docs/2.8.0/versions.json
Line 2 in d3fb57e