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

Add a generic entity client for datastore #19

Merged
merged 2 commits into from
Feb 14, 2024
Merged

Conversation

jcscottiii
Copy link
Collaborator

@jcscottiii jcscottiii commented Feb 14, 2024

Previously the datastore client was made specifically for WebFeatures.

By moving to generics, we can easily expand support for future entity types (which is already used in #10).

In order to support the generic client, two new interfaces are introduced:

  • Filterable
  • Mergeable

Filterable allows us to pass custom filters that apply to that entity type

Mergeable allows us to define logic for that entity type to describe how to handle merges during updates

Also add some tests for this new entity client

This is part of splitting up #10

Previously this client was made specifically for WebFeatures.

By moving to generics, we can easily expand support for future entity types.

In order to support the generic client, two new interfaces are introduced:
- Filterable
- Mergeable

Filterable allows us to pass custom filters that apply to that entity type

Mergeable allows us to define logic for that entity type to describe how to handle merges during updates

Also add some tests for this new entity client

This is part of splitting up #10

Change-Id: I40ff90582cbb73c11897777e1e72a995669dc12f
Change-Id: Ifc55e09388d8a9d554b565402f719bc77d8f0a2a
@jcscottiii jcscottiii merged commit ba0e5a5 into main Feb 14, 2024
3 checks passed
@jcscottiii jcscottiii deleted the jcscottiii/entity-client branch February 14, 2024 15:23
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.

2 participants