Skip to content

Commit

Permalink
Add a first version of new upgrade docs (digital-asset#4750)
Browse files Browse the repository at this point in the history
This PR adds a first version of update documentation and removes the
existing docs which were talking about `damlc migrate`.
So far the docs focus on the high-level approach to upgrades taken in
DAML and give an example of how to structure upgrade contracts.

What is not covered so far (and I’d like to leave that for a separate
PR) is:

1. Technical details: How are things split up into packages, which
restrictions apply to data-dependencies, …
2. Deployment and Running the upgrade via triggers/daml script/…
3. Common patterns for handling this in UIs (e.g. “locking” old contracts)

changelog_begin
changelog_end
  • Loading branch information
cocreature authored Mar 2, 2020
1 parent 7a9b9a3 commit 1b5140e
Show file tree
Hide file tree
Showing 21 changed files with 161 additions and 420 deletions.
5 changes: 5 additions & 0 deletions docs/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,11 @@ daml_test(
srcs = glob(["source/daml/intro/daml/**/*.daml"]),
)

daml_test(
name = "daml-upgrade-daml-test",
srcs = glob(["source/upgrade/**/*.daml"]),
)

filegroup(
name = "daml-intro-1",
srcs = glob(
Expand Down
1 change: 1 addition & 0 deletions docs/configs/pdf/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ Experimental features

experimental/warning
daml-integration-kit/index
upgrade/index
json-api/index
triggers/index
daml-script/index
Expand Down
3 changes: 3 additions & 0 deletions docs/source/daml/intro/6_Parties.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ This may seem awkward, but notice that the ``ensure`` clause is gone from the ``

You'll now learn a couple of common ways of building issuance and transfer workflows for the above ``Iou``, before diving into the authorization model in full.


.. _intro propose accept:

Use propose-accept workflows for one-off authorization
------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ DAML SDK documentation
experimental/warning
daml-integration-kit/index
tools/ledger-api-test-tool/index
migrate/index
upgrade/index
json-api/index
DAML Triggers <triggers/index>
DAML Script <daml-script/index>
Expand Down
16 changes: 0 additions & 16 deletions docs/source/migrate/foo-1.0.0/daml.yaml

This file was deleted.

14 changes: 0 additions & 14 deletions docs/source/migrate/foo-1.0.0/daml/Foo.daml

This file was deleted.

5 changes: 0 additions & 5 deletions docs/source/migrate/foo-1.0.0/ui-backend.conf

This file was deleted.

16 changes: 0 additions & 16 deletions docs/source/migrate/foo-2.0.0/daml.yaml

This file was deleted.

22 changes: 0 additions & 22 deletions docs/source/migrate/foo-2.0.0/daml/Foo.daml

This file was deleted.

5 changes: 0 additions & 5 deletions docs/source/migrate/foo-2.0.0/ui-backend.conf

This file was deleted.

1 change: 0 additions & 1 deletion docs/source/migrate/foo-upgrade-2.0.0/.gitignore

This file was deleted.

20 changes: 0 additions & 20 deletions docs/source/migrate/foo-upgrade-2.0.0/daml.yaml

This file was deleted.

16 changes: 0 additions & 16 deletions docs/source/migrate/foo-upgrade-2.0.0/daml/Foo.daml

This file was deleted.

37 changes: 0 additions & 37 deletions docs/source/migrate/foo-upgrade-2.0.0/daml/FooAGenInstances.daml

This file was deleted.

51 changes: 0 additions & 51 deletions docs/source/migrate/foo-upgrade-2.0.0/daml/FooBGenInstances.daml

This file was deleted.

17 changes: 0 additions & 17 deletions docs/source/migrate/foo-upgrade-2.0.0/daml/FooManual.daml

This file was deleted.

16 changes: 0 additions & 16 deletions docs/source/migrate/foo-upgrade-2.0.0/daml/FooWithGenerics.daml

This file was deleted.

5 changes: 0 additions & 5 deletions docs/source/migrate/foo-upgrade-2.0.0/ui-backend.conf

This file was deleted.

Loading

0 comments on commit 1b5140e

Please sign in to comment.