Repository navigation
docs: document the shared HttpMethod enum in the migration guide - #1679
Merged
Merged
Conversation
Contributor
📝 WalkthroughWalkthroughMIGRATION.md adds guidance for the shared ChangesHttpMethod migration
Estimated code review effort: 1 (Trivial) | ~3 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 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 |
Tr00d
approved these changes
Aug 10, 2026
Contributor
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@MIGRATION.md`:
- Around line 346-366: Expand the HttpMethod persistence guidance in
MIGRATION.md to include an explicit migration for previously stored integer
indexes before readers switch to method.name. Document the compatibility mapping
for legacy values, including post 1→2, put 2→3, and delete 3→5, while preserving
unchanged get and patch values and handling the newly introduced head entry.
🪄 Autofix
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 Plus
Run ID: ff2a99c4-7c4d-44f6-a2b6-d348f020a8f9
📒 Files selected for processing (1)
MIGRATION.md
The functions_client enum gained head and reordered its values when it merged with postgrest's (#1678), so an exhaustive switch stops compiling and index shifts for post, put and delete.
spydon
force-pushed
the
docs/migration-http-method
branch
from
August 10, 2026 09:55
3f9d8cd to
37a0036
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #1678, which landed without a migration note.
Why
Merging the two
HttpMethodenums changed the one thatfunctions_clientexported, and both effects are things a caller can hit:headjoined the enum, so an exhaustiveswitchoverHttpMethodin user code stops compiling. Verified: the analyzer reportsnon_exhaustive_switch_expression.indexmoved forpost,putanddelete. That one is silent, which is exactly the kind of change this guide flags.Nothing changes for callers who only used postgrest's enum, and no import paths change, since the shared enum is re-exported from both packages.
What changed
One section added to the v3 list in
MIGRATION.md: 13 lines, two bullets, no snippets. The shifted indices were read off the runtime output of iterating the merged enum (get=0 head=1 post=2 put=3 patch=4 delete=5) rather than derived by hand.Docs only, no code changes.
Summary by CodeRabbit
New Features
HEADHTTP method.Documentation