ITISFoundation / osparc-simcore

🐼 osparc-simcore simulation framework
https://osparc.io
MIT License
43 stars 27 forks source link

Catalog background task fails to add access rights to a project not listed in the services_meta_data #1854

Open pcrespov opened 3 years ago

pcrespov commented 3 years ago

There is a published project in the db that includes a service (bornstein-viewer 3.0.3) that is actually NOT listed in the service_metadata image.png

Therefore, the background task tries to give access rights to something that "does not exists" and consequently fails constantly image.png

SEE _ensure_published_templates_accessible

This raises the questions on what to do with projects that include services NOT listed in services_meta_data?

sanderegg commented 2 years ago

@pcrespov is that still an issue for you? and why? services_metadata has to be present in order to create access_rights since there is a direct relation between both tables

pcrespov commented 2 years ago

Yes, This can still be an issue.

The problem is not about the link between service metadata and access rights table but rather about having projects with services that are not listed anymore (in the service metadata table)

This is something that we should audit to make sure these inconsistencies do not happen.

sanderegg commented 1 month ago

@pcrespov this is outdated or not?