Skip to content

fix(client): corrige le lien footer de version en 404 pour les déploiements PR - #2567

Merged
shikanime merged 2 commits into
mainfrom
fix/footer-version-link-404
Aug 26, 2026
Merged

fix(client): corrige le lien footer de version en 404 pour les déploiements PR#2567
shikanime merged 2 commits into
mainfrom
fix/footer-version-link-404

Conversation

@shikanime

Copy link
Copy Markdown
Member

Issues liées

#2566


Quel est le comportement actuel ?

Le footer client lie toujours la version à https://github.com/cloud-pi-native/console/releases/tag/${appVersion}.
En déploiement CI/merge-queue, APP_VERSION vaut pr-<num> (affiché vpr-<num>), étiquette jamais publiée en release : la page renvoie une 404.

Quel est le nouveau comportement ?

Le lien est résolu selon la nature de APP_VERSION :

  • étiquette de PR (pr-<num>) → https://github.com/cloud-pi-native/console/pull/<num>
  • tag semver (9.24.4) → https://github.com/cloud-pi-native/console/releases/tag/v9.24.4
  • sinon (local vpr-dev, valeur inconnue) → index https://github.com/cloud-pi-native/console/releases

Cette PR introduit-elle un breaking change ?

Non.

Autres informations

Modification isolée à apps/client/src/App.vue (un seul fichier, 11 ajouts / 2 suppressions).
Le commit system-settings.controller.ts présent dans le working tree a été volontairement exclu de cette PR.

@StephaneTrebel StephaneTrebel left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Mieux qu'avant, assurément 👍

@shikanime
shikanime force-pushed the fix/footer-version-link-404 branch from 497adc8 to 026a5e0 Compare August 26, 2026 12:31
The footer hardcoded the releases/tag URL, which 404s for PR deploy
labels (pr-<num> shown as vpr-<num>). Map semver tags to their release
page, PR labels to the matching pull request, and fall back to the
releases index otherwise.

Refs #2566
Signed-off-by: William Phetsinorath <william.phetsinorath-open@interieur.gouv.fr>
Change-Id: I042a88ec715b99247c1b3129d4afd3e16a6a6964
@shikanime
shikanime force-pushed the fix/footer-version-link-404 branch from 026a5e0 to a09d534 Compare August 26, 2026 12:32
@cloud-pi-native-sonarqube

Copy link
Copy Markdown

@shikanime
shikanime added this pull request to the merge queue Aug 26, 2026
Merged via the queue into main with commit 96a48c4 Aug 26, 2026
34 checks passed
@shikanime
shikanime deleted the fix/footer-version-link-404 branch August 26, 2026 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working built

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants