Conversation
- add per-database and per-request normalization control - ensure webhook paths use .fmp12 and OData strips it by default - update docs, tests, and changeset
🦋 Changeset detectedLatest commit: 5a3152c The changes in this PR will be included in the next version bump. This PR includes changesets to release 4 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
@proofkit/better-auth
@proofkit/cli
create-proofkit
@proofkit/fmdapi
@proofkit/fmodata
@proofkit/typegen
@proofkit/webviewer
commit: |
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughAdds configurable database-name normalization across Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant RequestLayer as requestFromService
participant ODataConfig
participant Normalizer as normalizeDatabasePath
participant HttpClient
Client->>RequestLayer: make request(url, options)
RequestLayer->>ODataConfig: read normalizeDatabaseName & mode
RequestLayer->>Normalizer: normalizeDatabasePath(url, {normalizeDatabaseName, mode})
Normalizer-->>RequestLayer: normalizedUrl
RequestLayer->>HttpClient: HttpClient.request(normalizedUrl, mergedOptions)
HttpClient-->>Client: response
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@packages/fmodata/src/client/database-name.ts`:
- Around line 44-47: Guard the unsafe decodeURIComponent call around
databaseSegment to prevent URIError crashes: wrap the
decodeURIComponent(databaseSegment) used when computing
normalizedDatabaseSegment in a try/catch (inside the code that calls
normalizeDatabaseSegment) and on catch fall back to the raw databaseSegment (or
a safe sanitized value) so normalizeDatabaseSegment(normalizedInput,
options.normalizeDatabaseName, options.mode) always receives a string; ensure
you reference the same symbols (databaseSegment, normalizeDatabaseSegment,
normalizedDatabaseSegment, options.normalizeDatabaseName, options.mode) so the
behavior is preserved for valid input but malformed % sequences do not throw.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: cb561235-c5a6-4da5-88ce-e7850c494c30
📒 Files selected for processing (21)
.changeset/fresh-cooks-kneel.mdapps/docs/content/docs/fmodata/quick-start.mdxapps/docs/content/docs/fmodata/webhooks.mdxpackages/fmodata/src/client/batch-builder.tspackages/fmodata/src/client/builders/table-utils.tspackages/fmodata/src/client/count-builder.tspackages/fmodata/src/client/database-name.tspackages/fmodata/src/client/database.tspackages/fmodata/src/client/delete-builder.tspackages/fmodata/src/client/filemaker-odata.tspackages/fmodata/src/client/insert-builder.tspackages/fmodata/src/client/query/query-builder.tspackages/fmodata/src/client/record-builder.tspackages/fmodata/src/client/update-builder.tspackages/fmodata/src/client/webhook-builder.tspackages/fmodata/src/effect.tspackages/fmodata/src/services.tspackages/fmodata/src/testing.tspackages/fmodata/src/types.tspackages/fmodata/tests/effect-layer-execution.test.tspackages/fmodata/tests/normalize-database-name.test.ts
💤 Files with no reviewable changes (1)
- apps/docs/content/docs/fmodata/webhooks.mdx
- tolerate invalid percent-encoding in database segments - keep normalization behavior unchanged for valid inputs
Summary
.fmp12; webhook add/list/remove force it onTesting
pnpm run ciSummary by CodeRabbit
New Features
Documentation
Tests