Skip to content

fix(client): guard syncRepository against cleared selectedRepo after await - #2603

Merged
shikanime merged 1 commit into
mainfrom
fix/repo-sync-selectedrepo-race
Sep 8, 2026
Merged

fix(client): guard syncRepository against cleared selectedRepo after await#2603
shikanime merged 1 commit into
mainfrom
fix/repo-sync-selectedrepo-race

Conversation

@shikanime

@shikanime shikanime commented Aug 26, 2026

Copy link
Copy Markdown
Member

Issues liées

Issues numéro:


Quel est le comportement actuel ?

Le snackbar affiche can't access property "internalRepoName", h.value is undefined au lancement d'une synchronisation de dépôt si la modale est fermée pendant l'appel (save / delete / reload) : selectedRepo est vidé, et syncRepository() lit selectedRepo.value.internalRepoName après l'await de Repositories.sync(...).

Quel est le nouveau comportement ?

syncRepository() fige const repo = selectedRepo.value avant l'await et utilise cette référence pour .id et .internalRepoName. Aucun accès post-await sur une référence volatile ; plus de TypeError en snackbar.

Cette PR introduit-elle un breaking change ?

Non.

Autres informations

Fichier modifié : apps/client/src/components/ProjectResources.vuesyncRepository()

@shikanime shikanime added the bug Something isn't working label Aug 26, 2026
@shikanime shikanime self-assigned this Aug 26, 2026
@shikanime shikanime added this to the 9.24.5 milestone Aug 26, 2026
@github-actions github-actions Bot added the built label Aug 26, 2026
@shikanime shikanime modified the milestones: 9.24.5, 9.25.0 Aug 26, 2026
@StephaneTrebel StephaneTrebel modified the milestones: 9.25.0, 9.26.0, 10.0.0 Sep 1, 2026
@shikanime
shikanime marked this pull request as ready for review September 1, 2026 08:23
@shikanime
shikanime requested a review from a team as a code owner September 1, 2026 08:23
@shikanime shikanime added the preview Deploy preview app with Argo-cd label Sep 1, 2026
@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

🤖 Hey !

A preview of the application is available at : https://console-pr-2603.dso.cpin-hp.numerique-interieur.fr

Please be patient, deployment may take a few minutes.

@shikanime shikanime closed this Sep 1, 2026
@shikanime
shikanime deleted the fix/repo-sync-selectedrepo-race branch September 1, 2026 10:29
@shikanime
shikanime restored the fix/repo-sync-selectedrepo-race branch September 3, 2026 09:11
@shikanime shikanime reopened this Sep 3, 2026
@shikanime shikanime modified the milestones: 10.0.0, 9.26.0 Sep 3, 2026
@shikanime
shikanime enabled auto-merge September 3, 2026 09:15
@shikanime
shikanime added this pull request to the merge queue Sep 7, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Sep 7, 2026
@shikanime
shikanime added this pull request to the merge queue Sep 7, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Sep 7, 2026
@shikanime
shikanime force-pushed the fix/repo-sync-selectedrepo-race branch from 79d3e0e to 32c2006 Compare September 7, 2026 16:23
@shikanime
shikanime enabled auto-merge September 7, 2026 16:23
@shikanime
shikanime disabled auto-merge September 8, 2026 07:46
@shikanime
shikanime enabled auto-merge September 8, 2026 07:46
…await

Signed-off-by: William Phetsinorath <william.phetsinorath-open@interieur.gouv.fr>
Change-Id: I6faf7012b6113dbdadf4f952023c73a46a6a6964
@shikanime
shikanime force-pushed the fix/repo-sync-selectedrepo-race branch from 32c2006 to 6eee69a Compare September 8, 2026 07:48
@cloud-pi-native-sonarqube

Copy link
Copy Markdown

@shikanime
shikanime added this pull request to the merge queue Sep 8, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Sep 8, 2026
@shikanime
shikanime added this pull request to the merge queue Sep 8, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Sep 8, 2026
@shikanime

Copy link
Copy Markdown
Member Author

La CI de branche de cette PR est verte (run 34201179018). Les échecs Merge Queue (runs 34139422264 → 34202425459) sont causés par une panne d'infrastructure — le registre cache registry-cache-ghcr:5000 répond 500 Internal Server Error aux docker pull de l'étape d'init — et non par le changement de cette PR. Suivi : #2694. Rien à corriger côté ProjectResources.vue ; la file se débloquera avec le rétablissement du cache côté plateforme PAX (ou son bypass).

@shikanime
shikanime added this pull request to the merge queue Sep 8, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Sep 8, 2026
@shikanime
shikanime added this pull request to the merge queue Sep 8, 2026
Merged via the queue into main with commit d647925 Sep 8, 2026
34 checks passed
@shikanime
shikanime deleted the fix/repo-sync-selectedrepo-race branch September 8, 2026 13:03
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 preview Deploy preview app with Argo-cd

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants