-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Log entrypoint #10980
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
base: 1.8.x
Are you sure you want to change the base?
Log entrypoint #10980
Conversation
📝 WalkthroughWalkthroughA logging statement is added to the Migrations worker that prints the endpoint value via Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes The modification is a single, straightforward logging statement with no logic changes, control flow alterations, or side effects beyond improved visibility. The homogeneous nature of this change (one repeated action across one file) minimizes review complexity. Pre-merge checks and finishing touches❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
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. Comment |
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)
src/Appwrite/Platform/Workers/Migrations.php (1)
336-337: Verify if this logging is intentional and permanent.This log statement only fires when the source is
SourceAppwriteand credentials are initially empty—other migration paths and credential scenarios remain unlogged. Additionally, the endpoint URL may reveal internal infrastructure details, though this is typically low-sensitivity information.A few points to consider:
- Scope: Is this targeted logging intentional for debugging a specific issue, or should endpoint logging be added consistently across all migration paths?
- Permanence: Should this remain in the codebase long-term, or is it temporary debug instrumentation that should be removed before merge?
- Context: The log message could be more helpful by including migration/project identifiers, e.g.,
Console::info('Migration ' . $migration->getId() . ' using endpoint: ' . $credentials['endpoint']);If this is intended as permanent observability, consider whether similar logging should be added for other migration source types (Firebase, Supabase, NHost, CSV) to provide consistent visibility across all migration operations.
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
src/Appwrite/Platform/Workers/Migrations.php(1 hunks)
🧰 Additional context used
🧠 Learnings (1)
📚 Learning: 2025-10-23T08:06:38.889Z
Learnt from: abnegate
Repo: appwrite/appwrite PR: 10546
File: src/Appwrite/Platform/Workers/Migrations.php:144-148
Timestamp: 2025-10-23T08:06:38.889Z
Learning: In the Appwrite codebase, migration workers receive already-validated data from queued jobs. Query validation using Query::parseQueries() happens at the API endpoint level (with try-catch for QueryException) before jobs are queued, so workers in src/Appwrite/Platform/Workers/Migrations.php don't need redundant validation.
Applied to files:
src/Appwrite/Platform/Workers/Migrations.php
⏰ 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). (2)
- GitHub Check: Setup & Build Appwrite Image
- GitHub Check: Setup & Build Appwrite Image
✨ 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