Skip to content

Build the storages on the mapping core of scim2-server - #16

Merged
azmeuk merged 1 commit into
mainfrom
mapping-core
Nov 27, 2026
Merged

azmeuk merged 1 commit into
mainfrom
mapping-core

Conversation

@azmeuk

@azmeuk azmeuk commented Nov 27, 2026

Copy link
Copy Markdown
Member

The storages now build on scim2_server.mapping, which scim2-django shares, and need scim2-server 0.9.0. They gain what scim2-django already had.

  • Entry stores a multi-valued attribute holding one entry at most, such as a work email, in columns of the resource record.
  • meta.created and meta.lastModified are optional.
  • version is optional. Without it, meta.version is a hash of the resource, keyed with the new version_key of the storages. A write on such a resource locks its row until the end of the transaction, so that two writes cannot both pass the same version.
  • Without meta.lastModified, the storage raises the version counter itself, so that a write of the links alone still changes it. A version the database generates is then refused.
  • Some error and warning messages change.
  • schemas() publishes an attribute that is never returned with the mutability of its schema, rather than writeOnly. A hidden sub-attribute of an immutable attribute keeps its own mutability.
  • A Link whose relationship leads to another class than the record of its target mapping is refused.

The declaration, the checks, the filters, the sorts, the reading of the
records and the checks of the writes now come from scim2_server.mapping,
which scim2-django shares. Some error and warning messages change.

The storages gain what scim2-django already had: Entry stores an entry
in columns of the resource record, meta.created and meta.lastModified
are optional, and without a version counter meta.version is a hash of
the resource, keyed with the new version_key.
@read-the-docs-community

Copy link
Copy Markdown

@azmeuk
azmeuk enabled auto-merge November 27, 2026 09:10
@azmeuk
azmeuk merged commit 464e3ac into main Nov 27, 2026
11 checks passed
@azmeuk
azmeuk deleted the mapping-core branch November 27, 2026 09:19
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