Skip to content

CMLDEV-934 Drop deprecated endpoints and fields in CML 2.11 API#195

Open
tmikuska wants to merge 5 commits intodevfrom
CMLDEV-934-drop-deprecated-endpoints-and-fields-in-cml-2.11-api
Open

CMLDEV-934 Drop deprecated endpoints and fields in CML 2.11 API#195
tmikuska wants to merge 5 commits intodevfrom
CMLDEV-934-drop-deprecated-endpoints-and-fields-in-cml-2.11-api

Conversation

@tmikuska
Copy link
Collaborator

No description provided.

Drop deprecated `labs` payload support in group management and remove deprecated lab/group accessors in favor of association-only APIs.
Drop the removed `offline` keyword from ClientLibrary.import_lab and update its regression test to assert the argument is rejected.
Remove deprecated no-argument behavior from ClientLibrary.get_diagnostics and update tests to pass categories explicitly or assert a ValueError.
Drop the legacy `nodes` constructor argument and property from ComputeHost and keep node summary access via `node_counts` and diagnostics endpoints.
Delete legacy public `push_to_server` parameters from model update methods and keep server-sync behavior through internal `_update(..., push_to_server=...)` pathways.
with open(topology_file_path) as fh:
topology_file = fh.read()
with pytest.deprecated_call():
with pytest.raises(TypeError):
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

we usually do not test remove code, so this can be removed, but doesn't hurt

"ClientLibrary.get_diagnostics(DiagnosticsCategory.ALL) "
"or provide one or more explicit categories."
)
categories = [DiagnosticsCategory.ALL]
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this seems a little harsh, but displaying what we usually do

I'd prefer to make ALL the default option instead even though it doesn't match API behavior

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.

1 participant