haystack/releasenotes/notes/remove-support-to-connect-component-to-self-6eedfb287f2a2a02.yaml
Ajit Singh 7ba30d5691
feat: Pipeline.connect() will now raise a PipelineConnectError if sender and receiver are the same Component (#8403)
* Added equality check for sender and receiver in connection function of pipeline

* Update base.py

irrelevant changes reverted

* added release note

* altered a walk with cycle test

* added a test to verify that pipeline raises PipelineConnectError when adding a component to itself

* Update release notes

* Remove self connection feature tests

* Tidy up connect unit test

---------

Co-authored-by: Silvano Cerza <silvanocerza@gmail.com>
2024-09-30 15:52:36 +02:00

6 lines
180 B
YAML

---
upgrade:
- |
`Pipeline.connect()` will now raise a `PipelineConnectError` if `sender` and `receiver` are the same Component.
We do not support this use case anymore.