Skip to content

Conversation

@odeimaiz
Copy link
Member

@odeimaiz odeimaiz commented Jun 18, 2025

What do these changes do?

When opening the project card, the frontend was loosing the IN_DEBT information of it, not letting the users pay the debt and keeping the project embargoed until the fix was manually made in the DB. This PR fixes that situation by tracking the debts in the Store.

Bonus:

  • Found another way to get the project_in_debt response. So far it was only traced in the :open study call. In the animation, the information is received when trying to switch wallet. @matusdrobuliak66 is there any other call where you attach the project_in_debt info? All good

Buggy:
Buggy

Fixed:
Fixed

Related issue/s

How to test

Dev-ops

@odeimaiz odeimaiz added this to the Engage milestone Jun 18, 2025
@odeimaiz odeimaiz self-assigned this Jun 18, 2025
@odeimaiz odeimaiz added bug buggy, it does not work as expected a:frontend issue affecting the front-end (area group) labels Jun 18, 2025
@odeimaiz odeimaiz changed the title 🐛 [Frontend] Fix pay debt widget 🐛 [Frontend] Fix pay debt tracking Jun 19, 2025
@odeimaiz odeimaiz marked this pull request as ready for review June 19, 2025 08:35
@odeimaiz odeimaiz requested a review from Copilot June 19, 2025 08:35
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR addresses a frontend bug where the debt status of a study was lost, preventing users from paying off debts and leaving projects embargoed.

  • isInDebt now retrieves debt information via the centralized Store
  • A new debt-tracking mechanism is added to the Store with methods setStudyDebt, getStudyDebt, and isStudyInDebt
  • The ResourceDetails component now updates its resource debt information from the Store

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
services/static-webserver/client/source/class/osparc/study/Utils.js Updates isInDebt to check debt via the Store
services/static-webserver/client/source/class/osparc/store/Store.js Introduces debt tracking and relevant methods to store study debts
services/static-webserver/client/source/class/osparc/dashboard/ResourceDetails.js Updates ResourceDetails to restore debt info from the Store

@odeimaiz odeimaiz added the release Preparation for pre-release/release label Jun 19, 2025
@odeimaiz odeimaiz changed the title 🐛 [Frontend] Fix pay debt tracking 🐛 [Frontend] Fix in_debt tracking Jun 19, 2025
Copy link
Collaborator

@matusdrobuliak66 matusdrobuliak66 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@odeimaiz odeimaiz added the 🤖-automerge marks PR as ready to be merged for Mergify label Jun 19, 2025
@odeimaiz
Copy link
Member Author

@mergify queue

@mergify
Copy link
Contributor

mergify bot commented Jun 19, 2025

queue

🟠 Waiting for conditions to match

  • any of: [🔀 queue conditions]
    • all of: [📌 queue conditions of queue default]
      • any of: [🛡 GitHub branch protection]
        • check-neutral = system-tests
        • check-skipped = system-tests
        • check-success = system-tests
      • #approved-reviews-by >= 2 [🛡 GitHub branch protection]
      • #approved-reviews-by>=2
      • #changes-requested-reviews-by = 0 [🛡 GitHub branch protection]
      • #changes-requested-reviews-by=0
      • #review-threads-unresolved = 0 [🛡 GitHub branch protection]
      • #review-threads-unresolved=0
      • -conflict
      • -draft
      • base=master
      • branch-protection-review-decision = APPROVED [🛡 GitHub branch protection]
      • label!=🤖-do-not-merge
      • label=🤖-automerge
      • any of: [🛡 GitHub branch protection]
        • check-skipped = deploy to dockerhub
        • check-neutral = deploy to dockerhub
        • check-success = deploy to dockerhub
      • any of: [🛡 GitHub branch protection]
        • check-success = unit-tests
        • check-neutral = unit-tests
        • check-skipped = unit-tests
      • any of: [🛡 GitHub branch protection]
        • check-success = check OAS' are up to date
        • check-neutral = check OAS' are up to date
        • check-skipped = check OAS' are up to date
      • any of: [🛡 GitHub branch protection]
        • check-success = integration-tests
        • check-neutral = integration-tests
        • check-skipped = integration-tests
      • any of: [🛡 GitHub branch protection]
        • check-success = build-test-images (frontend) / build-test-images
        • check-neutral = build-test-images (frontend) / build-test-images
        • check-skipped = build-test-images (frontend) / build-test-images
  • -closed [📌 queue requirement]
  • -conflict [📌 queue requirement]
  • -draft [📌 queue requirement]
  • any of: [📌 queue -> configuration change requirements]
    • -mergify-configuration-changed
    • check-success = Configuration changed

@odeimaiz
Copy link
Member Author

@mergify queue

@mergify
Copy link
Contributor

mergify bot commented Jun 19, 2025

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at a21f916

@sonarqubecloud
Copy link

@mergify mergify bot merged commit a21f916 into ITISFoundation:master Jun 19, 2025
59 checks passed
@odeimaiz odeimaiz deleted the fix/track-debt branch June 19, 2025 10:24
@matusdrobuliak66 matusdrobuliak66 mentioned this pull request Jun 20, 2025
92 tasks
@matusdrobuliak66 matusdrobuliak66 mentioned this pull request Aug 5, 2025
88 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🤖-automerge marks PR as ready to be merged for Mergify a:frontend issue affecting the front-end (area group) bug buggy, it does not work as expected release Preparation for pre-release/release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants