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

.Net: Remove DeleteRecordOptions and UpsertRecordOptions from MEVD #10192

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

roji
Copy link
Member

@roji roji commented Jan 15, 2025

Closes #10172

/cc @westey-m

@roji roji requested a review from a team as a code owner January 15, 2025 12:05
@markwallace-microsoft markwallace-microsoft added .NET Issue or Pull requests regarding .NET code kernel Issues or pull requests impacting the core kernel memory labels Jan 15, 2025
@github-actions github-actions bot changed the title Remove DeleteRecordOptions and UpsertRecordOptions from MEVD .Net: Remove DeleteRecordOptions and UpsertRecordOptions from MEVD Jan 15, 2025
/// <param name="cancellationToken">The <see cref="CancellationToken"/> to monitor for cancellation requests. The default is <see cref="CancellationToken.None"/>.</param>
/// <returns>The unique identifier for the record.</returns>
/// <exception cref="VectorStoreOperationException">Throw when the command fails to execute for any reason other than that the record does not exit.</exception>
Task DeleteAsync(TKey key, DeleteRecordOptions? options = default, CancellationToken cancellationToken = default);
Task DeleteAsync(TKey key, CancellationToken cancellationToken = default);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we consider obsoleting the old overloads and the options we are removing while adding the new ones. We can then delete the old ones after a couple of months?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could... We do need to decide what the release policy will be like in the coming months etc. For this specific case, since these types are empty, they weren't actually useful to anyone, and I suspect that for the vast majority of users the code will compile as-is against the new version (it's a binary break, but that really shouldn't be a big deal between previews...).

I do have some more impactful breaking proposals possibly coming (e.g #10193). I personally wouldn't spend too much time on figuring out backwards compat across these prerelease previews and just push forward - but let me know what you think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kernel Issues or pull requests impacting the core kernel memory .NET Issue or Pull requests regarding .NET code
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

.Net M.E.VectorData: consider removing {Get,Delete,Upsert}RecordOptions (for now)
4 participants