Conversation
|
Thank you @fukua95, will review as soon as possible. |
ndyakov
left a comment
There was a problem hiding this comment.
left two comments, this is just a partial review.
|
@fukua95 we will have a discussion next week, overall I think the PR looks good, if the team agrees on the return types, I will merge this, thank you. |
Thank you for your review. If there is anything that needs to be updated (the return types or others), please feel free to let me know. One more thing: The |
Signed-off-by: fukua95 <fukua95@gmail.com>
91a5791 to
2a1d2d4
Compare
|
@fukua95 we are still not set on the return types, but one thing I will suggest is to use something similar to go-redis/sortedset_commands.go Line 728 in 27581fc |
Using a struct is more user-friendly. I will update it soon. |
There was a problem hiding this comment.
@fukua95 I added some suggestions, let me know if you would like to address them or if you like I can work on those. Thank you for the amazing work so far!
p.s. Don't worry about the delays, I am here to help you with merging this and if you don't have the bandwidth to continue the work on it I can continue.
|
@ndyakov Thank you for the detailed review! I really appreciate your suggestions and I'll work on the updates tonight or tomorrow. |
Signed-off-by: fukua95 <fukua95@gmail.com>
Signed-off-by: fukua95 <fukua95@gmail.com>
|
@fukua95 just a heads up, for the method that should clear the attributes - let's name it |
|
Hello, How about naming the method |
|
@fukua95 I was suggesting something similar to what you are suggesting, but the potential issue is that a user may think there is a redis command |
Signed-off-by: fukua95 <fukua95@gmail.com>
|
Got it, I've made the changes. |
|
@fukua95 thank you, will review this asap and get back to you. |
- Simplify VSetAttr to accept interface{} with automatic JSON marshalling
- Remove VectorAttributeMarshaller interface for simpler API
- Add comprehensive unit tests for all vectorset commands
|
@fukua95 I hope you don't mind me pushing the last commit. After trying both implementations for |
|
Not at all. Thank you. |
* feat: support vectorset
* fix: char encoding error
* use `any` instread of `interface{}`
* update vectorset API
Signed-off-by: fukua95 <fukua95@gmail.com>
* refact: MapStringFloat64Cmd -> VectorInfoSliceCmd
Signed-off-by: fukua95 <fukua95@gmail.com>
* update:
* the type of vector attribute: string -> VectorAttributeMarshaller
* Add a new API VRemAttr
* mark the APIs are experimental
Signed-off-by: fukua95 <fukua95@gmail.com>
* trigger CI again
Signed-off-by: fukua95 <fukua95@gmail.com>
* rename a API: VRemAttr -> VClearAttributes
Signed-off-by: fukua95 <fukua95@gmail.com>
* add test
Signed-off-by: fukua95 <fukua95@gmail.com>
* feat(vectorset): improve VSetAttr API and add comprehensive test suite
- Simplify VSetAttr to accept interface{} with automatic JSON marshalling
- Remove VectorAttributeMarshaller interface for simpler API
- Add comprehensive unit tests for all vectorset commands
---------
Signed-off-by: fukua95 <fukua95@gmail.com>
Co-authored-by: Nedyalko Dyakov <nedyalko.dyakov@gmail.com>
|
@cxljs bringing this to your attention redis/redis#14223 |
|
Thanks @ndyakov , I'll update it in a bit. |
* feat: support vectorset
* fix: char encoding error
* use `any` instread of `interface{}`
* update vectorset API
Signed-off-by: fukua95 <fukua95@gmail.com>
* refact: MapStringFloat64Cmd -> VectorInfoSliceCmd
Signed-off-by: fukua95 <fukua95@gmail.com>
* update:
* the type of vector attribute: string -> VectorAttributeMarshaller
* Add a new API VRemAttr
* mark the APIs are experimental
Signed-off-by: fukua95 <fukua95@gmail.com>
* trigger CI again
Signed-off-by: fukua95 <fukua95@gmail.com>
* rename a API: VRemAttr -> VClearAttributes
Signed-off-by: fukua95 <fukua95@gmail.com>
* add test
Signed-off-by: fukua95 <fukua95@gmail.com>
* feat(vectorset): improve VSetAttr API and add comprehensive test suite
- Simplify VSetAttr to accept interface{} with automatic JSON marshalling
- Remove VectorAttributeMarshaller interface for simpler API
- Add comprehensive unit tests for all vectorset commands
---------
Signed-off-by: fukua95 <fukua95@gmail.com>
Co-authored-by: Nedyalko Dyakov <nedyalko.dyakov@gmail.com>
vectorset commands: https://redis.io/docs/latest/develop/data-types/vector-sets/