Skip to content

fix(vcs): name lost installation access in the repository not found error - #14650

Merged
HarshMN2345 merged 5 commits into
mainfrom
fix-vcs-repository-access-error
Oct 23, 2026
Merged

HarshMN2345 merged 5 commits into
mainfrom
fix-vcs-repository-access-error

Conversation

@HarshMN2345

@HarshMN2345 HarshMN2345 commented Oct 19, 2026 •

Copy link
Copy Markdown
Member

What changed

The end of the provider_repository_not_found text 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/:providerRepositoryId returns this 404 and pushes stop deploying. Text-only change; php -l passes.

…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.
@luxor-code-review

luxor-code-review Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Review complete. No blocking issues — approved ✅; 1 nitpick below.

🧹 Nitpicks (1) — 🟢 1 low
  • 🟢 Update stale doc copy of provider_repository_not_found message (index.markdoc) — The console response-codes documentation still shows the old provider_repository_not_found description, while this PR updates the shipped text in app/config/errors.php:666 to also cover an installation losing repository access (apps/console/src/content/docs/apis/response-codes/index.markdoc:197).

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.

Files Change
app/config/errors.php Rewrites the provider_repository_not_found description to add the installation-lost-access case.
apps/console/src/content/docs/apis/response-codes/index.markdoc (not touched by the PR) still shows the old error wording; flagged for follow-up.

Reviewed commit: 5fa6c60

@ghost

ghost commented Oct 19, 2026 •

Copy link
Copy Markdown

🔵 Tier A · Mergeable after minor fixes

The previously reported response-code documentation entry remains unchanged and still has outdated wording.

The provider_repository_not_found message explains that the repository may be unavailable because its ID is incorrect or the installation no longer has access. This gives users both relevant checks when they encounter the 404.

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.

Verdict New comments Fixed Still open
✅ Approved 0 0 1
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
File Change
app/config/errors.php Updates the provider repository 404 description to mention checking both the requested ID and installation access.
⏳ Still open from earlier reviews · 1

Merged main (b2be52c); no changes to this PR's code since e6e92bc · Details · Comment @hansi-codes review to re-run, or mention @hansi-codes with a question.

@ghost ghost left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔵 Tier A · Looks good to merge. Summary

Comment thread app/config/errors.php Outdated
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.',

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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.

@github-actions

github-actions Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Security rules

No new WARNING or ERROR findings from security rules.

6 existing findings tracked in .semgrep/baseline.json
  • php.appwrite.guest-write-without-abuse-limit (3)
  • php.appwrite.secret-compare-timing (1)
  • php.appwrite.weak-secret-env-default (2)

Posted by Checks / Rules. Re-runs update this comment in place. Rule details and baseline: .semgrep/README.md.

@github-actions

github-actions Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

✨ Benchmark results

Comparing main (before) → fix-vcs-repository-access-error (after).

Metric Before After Change
🚀 Requests/sec 215.39 220.65 ⚪ +2.4%
⏱️ Latency P50 79.33 ms 77.81 ms ⚪ -1.9%
⏱️ Latency P95 190 ms 187.81 ms ⚪ -1.2%
Per-scenario breakdown & investigation details

Metrics below reflect the current branch (after). Δ P95 compares against the base.

Scenario P50 (ms) P95 (ms) Requests RPS Δ P95 (ms)
API total 77.81 187.81 13,680 220.65 -2.19
Account 158.18 287.57 720 12.39 +26.17
TablesDB 75.91 147.32 7,440 123.33 +11.32
Storage 70.04 165.04 3,600 61.14 -29.97
Functions 113.82 216.1 1,920 33.23 -14.75

Top API waits (after)

API request Max wait (ms)
functions.variables.update 409.68
account.name.update 366.17
functions.delete 347.41
account.get 345.97
functions.create 336.3

@HarshMN2345
HarshMN2345 merged commit 59ca66e into main Oct 23, 2026
9 of 10 checks passed
Tapraj-Pathak pushed a commit to Tapraj-Pathak/appwrite that referenced this pull request Oct 24, 2026
…cess-error

fix(vcs): name lost installation access in the repository not found error

(cherry picked from commit 59ca66e)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants