Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Identity enhancements #437

Merged
merged 3 commits into from
Jun 11, 2024
Merged

Identity enhancements #437

merged 3 commits into from
Jun 11, 2024

Conversation

subhashb
Copy link
Contributor

Changes:

  • Add support for FUNCTION strategy
  • Enhance Auto field to be able to customize identity generation for a single entity
  • Identity documentation

subhashb added 3 commits June 11, 2024 09:48
With this commit, the domain object constructor accepts a param named
`identity_function` which will be used do generate unique identifiers
for elements.
This commit adds support to customize identity generation at the level of
an `Auto` field. `Auto` fields now have `identity_strategy`, `identity
function` (optional), and `identity_type` params.

Where not available, Protean will use the defaults defined at the
domain level.
@subhashb subhashb self-assigned this Jun 11, 2024
@subhashb subhashb merged commit fdab7d2 into main Jun 11, 2024
4 checks passed
@subhashb subhashb deleted the identity-enhancements branch June 11, 2024 21:50
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