8000 Feat: update facts on GitHub sites and functions by HarshMN2345 · Pull Request #10593 · appwrite/appwrite · GitHub
[go: up one dir, main page]

Skip to content

Conversation

HarshMN2345
Copy link
Member

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

  • (Related PR or issue)

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?

@HarshMN2345 HarshMN2345 requested a review from Meldiron October 2, 2025 17:45
Copy link
Contributor
coderabbitai bot commented Oct 2, 2025
📝 Walkthrough

Walkthrough

The change updates src/Appwrite/Vcs/Comment.php by replacing the contents of the protected $tips array with a larger set of tip strings. No methods, signatures, control flow, or error handling were modified. The mechanism that selects a random tip remains unchanged.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Pre-merge checks and finishing touches

❌ Failed checks (2 warnings)
Check name Status Explanation Resolution
Title Check ⚠️ Warning The title “Feat: update facts on GitHub sites and functions” does not accurately reflect the changeset, which only updates the tips array in the Appwrite Vcs Comment class and has nothing to do with GitHub sites or functions. Please update the title to concisely describe the actual change, for example “Feat: update inline tips in Vcs Comment cla 8000 ss,” so it aligns with the changeset.
Description Check ⚠️ Warning The pull request description consists solely of the default contribution template without any specific details about the changes made, so it does not explain or relate to the update to the tips array. Please provide a meaningful description of the changes, including what was updated in the tips array, why the update was necessary, and any relevant test plan or related issues.
✅ Passed checks (1 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.
✨ Finishing touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat-SER-193-Update-facts-on-github-sites-and-functions

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
github-actions bot commented Oct 2, 2025

Security Scan Results for PR

Docker Image Scan Results

Package Version Vulnerability Severity
binutils 2.42-r0 CVE-2025-0840 HIGH
git 2.45.3-r0 CVE-2025-46334 HIGH
git 2.45.3-r0 CVE-2025-48384 HIGH
git 2.45.3-r0 CVE-2025-48385 HIGH
git-init-template 2.45.3-r0 CVE-2025-46334 HIGH
git-init-template 2.45.3-r0 CVE-2025-48384 HIGH
git-init-template 2.45.3-r0 CVE-2025-48385 HIGH
icu 74.2-r0 CVE-2025-5222 HIGH
icu-data-en 74.2-r0 CVE-2025-5222 HIGH
icu-dev 74.2-r0 CVE-2025-5222 HIGH
icu-libs 74.2-r0 CVE-2025-5222 HIGH
libecpg 16.8-r0 CVE-2025-8714 HIGH
libecpg 16.8-r0 CVE-2025-8715 HIGH
libecpg-dev 16.8-r0 CVE-2025-8714 HIGH
libecpg-dev 16.8-r0 CVE-2025-8715 HIGH
libexpat 2.6.4-r0 CVE-2024-8176 HIGH
libexpat 2.6.4-r0 CVE-2025-59375 HIGH
libpq 16.8-r0 CVE-2025-8714 HIGH
libpq 16.8-r0 CVE-2025-8715 HIGH
libpq-dev 16.8-r0 CVE-2025-8714 HIGH
libpq-dev 16.8-r0 CVE-2025-8715 HIGH
libxml2 2.12.7-r0 CVE-2024-56171 HIGH
libxml2 2.12.7-r0 CVE-2025-24928 HIGH
libxml2 2.12.7-r0 CVE-2025-27113 HIGH
libxml2 2.12.7-r0 CVE-2025-32414 HIGH
libxml2 2.12.7-r0 CVE-2025-32415 HIGH
postgresql16-dev 16.8-r0 CVE-2025-8714 HIGH
postgresql16-dev 16.8-r0 CVE-2025-8715 HIGH
pyc 3.12.9-r0 CVE-2024-12718 HIGH
pyc 3.12.9-r0 CVE-2025-4138 HIGH
pyc 3.12.9-r0 CVE-2025-4330 HIGH
pyc 3.12.9-r0 CVE-2025-4517 HIGH
python3 3.12.9-r0 CVE-2024-12718 HIGH
python3 3.12.9-r0 CVE-2025-4138 HIGH
python3 3.12.9-r0 CVE-2025-4330 HIGH
python3 3.12.9-r0 CVE-2025-4517 HIGH
python3-pyc 3.12.9-r0 CVE-2024-12718 HIGH
python3-pyc 3.12.9-r0 CVE-2025-4138 HIGH
python3-pyc 3.12.9-r0 CVE-2025-4330 HIGH
python3-pyc 3.12.9-r0 CVE-2025-4517 HIGH
python3-pycache-pyc0 3.12.9-r0 CVE-2024-12718 HIGH
python3-pycache-pyc0 3.12.9-r0 CVE-2025-4138 HIGH
python3-pycache-pyc0 3.12.9-r0 CVE-2025-4330 HIGH
python3-pycache-pyc0 3.12.9-r0 CVE-2025-4517 HIGH
sqlite-libs 3.45.3-r1 CVE-2025-29087 HIGH
xz 5.6.2-r0 CVE-2025-31115 HIGH
xz-libs 5.6.2-r0 CVE-2025-31115 HIGH
golang.org/x/crypto v0.31.0 CVE-2025-22869 HIGH
golang.org/x/oauth2 v0.24.0 CVE-2025-22868 HIGH
stdlib 1.22.10 CVE-2025-47907 HIGH

Source Code Scan Results

🎉 No vulnerabilities found!

Copy link
Contributor
@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: 1

🧹 Nitpick comments (2)
src/Appwrite/Vcs/Comment.php (2)

12-12: Consider removing the TODO comment.

The TODO comment says "Add more tips", but this PR significantly expands the tips array from 3 to 31 entries. If the goal of adding more tips has been achieved, consider removing or updating this TODO.

Apply this diff if the TODO is no longer relevant:

-    // TODO: Add more tips
     protected array $tips = [

14-15: Remove trailing whitespace and adjust metric phrasing.

  • Delete trailing whitespace in src/Appwrite/Vcs/Comment.php to fix the pipeline failure.
  • Change “50K GitHub stars” to “over 50K GitHub stars” (currently ~52.9K).
  • Update “24K passionate developers” to “over 24K developers” or verify and adjust the exact Discord member count.
📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between e2f4d38 and 61a8f58.

📒 Files selected for processing (1)
  • src/Appwrite/Vcs/Comment.php (1 hunks)
🧰 Additional context used
🪛 GitHub Actions: Linter
src/Appwrite/Vcs/Comment.php

[error] 1-1: Pint: no_trailing_whitespace detected. Remove trailing whitespace in this file. (no_trailing_whitespace)

⏰ 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). (3)
  • GitHub Check: Setup & Build Appwrite Image
  • GitHub Check: Setup & Build Appwrite Image
  • GitHub Check: scan

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Copy link
Contributor
@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: 1

📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 61a8f58 and 64c3b7a.

📒 Files selected for processing (1)
  • src/Appwrite/Vcs/Comment.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). (20)
  • GitHub Check: E2E Service Test (Messaging)
  • GitHub Check: E2E Service Test (Migrations)
  • GitHub Check: E2E Service Test (Sites)
  • GitHub Check: E2E Service Test (Users)
  • GitHub Check: E2E Service Test (Health)
  • GitHub Check: E2E Service Test (Projects)
  • GitHub Check: E2E Service Test (Realtime)
  • GitHub Check: E2E Service Test (Storage)
  • GitHub Check: E2E Service Test (Proxy)
  • GitHub Check: E2E Service Test (Avatars)
  • GitHub Check: E2E Service Test (Console)
  • GitHub Check: E2E Service Test (Functions)
  • GitHub Check: E2E Service Test (GraphQL)
  • GitHub Check: E2E Service Test (Databases)
  • GitHub Check: E2E Service Test (Account)
  • GitHub Check: E2E General Test
  • GitHub Check: E2E Service Test (Dev Keys)
  • GitHub Check: Unit Test
  • GitHub Check: Setup & Build Appwrite Image
  • GitHub Check: scan
