Skip to content

Port the shared Hyperclient lifecycle to Mongoid - #20

Merged
dblock merged 1 commit into
with-mongoidfrom
docs/mongoid-hyperclient-demo
Oct 27, 2026
Merged

dblock merged 1 commit into
with-mongoidfrom
docs/mongoid-hyperclient-demo

Conversation

@dblock

@dblock dblock commented Oct 27, 2026 •

Copy link
Copy Markdown
Member

Port the master-first Hyperclient scenario from #18 into with-mongoid. Review/merge the shared scenario on master first; this is its MongoDB-specific port, not a separate Mongoid-only feature.

The README Ruby code is byte-for-byte identical across all three example branches: create, update via the returned HAL self link, list a freshly expanded paginated collection, and delete only the created spline. Replace the old collection-wide deletion demo with this shared lifecycle.

Only branch-specific prose and assertions differ: writes persist in MongoDB, links handle string IDs and cursor pagination, database reloads observe updates, and deleting the created record leaves an empty test database. Preserve existing multiple-record/name/pagination coverage and use default HAL encoding throughout the Hyperclient specs.

Only README and its corresponding request specs change. No API implementation, dependency, or CI changes.

AI-authored on behalf of @dblock.

The full five-combination MongoDB matrix and lint passed on 6927fdf: Tests, Rubocop.

Carry the master-first scenario from PR #18 unchanged, adapting only persistence notes and assertions. Use default HAL encoding, update/delete through returned self links, and expand fresh paginated collections. Preserve the existing multiple-record MongoDB coverage.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@dblock
dblock merged commit c542e86 into with-mongoid Oct 27, 2026
7 checks passed
@dblock
dblock deleted the docs/mongoid-hyperclient-demo branch October 27, 2026 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant