Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tags to Resource Tracker (Reporting) #1771

Open
1 of 3 tasks
mguidon opened this issue Nov 5, 2024 · 4 comments · Fixed by ITISFoundation/osparc-simcore#6722
Open
1 of 3 tasks

Add tags to Resource Tracker (Reporting) #1771

mguidon opened this issue Nov 5, 2024 · 4 comments · Fixed by ITISFoundation/osparc-simcore#6722
Assignees
Labels
PO issue Created by Product owners
Milestone

Comments

@mguidon
Copy link
Member

mguidon commented Nov 5, 2024

Add the possibility to use tags to help with reporting of project costs. (req. by Jacqueline)

Event Horizon

Preview Give feedback
  1. a:resource-usage-tracker a:webserver
    matusdrobuliak66

Tasks

Preview Give feedback
No tasks being tracked yet.
@mguidon mguidon added the PO issue Created by Product owners label Nov 5, 2024
@odeimaiz
Copy link
Member

odeimaiz commented Nov 5, 2024

What happens if later the Project gets untagged? Or tags change?

@matusdrobuliak66
Copy link
Contributor

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.

@matusdrobuliak66
Copy link
Contributor

matusdrobuliak66 commented Nov 13, 2024

  • Goal/Current Use Case:

    • The financial department wants to create tags corresponding to billed projects. Users will then add these tags to the studies they are working on. (This should also be possible retrospectively.)
    • When a CSV file with resource usage is exported, it should include the project tags.
  • Current Challenges:

    • Currently, the resource tracker stores all information only at the start of the service run. This approach is insufficient because tags need to be added retrospectively.
    • Simply joining the current 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:

    1. 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.

    2. 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: WIP: ✨ adding tags to RUT osparc-simcore#6708)

I found solution 1. more reasonable to implement.

  • Implemented behavior:

    • Always display the latest project tags in the listing of service runs.
    • If a project is deleted, retain and display the previously associated tags in the listing.
    • If a tag resource is deleted, the tag will also be removed from all previous service runs.
    • If a tag resource is renamed, it will be updated across all previous service runs.

@matusdrobuliak66
Copy link
Contributor

TODO: create needed tags with Nik and Jacqueline

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PO issue Created by Product owners
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants