Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

ChiragAgg5k
Copy link
Member

@ChiragAgg5k ChiragAgg5k commented Sep 7, 2025

What does this PR do?

Test Plan

Related PRs and Issues

Have you read the Contributing Guidelines on issues?

yes.

Summary by CodeRabbit

  • Chores
    • Updated CLI SDK generation to exclude the Avatars service (in addition to the existing Assistant exclusion). Newly generated CLI builds will omit Avatars-related commands and artifacts.
    • Users updating to the latest CLI will no longer see Avatars commands; existing installs are unchanged until updated.
    • No changes to runtime behavior or public APIs.

Copy link

coderabbitai bot commented Sep 7, 2025

Walkthrough

The change updates example.php to add "avatars" to the services exclusion list within setExclude for CLI SDK generation, alongside "assistant". As a result, the avatars service is omitted from generated CLI SDKs. No other code paths, error handling, or public API signatures are modified.

Warning

Review ran into problems

🔥 Problems

Git: Failed to clone repository. Please run the @coderabbitai full review command to re-trigger a full review. If the issue persists, set path_filters to include or exclude specific files.

✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch remove-avatars

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

@coderabbitai coderabbitai bot left a 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)
example.php (1)

192-198: Tiny clarity nit: document why avatars is excluded

A brief inline comment helps future readers understand the rationale and link it to the tracking issue.

Apply:

         ->setDefaultHeaders([
             'X-Appwrite-Response-Format' => '1.7.0',
         ])
-        ->setExclude([
+        // Exclude avatars from CLI (see sdk-for-cli#86)
+        ->setExclude([
             'services' => [
                 ['name' => 'assistant'],
                 ['name' => 'avatars'],
             ],
         ])
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 375a6c9 and 464bd94.

📒 Files selected for processing (1)
  • example.php (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (6)
  • GitHub Check: build (8.3, Android14Java17)
  • GitHub Check: build (8.3, Swift56)
  • GitHub Check: build (8.3, DartStable)
  • GitHub Check: build (8.3, AppleSwift56)
  • GitHub Check: build (8.3, KotlinJava11)
  • GitHub Check: build (8.3, KotlinJava8)
🔇 Additional comments (1)
example.php (1)

193-197: LGTM: avatars service correctly excluded from CLI generation

Matches the PR goal; array shape and placement under setExclude('services') look correct. Please just confirm the console spec actually exposes the 'avatars' service; otherwise this is a no-op.

Run to verify presence of the service in the referenced spec:

#!/bin/bash
set -euo pipefail
version='1.8.x'
platform='console'
url="https://raw.githubusercontent.com/appwrite/appwrite/${version}/app/config/specs/swagger2-${version}-${platform}.json"

tmp="$(mktemp)"
curl -fsSL "$url" -o "$tmp"

echo "Tags including 'avatars':"
jq -r '.tags[]?.name' "$tmp" | rg -n '^avatars$' || echo "No 'avatars' tag found"

echo "Paths mentioning avatars:"
jq -r '.paths | keys[]' "$tmp" | rg -n 'avatars' || echo "No avatar-related paths found"

rm -f "$tmp"

@loks0n loks0n merged commit ad072ef into master Sep 8, 2025
39 checks passed
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