🔇 Additional comments (1)
src/Appwrite/Vcs/Comment.php (1)

14-43: Tips content looks good overall.

The expanded tip set provides valuable information about Appwrite's Sites and Functions features. The tips are:

  • Clear and concise
  • Technically accurate in their descriptions
  • Well-organized by feature area
  • Appropriate for display in GitHub PR comments

Comment on lines +14 to +15
'Appwrite has crossed the 50K GitHub stars milestone with hundreds of active contributors',
'Discord community has grown to 24K passionate developers and counting',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion | 🟠 Major

🧩 Analysis chain

Verify time-sensitive statistics before merging.

The GitHub stars (50K) and Discord community size (24K) are specific numbers that may become outdated quickly. Consider either:

  • Verifying these numbers are current as of the merge date
  • Making the messaging more general (e.g., "tens of thousands of stars", "thriving Discord community")

🌐 Web query:

What are the current GitHub star count for appwrite/appwrite repository and the current Discord community size for Appwrite?

💡 Result:

As of October 2, 2025:

  • GitHub (appwrite/appwrite) stars: 52.9k. [1]
  • Appwrite Discord community size: 23,922 members. [2]

Sources:
[1] appwrite/appwrite GitHub page.
[2] Appwrite server listing on Discord.


Update time-sensitive statistics

  • Replace “50K GitHub stars” with “52.9K GitHub stars”
  • Replace “24K passionate developers” with “23.9K passionate developers” (23,922 members)

Alternatively, generalize to reduce maintenance (e.g., “over 50K stars”, “thriving Discord community”).

🤖 Prompt for AI Agents
In src/Appwrite/Vcs/Comment.php around lines 14 to 15, update the time-sensitive
strings: replace "50K GitHub stars" with "52.9K GitHub stars" and replace "24K
passionate developers" with "23.9K passionate developers (23,922 members)";
alternatively, if you prefer less maintenance, change the phrases to non-exact
wording such as "over 50K stars" and "thriving Discord community"—pick one
approach and update both array entries accordingly.

Copy link
github-actions bot commented Oct 2, 2025

✨ Benchmark results

  • Requests per second: 1,026
  • Requests with 200 status code: 184,705
  • P99 latency: 0.176913326

⚡ Benchmark Comparison

Metric This PR Latest version
RPS 1,026 1,019
200 184,705 183,525
P99 0.176913326 0.191664608

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
0