-
Notifications
You must be signed in to change notification settings - Fork 147
feat(rivetkit): expose getGatewayUrl #3975
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
|
🚅 Environment rivet-pr-3975 in rivet-frontend has no services deployed. |
How to use the Graphite Merge QueueAdd the label merge-queue to this PR to add it to the merge queue. You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
More templates
@rivetkit/virtual-websocket
@rivetkit/cloudflare-workers
@rivetkit/db
@rivetkit/framework-base
@rivetkit/next-js
@rivetkit/react
rivetkit
@rivetkit/sql-loader
@rivetkit/engine-runner
@rivetkit/engine-runner-protocol
commit: |
PR Review: feat(rivetkit): expose getGatewayUrlSummaryThis PR adds a new Code Quality & Best Practices ✅Strengths:
Minor Issues:
Potential Bugs or Issues 🔍No Critical Issues Found Minor observations:
Performance Considerations ⚡Good:
Note:
Security Concerns 🔒All Good:
Test Coverage 🧪Missing:
Recommendations:
Architecture & Design 🏗️Excellent:
Convention Compliance ✅Based on CLAUDE.md guidelines:
Recommendations Summary
ConclusionThis is a clean, well-implemented feature addition. The code quality is good, follows existing patterns, and the refactoring improves code organization. The main gap is test coverage. Once tests are added, this PR will be ready to merge. Status: Approve with recommendations ✅ Review generated by Claude Code |
| import type { ClientConfig } from "@/client/config"; | ||
| import { HEADER_RIVET_TOKEN } from "@/common/actor-router-consts"; | ||
| import { combineUrlPath } from "@/utils"; | ||
| import { buildActorGatewayUrl } from "./actor-websocket-client"; |
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.
Import statement needs to be sorted correctly according to Biome's rules. Run 'biome format --write .' to fix import sorting.
Spotted by Graphite Agent (based on CI logs)
Is this helpful? React 👍 or 👎 to let us know.
fa8f73e to
ed37d98
Compare
| export function buildActorGatewayUrl( | ||
| endpoint: string, | ||
| actorId: string, | ||
| token: string | undefined, | ||
| path = "", | ||
| ): string { | ||
| const tokenSegment = | ||
| token !== undefined ? `@${encodeURIComponent(token)}` : ""; | ||
| const gatewayPath = `/gateway/${encodeURIComponent(actorId)}${tokenSegment}${path}`; | ||
| return combineUrlPath(endpoint, gatewayPath); | ||
| } |
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.
The new buildActorGatewayUrl function might not be properly formatted according to Biome standards. Run the Biome formatter on this file to ensure proper spacing, indentation, and line breaks. Also, ensure the imports at the top of the file are properly sorted.
Spotted by Graphite Agent (based on CI logs)
Is this helpful? React 👍 or 👎 to let us know.
ed37d98 to
825c812
Compare
Merge activity
|

No description provided.