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

refactor: use mvi filter fields for get/delete items #434

Merged
merged 5 commits into from
Feb 12, 2024

Conversation

malandis
Copy link
Contributor

@malandis malandis commented Feb 9, 2024

We are in the process of migrating MVI delete item batch, get item batch, and get item metadata batch to use a filter expression to select items to delete (get) as opposed to a list of id's. For convenience, we will still allow users to select items with a list of id's from the top level methods. This PR migrates the backend.

As part of the migration we are also moving away from the hit/miss pattern for get item batch and get item metadata batch response messages. While the hit/miss pattern made sense for when we only selected items by id, it no longer makes sense for when a user supplies a general filter expression. What's more, previously when we read the hit/miss responses, we built a dictionary containing only the hits, so the distinction wasn't as important.

In future PRs we will add overloads to also use a filter expression from delete and get item methods.

Because we will allow filter expressions, the hit/miss response
pattern no longer makes sense for `get item batch` and `get item
metadata batch`. In this commit we transition away from hit/miss and
just use a sequence of found items.
@malandis malandis marked this pull request as draft February 9, 2024 06:12
@malandis malandis requested review from honeyAcorn and a team February 9, 2024 18:21
@malandis malandis marked this pull request as ready for review February 9, 2024 18:22
@malandis malandis merged commit 43908be into main Feb 12, 2024
20 checks passed
@malandis malandis deleted the refactor/use-mvi-filter-fields-for-get-and-delete branch February 12, 2024 17:49
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.

3 participants