Skip to content

Chore: Deprecate dev keys creation + remove tests - #12931

Merged
Meldiron merged 3 commits into
mainfrom
chore-deprecate-devkeys
Jul 21, 2026
Merged

Meldiron merged 3 commits into
mainfrom
chore-deprecate-devkeys

Conversation

@Meldiron

Copy link
Copy Markdown
Contributor

What does this PR do?

Deprecates dev key creation

Test Plan

Tests has been removed

Related PRs and Issues

x

Checklist

  • Have you read the Contributing Guidelines on issues?
  • If the PR includes a change to an API's metadata (desc, label, params, etc.), does it also include updated API specs and example docs?

@greptile-apps

greptile-apps Bot commented Jul 21, 2026 •

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR deprecates creating project dev keys while keeping direct HTTP callers on a clear Gone response. The main changes are:

  • Adds a dev_key_gone exception mapped to HTTP 410.
  • Removes generated SDK metadata from the dev-key creation route.
  • Makes 410 errors render publicly through the general error handler.
  • Updates e2e setup and project tests to stop creating or sending dev keys.

Confidence Score: 5/5

This looks safe to merge.

  • No blocking issues found in the changed code.
  • The dev-key creation route no longer advertises a generated success response.
  • The new Gone error is wired through the exception and error-rendering path.

Important Files Changed

Filename Overview
src/Appwrite/Platform/Modules/Projects/Http/DevKeys/Create.php Dev-key creation now returns the new Gone error and no longer declares generated SDK metadata.
app/config/errors.php Registers the new dev_key_gone error with HTTP 410.
app/controllers/general.php Allows HTTP 410 errors to be returned publicly.
src/Appwrite/Extend/Exception.php Defines the new DEV_KEY_GONE exception constant.
tests/e2e/Scopes/ProjectCustom.php Project test setup no longer creates or stores a dev key.
tests/e2e/Scopes/Scope.php The shared test header helper no longer accepts a dev-key toggle.
tests/e2e/Services/Projects/ProjectsConsoleClientTest.php Project e2e coverage now asserts dev-key creation returns the Gone error.

Reviews (2): Last reviewed commit: "remove devkey creation from sdks" | Re-trigger Greptile

@github-actions

github-actions Bot commented Jul 21, 2026 •

Copy link
Copy Markdown

✨ Benchmark results

Comparing main (before) → chore-deprecate-devkeys (after).

Metric Before After Change
🚀 Requests/sec 221.72 220.72 ⚪ -0.5%
⏱️ Latency P50 64.8 ms 65.09 ms ⚪ +0.4%
⏱️ Latency P95 227.81 ms 232.76 ms ⚪ +2.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 65.09 232.76 13,794 220.72 +4.95
Account 119.97 324.37 726 12.05 -2.02
TablesDB 62.12 208.41 7,502 121.05 -1.82
Storage 58.72 213.69 3,630 60.7 +4.52
Functions 97.25 280.4 1,936 32.93 +4.17

Top API waits (after)

API request Max wait (ms)
functions.specifications.list 704.31
tablesdb.rows.create 630.04
functions.delete 629.69
storage.files.preview 619.17
tablesdb.rows.get 571

@Meldiron
Meldiron merged commit cb570ed into main Jul 21, 2026
78 of 79 checks passed
@HarshMN2345 HarshMN2345 mentioned this pull request Sep 15, 2026
2 tasks
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.

1 participant