diff --git a/docs/reference/benchling-connection.md b/docs/reference/benchling-connection.md index 8a5fd10..3e28bab 100644 --- a/docs/reference/benchling-connection.md +++ b/docs/reference/benchling-connection.md @@ -48,7 +48,7 @@ connection = BenchlingConnection( The API id of the registry to scope this connection to, for example `src_abc123`. Only needed when the tenant has more than one registry. When set, Liminal reads and writes only the entity schemas and dropdowns in that registry, and the results schemas owned by the registry's organization. For a tenant with multiple registries and no `registry_id` set, Liminal raises an error in `BenchlingService`. !!! tip - For a tenant with several registries, give each registry its own Liminal directory (`env.py` and `versions/`), with one `BenchlingConnection` per tenant that defines that registry's `registry_id`. Each registry then keeps its own revision history in its own `liminal_remote` schema. + For a tenant with several registries, create a separate Liminal directory (`env.py` and `versions/`) for each registry, with one `BenchlingConnection` per tenant+registry combination with respective `registry_id` defined. Each registry then keeps its own revision history in its own `liminal/versions` directory. - **config_flags: TenantConfigFlags = TenantConfigFlags()** diff --git a/docs/release-notes.md b/docs/release-notes.md index 9e356e8..23cb14e 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -1,5 +1,24 @@ For full release notes, please visit the [GitHub Releases page](https://github.com/dynotx/liminal-orm/releases). Release versions follow [semantic versioning](https://semver.org/). This page will document migration steps needed for major and minor version changes. +## v5.2.0 + +[![github](https://img.shields.io/badge/github-v5.2.0-blue)](https://github.com/dynotx/liminal-orm/releases/tag/5.2.0) [![pypi](https://img.shields.io/pypi/v/liminal-orm/5.2.0.svg)](https://pypi.org/project/liminal-orm/5.2.0/) + +### 🗒️ Summary + +v5.2.0 release adds support for Benchling tenants with multiple registries. Previously, Liminal only support tenant's with one registry and raised an error if multiple were found. Now, the error still gets raised but prompts the user to configure the `registry_id` on the `BenchlingConnection`. When this is configured, the endpoints become registry or organization scoped. It is recommended that if you have multiple registries, to initialize liminal for each registires, creating multiple separate directories to track the revisions and schemas. + +This is a minor version upgrade since this is purely an addition of functionality and all current users with one registry are unaffected. If you have any issues or questions, reach out! + +### 🚀 Upgrade Steps +1. Run `uv add liminal-orm@5.2.0` or `pip install liminal-orm==5.2.0` to upgrade. If your tenant has a single registry, you're done. +2. If your tenant has multiple registries, create a separate directory for each registry and run `liminal init` in each. +3. In each `liminal/env.py`, set `registry_id` on the `BenchlingConnection`. See the [BenchlingConnection reference](reference/benchling-connection.md). + +#### PRs +- PR [#274](https://github.com/dynotx/liminal-orm/pull/274): adds support for multiple registries. Closes [#43](https://github.com/dynotx/liminal-orm/issues/43). + + ## v5.0.0 [![github](https://img.shields.io/badge/github-v5.0.0-blue)](https://github.com/dynotx/liminal-orm/releases/tag/5.0.0) [![pypi](https://img.shields.io/pypi/v/liminal-orm/5.0.0.svg)](https://pypi.org/project/liminal-orm/5.0.0/)