-
Notifications
You must be signed in to change notification settings - Fork 294
idl: Rename pool_allowed_operations to pool_operations #6754
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
Conversation
e663449 to
e7430c7
Compare
|
Forgot to bump minor schema version |
|
I'm pretty sure changing an enum value in the IDL will break pools as soon as there's one host in the new version, and another in the old version: they won't be able to communicate with each other because they don't recognise each other's enum. Please do test RPUs with this change and report back |
ocaml/idl/datamodel_pool.ml
Outdated
| ( "pool_allowed_operations" | ||
| , (* FIXME: This should really be called `pool_operations`, to avoid confusion with the Pool.allowed_operations field *) | ||
| [ | ||
| ( "pool_operations" |
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.
It may seem that this string isn't actually used anywhere, at least by RPCs on the wire. But this may not be true for the language bindings in the SDK. So this change may break client code.
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.
It does indeed change the name of the pool operations from (e.g. Java) PoolAllowedOperations to PoolOperations. Presumably there is no way around this, is there ever a time where we can change that name or do we just remove the fixme?
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 think it's not worth the possible fallout of changing this, so I'd just drop the comment.
The changes passed an RPU test on XenRT - I'll have a look at whether there are any SDK changes. |
I think the potential problem is for the clients who are using an old SDK to communicate with the new XAPI with this change. |
Signed-off-by: Christian Pardillo Laursen <christian.pardillolaursen@citrix.com>
e7430c7 to
4fe0f00
Compare
|
I'll be removing the comment instead - I'll open a pull request for that |
This commit addresses a fixme in idl/datamodel_pool.ml. The name pool_allowed_operations conflicts with field Pool.allowed_operations, so renaming for clarity.
As far as I can tell, this change does not impact functionality in any way.