-
Notifications
You must be signed in to change notification settings - Fork 192
fix: ts error in console sdk and add to tests #1287
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
Conversation
WalkthroughThis pull request makes three factual changes: (1) adds a second web SDK matrix entry in the GitHub Actions workflow with platform set to Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Pre-merge checks✅ Passed checks (3 passed)
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
💤 Files with no reviewable changes (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ 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). (16)
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 |
6f99633 to
f70c437
Compare
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)
templates/web/src/client.ts.twig (1)
459-459: Consider explicit string conversion for type safety.The type cast resolves the TypeScript error, but
String()conversion would be more defensive ifthis.config.projectis unexpectedly non-string:- channels.set('project', this.config.project as string); + channels.set('project', String(this.config.project));This ensures URLSearchParams receives a string even if the config value is malformed.
📜 Review details
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
.github/workflows/sdk-build-validation.ymltemplates/web/src/client.ts.twig
🧰 Additional context used
🧠 Learnings (1)
📚 Learning: 2025-12-18T18:42:20.227Z
Learnt from: ArnabChatterjee20k
Repo: appwrite/sdk-generator PR: 1266
File: templates/swift/Sources/WebSockets/WebSocketClient.swift.twig:140-140
Timestamp: 2025-12-18T18:42:20.227Z
Learning: In templates/swift/Sources/WebSockets/WebSocketClient.swift.twig, the Channel type from NIOCore is explicitly qualified as `NIOCore.Channel` to avoid naming conflicts with the new Channel helper class for realtime subscriptions. This is not a breaking change - it's the same type, just explicitly qualified in the source.
Applied to files:
templates/web/src/client.ts.twig
⏰ 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). (12)
- GitHub Check: build (8.3, KotlinJava17)
- GitHub Check: build (8.3, DotNet90)
- GitHub Check: build (8.3, AppleSwift56)
- GitHub Check: build (8.3, DartBeta)
- GitHub Check: build (8.3, Swift56)
- GitHub Check: build (8.3, FlutterStable)
- GitHub Check: build (8.3, PHP80)
- GitHub Check: build (8.3, Android14Java17)
- GitHub Check: build (8.3, Android5Java17)
- GitHub Check: swift (server)
- GitHub Check: android (client)
- GitHub Check: apple (client)
🔇 Additional comments (1)
.github/workflows/sdk-build-validation.yml (1)
64-66: LGTM! Console SDK now validated in CI.Adding the web SDK with console platform to the build matrix ensures the TypeScript fix is validated during CI, preventing future regressions.
243aec0 to
07778b3
Compare
Summary by CodeRabbit
Chores
Refactor
Bug Fixes
✏️ Tip: You can customize this high-level summary in your review settings.