Adding support to replaced_task_nesting in chains allows for overcoming a very specific use case.
Overall, what it does is set all of the tasks of the chain with the correct replaced_task_nesting level, if the canvas is built from a chain that contains a replaced task that is also a chain (in which case the DAG gets broken as two tasks can be each other's parents which this fix allows overcoming).

TODO:
Maybe add some example doc with enhanced explanation although it would require a bit of effort so I'll get to it at a later date.
Added support for replaced_task_nesting in chains. Adding support to replaced_task_nesting in chains allows for overcoming a very specific use case.
Overall, what it does is set all of the tasks of the chain with the correct replaced_task_nesting level, if the canvas is built from a chain that contains a replaced task that is also a chain (in which case the DAG gets broken as two tasks can be each other's parents which this fix allows overcoming).

TODO:
Maybe add some example doc with enhanced explanation although it would require a bit of effort so I'll get to it at a later date.
pytest==7.4.1
pytest-celery==0.0.0
pytest-subtests==0.11.0
pytest-timeout==2.1.0
pytest-click==1.1.0
pytest-order==1.1.0
boto3>=1.26.143
moto>=4.1.11
# typing extensions
mypy==1.5.1; platform_python_implementation=="CPython"
pre-commit==3.3.3
-r extras/yaml.txt
-r extras/msgpack.txt
-r extras/mongodb.txt

pytest==7.4.1
pytest-celery==0.0.0
pytest-subtests==0.11.0
pytest-timeout==2.1.0
pytest-click==1.1.0
pytest-order==1.1.0
boto3>=1.26.143
moto>=4.1.11
# typing extensions
mypy==1.5.1; platform_python_implementation=="CPython"
pre-commit==3.3.3
-r extras/yaml.txt
-r extras/msgpack.txt
-r extras/mongodb.txt
