Skip to content

Unify crud grammar - #2133

Closed
bfoley12 wants to merge 606 commits into
masterfrom
unify-crud-grammar
Closed

Unify crud grammar#2133
bfoley12 wants to merge 606 commits into
masterfrom
unify-crud-grammar

Conversation

@bfoley12

Copy link
Copy Markdown
Collaborator

Summary

Major changes:

  • domains' services, repos, and routers now all expose a similar public api
    • rather than including the domain in CRUD methods (ie insert_one_contribution) or specifying that an operation uses id (ie. insert_by_id), now we just expose *_one and *_many (ie. insert_one or get_many)

bfoley12 and others added 30 commits July 14, 2026 16:52
…y_name and bucket_name out of router function defs since they are in flux
… contributions reference the component in question
…nt-specific repos still exist to declare their document and out_model types, but have no subclass-specific logic
…across our stack easily, but loses centralization. We only had light centralization, but future efforts would not be immediately shared
…ser - users can no longer operate on components that their contributions dontown
…tructive modification of Contribution.data in bulk and single patch cases
Primarily focused on additive Contribution.data logic
…data

validator logic now lives in data.py:ContributionStoredData rather than directly in models
…eced_components_ids is structured

reduced code duplication and unnecessary abstractions
…ified some method grammar

moved from *_by_id and *_by_identifiers into a unified *_one grammar
…pecific methods in favor of parent class methods
…tive in favor of a unified, general patch implementation
…tch_one` to handle server calculated fields that don't fit within *Patch (ie. Links)
…ss one-line abstraction and implemente from_input_model
all domains now expose public `*_one` and `*_many` rather than including their domain in the method names. This allows for a similar method space regardless of domain
@bfoley12 bfoley12 closed this Aug 19, 2026
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