PlanQK / planqk-platform

PlanQK Platform Issue Repository
3 stars 0 forks source link

Pub/Sub Topics: Information about algorithm relations is missed. #55

Closed darya-mart closed 3 years ago

darya-mart commented 3 years ago

Describe the bug The field "algorithmRelations" in entity "Algorithm" is always empty.

To Reproduce Steps to reproduce the behavior:

  1. Create a new algorithm relation -> Topic is pushed.
  2. See json body -> the field "algorithmRelations" is an empty array.
darya-mart commented 3 years ago

Hi, is it also fixed in the productive environment? Because I still don´t get this information.

darya-mart commented 3 years ago

Steps to reproduce: 1) Create a new algorithm, e.g. named "Test Algorithm".
Result: A topic about about algorithm creation is received with body { "acronym": null, "nisq_ready": false, "speed_up": null, "entityMaturity": "INITIAL", "publications": [], "intent": null, "problem": null, "input_format": null, "output_format": null, "requiredComputeResourceProperties": [], "algo_parameter": null, "sketches": [], "solution": null, "computation_model": "QUANTUM", "problem_types": [], "application_areas": [], "tags": [], "implementations": null, "discussion_topics": [], "learning_methods": [], "algorithm_relation": null, "id": "3b0c06bb-77a2-4102-96b4-0316828c3708", "name": "Test Algorithm" }

2) Go to an existing algorithm, e.g. "Quanvolutional Neuronal Networks" (https://platform.planqk.de/algorithms/ae45bff7-8f5b-43f8-a39c-1b6e004d8ecd/#) and create a new relation "is parent of" with the "Test Algorithm".
Result: A topic about about algorithm relation creation is received with the following message entity data { "entity": { "id": "cb7905ea-2c02-4c04-a27c-42cddb95effa", "algorithmRelationType": { "id": "2ad371af-f66c-4fac-a15f-c776774c46da", "name": "is parent of", "inverseTypeName": "is child of" } } }

Problem: From this information we can not infer which two algorithms conncects the relation with id "cb7905ea-2c02-4c04-a27c-42cddb95effa".

Expected Result : either subfields "target" (id of the target algorithm) and "source" (id of the source algorithm) in the field "entity" of the algorithm relation or two additional topics about update of the target algorithm and source algorithm.