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

Rename the kv-store interface to object-store in compute.wit #415

Merged
merged 4 commits into from
Aug 21, 2024

Conversation

elliottt
Copy link
Contributor

@elliottt elliottt commented Aug 13, 2024

Rename the kv-store interface in compute.wit to object-store, and add todo!() implementations for the new kv-store interface. The host implementations of those functions will be added in a follow-up PR along with the wiggle implementation for the new host calls, however the adapter has been updated to handle the new hostcalls already.

I tried to structure the commits so that it shows the renaming and updates to object_store.rs as an actual diff, but github is not cooperating. Looking at the individual commits should show that the changes to object_store.rs includes a renaming and small changes to the original implementation, while kv_store.rs is a completely fresh implementation of a new interface.

cc @computermouth

@elliottt elliottt force-pushed the trevor/object-store-interface branch 3 times, most recently from 68cc150 to 86c11f4 Compare August 15, 2024 16:13
@elliottt elliottt force-pushed the trevor/object-store-interface branch 3 times, most recently from cd31461 to ab2388a Compare August 20, 2024 23:52
@elliottt elliottt marked this pull request as ready for review August 20, 2024 23:54
@elliottt elliottt requested a review from acw August 20, 2024 23:54
@elliottt elliottt changed the title Rename the kv-store interface to object-store Rename the kv-store interface to object-store in compute.wit Aug 20, 2024
@elliottt elliottt force-pushed the trevor/object-store-interface branch from ab2388a to 7b98992 Compare August 21, 2024 00:05
Copy link
Contributor

@acw acw left a comment

Choose a reason for hiding this comment

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

Looked right, but I'd love it if there were some way we could mark the kv store wit as deprecated.

/*
* Fastly KV Store
*/
interface kv-store {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there any sort of deprecation tag (or even a comment) we can put here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There is, but we could instead just remove the object-store interface and polyfill it in the adapter with the new kv-store import. Either way, let's hold off until the kv-store interface has been filled out :)

@elliottt elliottt merged commit 8961565 into main Aug 21, 2024
15 checks passed
@elliottt elliottt deleted the trevor/object-store-interface branch August 21, 2024 22:25
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