Skip to content

feat!: support Couchbase Server 8.0 (Magma) by removing Views - #44

Draft
pimpin wants to merge 2 commits into
masterfrom
pimpin/introduce-cb-v8
Draft

pimpin wants to merge 2 commits into
masterfrom
pimpin/introduce-cb-v8

Conversation

@pimpin

@pimpin pimpin commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

Context

Couchbase Server 8.0 made Magma the default bucket storage backend. Magma does not support Views, so adding CB 8.0.4 to the CI matrix produced 12 failures, all with:

views are supported only on couchbase buckets with couchstore storage backend

Rather than pinning CI buckets to couchstore, we keep the server default and drop the View-based features from the ORM.

Changes

  • CI: add Ruby 4.0 / ActiveModel 8.1.4 / Couchbase 8.0.4 to the matrix; the bucket uses the server's default storage backend (Magma on 8.0).
  • Breaking — Views removed:
    • CouchbaseOrm::Views (view, index_view, ensure_design_document!, include_docs) is deleted.
    • The Rails config.couchbase_orm.ensure_design_documents setting and its after-initialize hook are removed.
    • BucketProxy#view is removed.
    • has_many now defaults to type: :n1ql; type: :view raises ArgumentError.
    • join builds its by_<model>_id / find_by_<model>_id lookups with N1QL instead of Views (same method names).
  • Specs, README and Docusaurus docs updated (Views page removed).

Release note

This changes the public API: it should be released as the next major version. The version bump is left to the release PR.

Testing

Full suite run locally against Couchbase Server 8.0.4 (Magma bucket) with Ruby 4.0 / ActiveModel 8.1.4: 386 examples, 0 failures.

🤖 Generated with Claude Code

pimpin and others added 2 commits November 23, 2026 17:46
Couchbase Server 8.0 defaults new buckets to the Magma storage backend,
which does not support Views. Pin couchstore in the CI bucket setup so
the Views specs keep running, and add an 8.0.4 entry to the matrix.

Refs BC-3548

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Couchbase Server 8.0 uses Magma as the default storage backend, and
Magma buckets do not support Views (map/reduce design documents).

BREAKING CHANGE:
- remove CouchbaseOrm::Views (view, index_view, ensure_design_document!,
  include_docs) and the Rails ensure_design_documents initializer
- remove BucketProxy#view
- has_many now defaults to type: :n1ql; type: :view raises ArgumentError
- join builds its by_<model>_id lookups with N1QL instead of Views

The CI bucket keeps the server default storage backend (Magma on 8.0).

Refs BC-3548

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@pimpin pimpin changed the title ci: test against Couchbase Server 8.0 with couchstore buckets feat!: support Couchbase Server 8.0 (Magma) by removing Views Nov 23, 2026

This branch has not been deployed

No deployments
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