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

Skip to content

Conversation

@ItzNotABug
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?

@ItzNotABug ItzNotABug self-assigned this Oct 26, 2025
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Oct 26, 2025

Warning

Rate limit exceeded

@ItzNotABug has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 5 minutes and 51 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between fac29d9 and 04d5b37.

📒 Files selected for processing (4)
  • .env (1 hunks)
  • app/controllers/api/console.php (1 hunks)
  • docker-compose.yml (1 hunks)
  • src/Appwrite/Utopia/Response/Model/ConsoleVariables.php (1 hunks)
📝 Walkthrough

Walkthrough

This change introduces a new console configuration variable _APP_CONSOLE_EMAIL_VERIFICATION across the application stack. The variable is added to the .env file with a default value of false, exported through the console API controller, registered as a boolean rule in the ConsoleVariables model, configured in the docker-compose service, and reflected in the corresponding API test expectations.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

  • Homogeneous changes following a consistent pattern of adding the same configuration variable across multiple locations
  • Minimal logic complexity with straightforward additions
  • Single test count update required (15 to 16 items)

Suggested reviewers

  • Meldiron
  • christyjacob4

Pre-merge checks and finishing touches

❌ Failed checks (2 warnings, 1 inconclusive)
Check name Status Explanation Resolution
Description Check ⚠️ Warning The PR description contains only the repository's pull request template with all sections unfilled—the "What does this PR do?" section, "Test Plan" section, and "Related PRs and Issues" section are all left as template instructions or placeholders with no actual information provided. This results in zero meaningful description of the changeset, its motivation, testing approach, or related context.
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
Title Check ❓ Inconclusive The PR title "add: env var." refers to the actual change in the changeset—the addition of a new environment variable _APP_CONSOLE_EMAIL_VERIFICATION. However, the title is generic and vague, using only abbreviated, non-descriptive terms that fail to convey what specific environment variable is being added or its purpose. A reviewer scanning the repository history would not understand the change without opening the PR details.

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.

@github-actions
Copy link

github-actions bot commented Oct 26, 2025

Security Scan Results for PR

Docker Image Scan Results

Package Version Vulnerability Severity
binutils 2.44-r2 CVE-2025-5244 HIGH
binutils 2.44-r2 CVE-2025-5245 HIGH
libxml2 2.13.8-r0 CVE-2025-49794 CRITICAL
libxml2 2.13.8-r0 CVE-2025-49796 CRITICAL
libxml2 2.13.8-r0 CVE-2025-49795 HIGH
libxml2 2.13.8-r0 CVE-2025-6021 HIGH
pcre2 10.43-r1 CVE-2025-58050 CRITICAL
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!

@github-actions
Copy link

github-actions bot commented Oct 26, 2025

✨ Benchmark results

  • Requests per second: 1,289
  • Requests with 200 status code: 232,100
  • P99 latency: 0.155026677

⚡ Benchmark Comparison

Metric This PR Latest version
RPS 1,289 1,394
200 232,100 250,933
P99 0.155026677 0.146209682

@ItzNotABug ItzNotABug marked this pull request as ready for review October 26, 2025 11:52
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: 0

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
tests/e2e/Services/Console/ConsoleConsoleClientTest.php (1)

27-42: Add explicit assertion for the new field.

The count was correctly updated from 15 to 16, but there's no explicit assertion verifying that _APP_CONSOLE_EMAIL_VERIFICATION exists in the response and has the correct boolean type. Other boolean fields have explicit type assertions (lines 35-37).

Add this assertion after line 41:

         $this->assertIsString($response['body']['_APP_OPTIONS_FORCE_HTTPS']);
         $this->assertIsString($response['body']['_APP_DOMAINS_NAMESERVERS']);
+        $this->assertIsBool($response['body']['_APP_CONSOLE_EMAIL_VERIFICATION']);
         // When adding new keys, dont forget to update count a few lines above
🧹 Nitpick comments (1)
.env (1)

6-6: Variable placement follows logical grouping.

The new environment variable is correctly added with a default value of false and positioned with other console-related configuration variables, which aids maintainability.

Note: Static analysis suggests alphabetical ordering, but the current logical grouping (console variables together) is a reasonable organizational choice.

📜 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 3733df6 and fac29d9.

📒 Files selected for processing (5)
  • .env (1 hunks)
  • app/controllers/api/console.php (1 hunks)
  • docker-compose.yml (1 hunks)
  • src/Appwrite/Utopia/Response/Model/ConsoleVariables.php (1 hunks)
  • tests/e2e/Services/Console/ConsoleConsoleClientTest.php (1 hunks)
🧰 Additional context used
🧬 Code graph analysis (1)
src/Appwrite/Utopia/Response/Model/ConsoleVariables.php (1)
src/Appwrite/Utopia/Response/Model.php (1)
  • addRule (90-102)
🪛 dotenv-linter (4.0.0)
.env

[warning] 6-6: [UnorderedKey] The _APP_CONSOLE_EMAIL_VERIFICATION key should go before the _APP_EDITION key

(UnorderedKey)

🔇 Additional comments (3)
docker-compose.yml (1)

111-111: LGTM!

The environment variable is correctly added to the appwrite service configuration and positioned logically with other console-related variables.

app/controllers/api/console.php (1)

87-87: LGTM!

The environment variable is correctly sourced with an appropriate default value and properly integrated into the console variables response.

src/Appwrite/Utopia/Response/Model/ConsoleVariables.php (1)

108-118: LGTM!

The new console variable rule is properly defined with appropriate type, description, default value, and example. The implementation follows the established pattern and is consistent with the rest of the model.

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