-
Notifications
You must be signed in to change notification settings - Fork 32
🐛 [Frontend] Fix in_debt tracking #7927
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
Conversation
There was a problem hiding this 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 |
services/static-webserver/client/source/class/osparc/dashboard/ResourceDetails.js
Outdated
Show resolved
Hide resolved
matusdrobuliak66
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
|
@mergify queue |
🟠 Waiting for conditions to match
|
|
@mergify queue |
✅ The pull request has been merged automaticallyThe pull request has been merged automatically at a21f916 |
|



What do these changes do?
When opening the project card, the frontend was loosing the
IN_DEBTinformation 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:
@matusdrobuliak66 is there any other call where you attach the project_in_debt info?All goodBuggy:

Fixed:

Related issue/s
How to test
Dev-ops