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

feat: add missing methods for partitions management #198

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

aneojgurhem
Copy link
Contributor

@aneojgurhem aneojgurhem commented Mar 21, 2023

Add the missing methods for partition management in the partitions service:

  • add partition
  • remove partitions
  • update partitions

* Represents the data of the partitions that will be updated.
*
* ID is mandatory.
* -1 means that value will not be updated
Copy link
Contributor

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...

Copy link
Contributor Author

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. */
Copy link
Contributor

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.

@aneojgurhem aneojgurhem marked this pull request as draft March 22, 2023 09:57
Copy link
Contributor

@esoubiran-aneo esoubiran-aneo left a comment

Choose a reason for hiding this comment

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

Waiting for implentation

@github-actions
Copy link

github-actions bot commented May 24, 2023

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
505 456 90% 0% 🟢

New Files

No new covered files...

Modified Files

No covered modified files...

updated for commit: 58c2d1d by action🐍

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