Skip to content

psp-10833 add logic to override version compatibility warnings on fro…#5207

Merged
devinleighsmith merged 4 commits intobcgov:devfrom
devinleighsmith:psp-10833
Feb 26, 2026
Merged

psp-10833 add logic to override version compatibility warnings on fro…#5207
devinleighsmith merged 4 commits intobcgov:devfrom
devinleighsmith:psp-10833

Conversation

@devinleighsmith
Copy link
Collaborator

…ntend.

@devinleighsmith devinleighsmith self-assigned this Feb 12, 2026
@devinleighsmith devinleighsmith added the enhancement New feature or request label Feb 12, 2026
@github-actions
Copy link
Contributor

See CodeCov Report Here: https://app.codecov.io/github/bcgov/psp/pull/5207

1 similar comment
@github-actions
Copy link
Contributor

See CodeCov Report Here: https://app.codecov.io/github/bcgov/psp/pull/5207

const match = apiDbCompatibility.find(entry => entry.apiVersion === apiBuildVersion);
match?.databaseVersions.forEach(dbVersion => allowedDbVersions.add(dbVersion));
}
console.debug(import.meta.env.VITE_API_DB_VERSION_COMPATIBILITY);
Copy link
Collaborator

Choose a reason for hiding this comment

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

please remove console.debug

const [version, setVersion] = React.useState<IApiVersion>(null);

const apiDbCompatibility = React.useMemo(
() => parseApiDbCompatibility(import.meta.env.VITE_API_DB_VERSION_COMPATIBILITY),
Copy link
Collaborator

Choose a reason for hiding this comment

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

question - how are we going to populate this VITE_ variable in OpenShift? I believe these are hardcoded into JavaScript code at the time of build

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fair point, I've updated this to use the tenant json.

@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
C Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@devinleighsmith devinleighsmith added this pull request to the merge queue Feb 26, 2026
@github-actions
Copy link
Contributor

See CodeCov Report Here: https://app.codecov.io/github/bcgov/psp/pull/5207

Merged via the queue into bcgov:dev with commit 632054f Feb 26, 2026
14 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants