-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Fix specs #9774
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix specs #9774
Conversation
""" WalkthroughThe changes activate the Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant API
participant Auth
participant Database
Client->>API: POST /v1/databases/:databaseId/collections/:collectionId/documents (createDocuments)
API->>Auth: Validate AuthType::KEY
Auth-->>API: Authenticated
API->>Database: Create multiple documents
Database-->>API: Documents created
API-->>Client: Response 201 with document list
Poem
Note ⚡️ AI Code Reviews for VS Code, Cursor, WindsurfCodeRabbit now has a plugin for VS Code, Cursor and Windsurf. This brings AI code reviews directly in the code editor. Each commit is reviewed immediately, finding bugs before the PR is raised. Seamless context handoff to your AI code agent ensures that you can easily incorporate review feedback. Note ⚡️ Faster reviews with cachingCodeRabbit now supports caching for code and dependencies, helping speed up reviews. This means quicker feedback, reduced wait times, and a smoother review experience overall. Cached data is encrypted and stored securely. This feature will be automatically enabled for all accounts on May 16th. To opt out, configure 📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (1)
✅ Files skipped from review due to trivial changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (19)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
Security Scan Results for PRDocker Image Scan Results
Source Code Scan Results🎉 No vulnerabilities found! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
app/controllers/api/databases.php (1)
3204-3222
: PSR-12 lint: fix array indentation forcreateDocuments
SDK metadata
The newly addedcreateDocuments
entry in the->sdk([...])
array is mis-indented, causing anarray_indentation
lint error. Please re-align the brackets and items to match PSR-12, or run the formatter to auto-fix:vendor/bin/pint --preset=psr12 app/controllers/api/databases.php
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Cache: Disabled due to data retention organization setting
Knowledge Base: Disabled due to data retention organization setting
⛔ Files ignored due to path filters (13)
app/config/specs/open-api3-1.7.x-client.json
is excluded by!app/config/specs/**
app/config/specs/open-api3-1.7.x-console.json
is excluded by!app/config/specs/**
app/config/specs/open-api3-1.7.x-server.json
is excluded by!app/config/specs/**
app/config/specs/open-api3-latest-client.json
is excluded by!app/config/specs/**
app/config/specs/open-api3-latest-console.json
is excluded by!app/config/specs/**
app/config/specs/open-api3-latest-server.json
is excluded by!app/config/specs/**
app/config/specs/swagger2-1.7.x-client.json
is excluded by!app/config/specs/**
app/config/specs/swagger2-1.7.x-console.json
is excluded by!app/config/specs/**
app/config/specs/swagger2-1.7.x-server.json
is excluded by!app/config/specs/**
app/config/specs/swagger2-latest-client.json
is excluded by!app/config/specs/**
app/config/specs/swagger2-latest-console.json
is excluded by!app/config/specs/**
app/config/specs/swagger2-latest-server.json
is excluded by!app/config/specs/**
composer.lock
is excluded by!**/*.lock
📒 Files selected for processing (3)
app/controllers/api/databases.php
(1 hunks)src/Appwrite/SDK/Specification/Format/OpenAPI3.php
(1 hunks)src/Appwrite/SDK/Specification/Format/Swagger2.php
(2 hunks)
🧰 Additional context used
🧬 Code Graph Analysis (2)
src/Appwrite/SDK/Specification/Format/OpenAPI3.php (1)
src/Appwrite/SDK/Method.php (1)
getAuth
(155-158)
src/Appwrite/SDK/Specification/Format/Swagger2.php (1)
src/Appwrite/SDK/Method.php (1)
getAuth
(155-158)
🪛 GitHub Actions: Linter
app/controllers/api/databases.php
[error] 1-1: PSR 12 linting failed: array_indentation style issue detected. Run 'vendor/bin/pint' to fix.
⏰ Context from checks skipped due to timeout of 90000ms (4)
- GitHub Check: Setup & Build Appwrite Image
- GitHub Check: Setup & Build Appwrite Image
- GitHub Check: Setup & Build Console SDK
- GitHub Check: scan
🔇 Additional comments (4)
src/Appwrite/SDK/Specification/Format/OpenAPI3.php (1)
181-181
: Authentication metadata addition looks goodThe new code adds an 'auth' key to each additional method's metadata, properly mapping each authentication type to an empty array keyed by the enum's value. This enhancement improves the specification output by explicitly representing authorization requirements for API methods.
src/Appwrite/SDK/Specification/Format/Swagger2.php (3)
187-187
: Authentication metadata addition looks goodAdding the 'auth' key to additional methods in the Swagger2 format maintains consistency with the OpenAPI3 implementation. This ensures that authentication requirements are explicitly represented in both specification formats.
290-291
: Code style improvement approvedGood practice to explicitly reference the global PHP function with the backslash prefix.
296-296
: Code style improvement approvedConsistent use of backslash prefix for global PHP function.
commit: |
✨ Benchmark results
⚡ Benchmark Comparison
|
What does this PR do?
(Provide a description of what this PR does and why it's needed.)
Test Plan
(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work. Screenshots may also be helpful.)
Related PRs and Issues
Checklist
Summary by CodeRabbit
New Features
Style
Chores