Skip to content

Backward compatibility for subset get_element_names#1338

Open
cubewise-gng wants to merge 6 commits intocubewise-code:masterfrom
cubewise-gng:fix-get_element_names
Open

Backward compatibility for subset get_element_names#1338
cubewise-gng wants to merge 6 commits intocubewise-code:masterfrom
cubewise-gng:fix-get_element_names

Conversation

@cubewise-gng
Copy link
Contributor

Fix #1302 get_element_names in SubsetService not backwards compatible

@MariusWirtz MariusWirtz added the release:patch Triggers patch version bump (e.g.: 1.4.9 → 1.4.10) label Jan 30, 2026
"""
# backward compatibility for subset_name
if "subset_name" in kwargs:
subset = kwargs["subset_name"]
Copy link
Collaborator

Choose a reason for hiding this comment

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

@cubewise-gng
please do another check to verify if subset and subet_name are both provided. In that case we can raise a ValuError

@@ -201,7 +201,7 @@ def delete_elements_from_static_subset(
return self._rest.DELETE(url=url, **kwargs)

def get_element_names(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please add some test cases of possible argument combinations here Tests/SubsetService_test.py

@MariusWirtz MariusWirtz self-requested a review February 3, 2026 19:23
@MariusWirtz
Copy link
Collaborator

Thanks for the fix!

Please implement the two requested enhancements and rebase on the current master branch

@cubewise-gng
Copy link
Contributor Author

Hi @MariusWirtz, added the requested changes. Hope I did the rebase correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release:patch Triggers patch version bump (e.g.: 1.4.9 → 1.4.10)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

get_element_names in SubsetService not backwards compatible

3 participants