Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions docs/reference/migrations.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,24 @@ This page can help when migrating Taskgraph across major versions.
for it manually. If ``use-caches`` was previously set to ``false``, omit
``checkout`` in the example above. If ``use-caches`` was previously set to
``true``, replace ``true`` with the value above (including ``checkout``).
* Invert any usage of the dict keys and values returned by `get_ancestors`:

For example, if you were using:

.. code-block:: python

for label, taskid in get_ancestors(...):
...

Change it to:

.. code-block:: python

for taskid, label in get_ancestors(...):
...

Note that due to this change `get_ancestors` may return multiple tasks with
the same label now, which your code may need to deal with.

11.x -> 12.x
------------
Expand Down
Loading