Open mguidon opened 3 weeks ago
What happens if later the Project gets untagged? Or tags change?
What happens if later the Project gets untagged? Or tags change?
I will enhance the resource tracker so that for specific fields (starting with tags, but potentially adding project names, ..), it will always display the latest up-to-date value or the last up-to-date before it was deleted.
Goal/Current Use Case:
Current Challenges:
project_tags
table poses an issue: if a project is deleted, its information would be lost and would no longer be listed. (Currently, the RUT maintains the complete history of runs, so it needs access to the project tags even after the project are deleted.)Proposed Solutions:
Primary Solution:
Use the project_tags
table, but instead of deleting rows when a project is deleted, mark them as deleted. This ensures they are not listed anymore but remain accessible for historical purposes.
Alternative Solution:
Keep a second copy of the project_tags
table in the RUT. However, this introduces challenges in maintaining synchronization—not only when a tag is added or removed from a project, but also when the tag resource itself is deleted or updated. (started to implement but I do not think it is a good way to go: https://github.com/ITISFoundation/osparc-simcore/pull/6708)
I found solution 1. more reasonable to implement.
Implemented behavior:
TODO: create needed tags with Nik and Jacqueline
Add the possibility to use tags to help with reporting of project costs. (req. by Jacqueline)