Skip to content

Conversation

@odeimaiz
Copy link
Member

@odeimaiz odeimaiz commented Jun 23, 2025

What do these changes do?

The frontend was not passing the extraCreditsInUsd to the backend in the payload. Here the fix.
credits

Related issue/s

How to test

Dev-ops

@odeimaiz odeimaiz added this to the Engage milestone Jun 23, 2025
@odeimaiz odeimaiz self-assigned this Jun 23, 2025
@odeimaiz odeimaiz added bug buggy, it does not work as expected a:frontend issue affecting the front-end (area group) release Preparation for pre-release/release 🤖-automerge marks PR as ready to be merged for Mergify labels Jun 23, 2025
@odeimaiz odeimaiz requested review from Copilot and pcrespov June 23, 2025 08:52
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 bug where the frontend was not passing the welcome credits in USD to the backend by ensuring that the proper numeric value (via getValue()) is used.

  • In osparc/po/UsersPending.js, a local constant extraCreditsInUsd is introduced to capture and pass the credit value if greater than zero.
  • In osparc/po/Invitations.js, the condition now correctly retrieves the numeric value with getValue() before checking and passing it in the payload.

Reviewed Changes

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

File Description
services/static-webserver/client/source/class/osparc/po/UsersPending.js Reads credit value into a constant and adds it to the invitation payload if greater than zero.
services/static-webserver/client/source/class/osparc/po/Invitations.js Corrects the conditional check by reading the numeric value from the credit field before passing it to the backend.

@pcrespov pcrespov enabled auto-merge (squash) June 23, 2025 09:00
@pcrespov
Copy link
Member

@mergify queue

@mergify
Copy link
Contributor

mergify bot commented Jun 23, 2025

queue

🛑 The pull request has been merged manually

The pull request has been merged manually at 4bf443b

@sonarqubecloud
Copy link

@pcrespov pcrespov merged commit 4bf443b into ITISFoundation:master Jun 23, 2025
59 of 60 checks passed
@matusdrobuliak66 matusdrobuliak66 mentioned this pull request Jun 23, 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.

🐛 Welcome credits created via an invitation link from the PO Center do not work

4 participants