Repository navigation
Build the storages on the mapping core of scim2-server - #16
Merged
Merged
Conversation
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.
Documentation build overview
7 files changed ·
|
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.
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.Entrystores a multi-valued attribute holding one entry at most, such as a work email, in columns of the resource record.meta.createdandmeta.lastModifiedare optional.versionis optional. Without it,meta.versionis a hash of the resource, keyed with the newversion_keyof 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.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.schemas()publishes an attribute that is never returned with the mutability of its schema, rather thanwriteOnly. A hidden sub-attribute of an immutable attribute keeps its own mutability.Linkwhose relationship leads to another class than the record of its target mapping is refused.