Closed reckart closed 3 years ago
As part of the ticket, I want to add a proper String representation of our objects (Client, Pipeline, Process, etc.). Right now, if we call
print(Pipeline), we get something like: <averbis.core._rest_client.Pipeline object at 0x7f91657b7400>
Instead, I would like to have the output Pipeline(name="Discharge", project="test")
. This can be archieved using the repr method for each class.
Describe the refactoring action Currently, methods for managing processes are exposed at the level of the project. However, processes are bound tightly to document collections, so it may be better to move the methods there.
Expected benefit Facilitate APi for the user e.g. os that an info such das the document collection name does not need to be specified multiple times: