Repository navigation
Fix: Developer experiene with recent chagnes - #12178
Conversation
Greptile SummaryThis PR improves developer experience around scopes, key management, and API surface: it reorganizes
Confidence Score: 4/5Safe to merge after confirming whether /v1/project/keys/standard needs a backward-compat alias. One P1 finding (removed HTTP path without alias) limits the ceiling to 4. All other changes are well-scoped and consistent; the double-quoted ' issue in Project-category descriptions was already flagged in a prior review. src/Appwrite/Platform/Modules/Project/Http/Project/Keys/Create.php (removed /standard path) and app/config/scopes/project.php (double-quoted ' in Project-category descriptions). Important Files Changed
Reviews (5): Last reviewed commit: "Fix tests" | Re-trigger Greptile |
✨ Benchmark resultsComparing 1.9.x (before) to fix-developer-experience (after). Before
After
Delta
Top API waits
|
|
@copilot Can you spot any breaking changes here, or is everything backwards compatible - no regression? |
Here's the breaking-change analysis: ✅ Backwards compatible (safe)
Summary: Items 1–5 in the first section are safe. The three items in the second section are the ones that need attention before merging, particularly the removal of rules/schedules/vcs from the visible scopes and the now-required |
This comment has been minimized.
This comment has been minimized.
🔄 PHP-Retry SummaryFlaky tests detected across commits: Commit
|
| Test | Retries | Total Time | Details |
|---|---|---|---|
UsageTest::testFunctionsStats |
1 | 10.19s | Logs |
UsageTest::testPrepareSitesStats |
1 | 9ms | Logs |
UsageTest::testEmbeddingsTextUsageDoesNotBreakProjectUsage |
1 | 7ms | Logs |
WebhooksCustomServerTest::testDeleteDeployment |
1 | 18ms | Logs |
WebhooksCustomServerTest::testDeleteFunction |
1 | 15ms | Logs |
WebhooksCustomServerTest::testCreateCollection |
1 | 16ms | Logs |
WebhooksCustomServerTest::testCreateAttributes |
1 | 77ms | Logs |
WebhooksCustomServerTest::testCreateDocument |
1 | 15ms | Logs |
WebhooksCustomServerTest::testUpdateDocument |
1 | 30ms | Logs |
WebhooksCustomServerTest::testDeleteDocument |
1 | 17ms | Logs |
WebhooksCustomServerTest::testCreateTable |
1 | 10ms | Logs |
WebhooksCustomServerTest::testCreateColumns |
1 | 14ms | Logs |
WebhooksCustomServerTest::testCreateRow |
1 | 19ms | Logs |
WebhooksCustomServerTest::testUpdateRow |
1 | 18ms | Logs |
WebhooksCustomServerTest::testDeleteRow |
1 | 11ms | Logs |
WebhooksCustomServerTest::testCreateStorageBucket |
1 | 7ms | Logs |
WebhooksCustomServerTest::testUpdateStorageBucket |
1 | 13ms | Logs |
WebhooksCustomServerTest::testCreateBucketFile |
1 | 33ms | Logs |
WebhooksCustomServerTest::testUpdateBucketFile |
1 | 11ms | Logs |
WebhooksCustomServerTest::testDeleteBucketFile |
1 | 8ms | Logs |
WebhooksCustomServerTest::testDeleteStorageBucket |
1 | 18ms | Logs |
WebhooksCustomServerTest::testCreateTeam |
1 | 8ms | Logs |
WebhooksCustomServerTest::testUpdateTeam |
1 | 10ms | Logs |
WebhooksCustomServerTest::testUpdateTeamPrefs |
1 | 14ms | Logs |
WebhooksCustomServerTest::testDeleteTeam |
1 | 6ms | Logs |
WebhooksCustomServerTest::testCreateTeamMembership |
1 | 13ms | Logs |
WebhooksCustomServerTest::testDeleteTeamMembership |
1 | 14ms | Logs |
WebhooksCustomServerTest::testWebhookAutoDisable |
1 | 27ms | Logs |
Commit 36486cc - 5 flaky tests
| Test | Retries | Total Time | Details |
|---|---|---|---|
VectorsDBConsoleClientTest::testGetCollectionLogs |
1 | 7ms | Logs |
DatabasesConsoleClientTest::testGetCollectionLogs |
1 | 9ms | Logs |
UsageTest::testFunctionsStats |
1 | 10.20s | Logs |
UsageTest::testPrepareSitesStats |
1 | 8ms | Logs |
UsageTest::testEmbeddingsTextUsageDoesNotBreakProjectUsage |
1 | 5ms | Logs |
Restore the sessions.* scopes and reject non-key, non-privileged callers at runtime instead of dropping the scopes. Dropping them broke least-privilege API keys scoped to sessions.* (added in #12178), while restoring them alone reopens the routes to guest/user roles that carry sessions.write. The guard closes that hole and keeps the key scope. Cover all four routes with e2e: members are rejected, and a key scoped to sessions.* only still succeeds.
What does this PR do?
Test Plan
Existing tests
Related PRs and Issues
x
Checklist