Repository navigation
fix(vcs): name lost installation access in the repository not found error - #14650
Conversation
…rror GitHub answers 404 both for a repository that does not exist and for one the installation can no longer see, for example after it was removed from the app's selected repositories. The error only suggested a wrong ID, so it now also names lost access and points at the installation's repository access.
|
Review complete. No blocking issues — approved ✅; 1 nitpick below. 🧹 Nitpicks (1) — 🟢 1 low
The change rewords a single error message so it accounts for both a missing repository ID and an installation losing access to the repository. One docs page still shows the old wording and should be updated to match.
Reviewed commit: 5fa6c60 |
🔵 Tier A · Mergeable after minor fixes
The Latest changes: The latest commit replaces the shorter message with wording that explicitly asks users to check the repository ID and whether the installation still has access.
Fix with agent prompt### Issue 1
app/config/errors.php:666
**Sync the response-code reference with this message**
The response-code reference at `apps/console/src/content/docs/apis/response-codes/index.markdoc:197` still has the old description, so readers will not learn that this 404 can mean the installation lost access—the case this change addresses. Please update that entry alongside the runtime error text.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.📂 Walkthrough · 1
⏳ Still open from earlier reviews · 1
Merged |
| Exception::PROVIDER_REPOSITORY_NOT_FOUND => [ | ||
| 'name' => Exception::PROVIDER_REPOSITORY_NOT_FOUND, | ||
| 'description' => 'VCS (Version Control System) repository with the requested ID could not be found. Check to see if the ID is correct, and if it belongs to installationId you provided.', | ||
| 'description' => 'VCS (Version Control System) repository with the requested ID could not be found, or the installation no longer has access to it. Check to see if the ID is correct, and if the repository is still granted to the installation you provided.', |
There was a problem hiding this comment.
Sync the response-code reference with this message
The response-code reference at apps/console/src/content/docs/apis/response-codes/index.markdoc:197 still has the old description, so readers will not learn that this 404 can mean the installation lost access—the case this change addresses. Please update that entry alongside the runtime error text.
Prompt To Fix With AI
This is a comment left during a code review.
Path: app/config/errors.php
Line: 666
Comment:
**Sync the response-code reference with this message**
The response-code reference at `apps/console/src/content/docs/apis/response-codes/index.markdoc:197` still has the old description, so readers will not learn that this 404 can mean the installation lost access—the case this change addresses. Please update that entry alongside the runtime error text.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.🟡 Minor · documentation · Reply if this doesn't apply.
Security rulesNo new WARNING or ERROR findings from security rules. 6 existing findings tracked in
|
✨ Benchmark resultsComparing
Per-scenario breakdown & investigation detailsMetrics below reflect the current branch (after). Δ P95 compares against the base.
Top API waits (after)
|
…cess-error fix(vcs): name lost installation access in the repository not found error (cherry picked from commit 59ca66e)
What changed
The end of the
provider_repository_not_foundtext now reads "and if the installation you provided still has access to it" instead of "and if it belongs to installationId you provided". GitHub answers 404 both for a repository that doesn't exist and for one the installation can no longer see, so the old text only sent people looking for a wrong ID.Testing
Reproduced on Cloud: linked a site to a repository through a GitHub App installation set to selected repositories, then removed the repository from the app.
GET /v1/vcs/github/installations/:installationId/providerRepositories/:providerRepositoryIdreturns this 404 and pushes stop deploying. Text-only change;php -lpasses.