Remove dependency on Directory
Comes from #226 (closed) and while working on the unit tests.
There is a dependency on the Directory when creating a Contract while you don't have the Manager addresses of all Peers on the Contract.
Proposed solution:
- Add GET PUT POST /peers endpoint to REST Internal Manager API
- Add a Peers page to the Controller which shows the known Peers. Also allow manually adding Peer IDs and their Manager address.
- When creating a Contract using the internal Manager and one of the Peer Manager addresses is not found, a FailedContractDistribution should be created.
- How should we announce to the directory in case the announce failed on Manager start-up?
- In the Controller UI display at least the PeerID Contract distribution table. When the Directory is down, the UI is unable to retrieve the Peer name. In this case display the Peer ID instead of displaying nothing
Edited by Ronald Koster