Skip to content

Conversation

@ryuwd
Copy link
Contributor

@ryuwd ryuwd commented Dec 8, 2025

BEGINRELEASENOTES

*CSAPI
FIX: Have CSAPI return AffiliationEnds if existing

ENDRELEASENOTES

@ryuwd ryuwd marked this pull request as ready for review December 8, 2025 14:34
@ryuwd ryuwd requested review from atsareg and fstagni as code owners December 8, 2025 14:34
if "AffiliationEnds" in user_sections:
affiliation_ends_opts = self.__csMod.getOptions(f"{csSection}/AffiliationEnds")
for vo_ in affiliation_ends_opts:
affiliation_ends_current[vo_] = self.__csMod.getValue(f"{csSection}/AffiliationEnds/{vo_}")
Copy link
Contributor

Choose a reason for hiding this comment

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

Can't you just use

def getOptionsDict(self, sectionPath):

Construct the whole path and call getOptionsDict

# getOptionsDict returns S_ERROR if missing section
return self.__csMod.getOptionsDict(f"{theSections}").get("Value", {})

Copy link
Contributor Author

@ryuwd ryuwd Dec 16, 2025

Choose a reason for hiding this comment

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

Yes it seems that getOptionsDict is the right option here, but I can't be sure that it'll work as expected (particularly since it doesn't seem to return S_ERROR on missing section)

I will integrate it when I have time, but I don't currently trust it and this shouldn't block the next release, since there is a hotfix that depends on this PR

@fstagni fstagni closed this Dec 9, 2025
@fstagni fstagni reopened this Dec 9, 2025
@fstagni fstagni merged commit 1a5a9b3 into DIRACGrid:integration Dec 17, 2025
41 of 49 checks passed
@DIRACGridBot DIRACGridBot added the sweep:ignore Prevent sweeping from being ran for this PR label Dec 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sweep:ignore Prevent sweeping from being ran for this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants