-
Notifications
You must be signed in to change notification settings - Fork 11
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
feat: add missing methods for partitions management #198
base: main
Are you sure you want to change the base?
Conversation
* Represents the data of the partitions that will be updated. | ||
* | ||
* ID is mandatory. | ||
* -1 means that value will not be updated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would just say negative instead of specifically -1.
The problem is that in protobuf, if a value is missing, it is set to 0...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok.
But 0 is a valid number for our use case...
repeated string parent_partition_ids = 2; /** The parent partition IDs. */ | ||
int64 pod_reserved = 3; /** Whether the partition is reserved for pods. */ | ||
int64 pod_max = 4; /** The maximum number of pods that can be used by sessions using the partition. */ | ||
map<string, string> pod_configuration = 7; /** The pod configuration. */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As far as I remember, map
is not well supported. I think we used a list of pairs in other places.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Waiting for implentation
☂️ Python Coverage
Overall Coverage
New FilesNo new covered files... Modified FilesNo covered modified files...
|
Add the missing methods for partition management in the partitions service: