Skip to content

Remove unused OpenAPI operation extensions - #13494

Merged
ChiragAgg5k merged 3 commits into
mainfrom
feat/remove-openapi-cookies-extension
Sep 5, 2026
Merged

ChiragAgg5k merged 3 commits into
mainfrom
feat/remove-openapi-cookies-extension

Conversation

@ChiragAgg5k

@ChiragAgg5k ChiragAgg5k commented Sep 5, 2026 •

Copy link
Copy Markdown
Member

What does this PR do?

Removes two unused fields from generated OpenAPI 3 operations:

  • x-appwrite.cookies, which was always false, had no route overrides, and had no consumer
  • x-appwrite.edit, whose source-edit URLs are no longer consumed by SDK Generator or the documentation API explorer

It also updates SDK Generator to 4.7.8 and utopia-php/openapi to 0.2.1, completing the consumer rollout for the merged x-appwrite.type removal.

Related to CLO-4377, appwrite/sdk-generator#1871, and #13484.

Validation

  • composer validate --no-check-publish
  • composer lint src/Appwrite/SDK/Specification/Format/OpenAPI3.php
  • generated latest client, server, and console specifications
  • generated every configured client, server, console, and static SDK example successfully using SDK Generator 4.7.8
  • confirmed generated specifications contain no x-appwrite.type
  • confirmed specification parity after removing only the targeted metadata:
    • cookies: client 152, server 563, console 621 fields removed; every value was false
    • edit: client 147, server 385, console 425 fields removed

@greptile-apps

greptile-apps Bot commented Sep 5, 2026 •

Copy link
Copy Markdown
Contributor

Greptile Summary

Removes unused Appwrite-specific metadata from generated OpenAPI 3 operations and updates the associated SDK-generation dependencies.

  • Stops emitting x-appwrite.cookies.
  • Stops emitting the operation-level x-appwrite.edit link.
  • Updates appwrite/sdk-generator from 4.7.6 to 4.7.8 and its transitive utopia-php/openapi dependency from 0.2.0 to 0.2.1.

Confidence Score: 5/5

The PR appears safe to merge, with no actionable correctness, security, or repository-rule violations identified.

The removed metadata has no identified in-repository consumer or documented contract, and the dependency updates introduce no established compatibility failure.

Important Files Changed

Filename Overview
src/Appwrite/SDK/Specification/Format/OpenAPI3.php Removes the unused cookies extension and operation edit-link metadata from generated OpenAPI 3 output.
composer.lock Updates development-only SDK generation and OpenAPI parsing dependencies to compatible patch releases.

Reviews (2): Last reviewed commit: "feat: remove OpenAPI edit extension" | Re-trigger Greptile

@github-actions

github-actions Bot commented Sep 5, 2026 •

Copy link
Copy Markdown

✨ Benchmark results

Comparing main (before) → feat/remove-openapi-cookies-extension (after).

Metric Before After Change
🚀 Requests/sec 238.64 242.8 ⚪ +1.7%
⏱️ Latency P50 75.59 ms 73.95 ms ⚪ -2.2%
⏱️ Latency P95 164.58 ms 161.01 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 73.95 161.01 14,877 242.8 -3.57
Account 135.24 235.18 783 13.01 -13.51
TablesDB 73.84 132.09 8,091 133.43 +1.84
Storage 62.43 136.6 3,915 67.02 -6.8
Functions 102.82 186.96 2,088 36.54 -10.96

Top API waits (after)

API request Max wait (ms)
account.name.update 375.78
storage.buckets.create 367.48
tablesdb.rows.delete 348.87
tablesdb.rows.decrement 303.7
storage.files.create 302.64

@ChiragAgg5k ChiragAgg5k changed the title Remove x-appwrite.cookies from OpenAPI specifications Remove unused OpenAPI operation extensions Sep 5, 2026
@ChiragAgg5k
ChiragAgg5k merged commit 6b5bc9b into main Sep 5, 2026
45 of 46 checks passed
@ChiragAgg5k
ChiragAgg5k deleted the feat/remove-openapi-cookies-extension branch September 5, 2026 15:56
@ChiragAgg5k ChiragAgg5k mentioned this pull request Sep 10, 2026
2 of 4 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.

2 participants