Skip to content

Conversation

@mwestphall
Copy link
Contributor

Remove all COManage-facing code from the projectmap generation script. Instead, get user and group information from LDAP and OSPool project information from topology. Marked as do-not-merge until we resolve some data misalignments between topology and COManage:

https://opensciencegrid.atlassian.net/browse/INF-1060

williamnswanson and others added 12 commits November 27, 2023 16:05
Uses LDAP search to find active and provisioned groups then compares them to the list project groups in COmanage to determine which LDAP groups and users to build the map out of.
And clean up of no-longer-used methods

remove collections import
Writes the osggids to project name dict to a file containing the epoch time the cache was made. If the file is found to exist and was made in the past 0.5 hours (by default), the program will read from the cache instead of making COmanage API calls. Otherwise, the program will get the project data from the API and overwrite any existing cache.
Uses LDAP search to find active and provisioned groups then compares them to the list project groups in COmanage to determine which LDAP groups and users to build the map out of.
And clean up of no-longer-used methods

remove collections import
Writes the osggids to project name dict to a file containing the epoch time the cache was made. If the file is found to exist and was made in the past 0.5 hours (by default), the program will read from the cache instead of making COmanage API calls. Otherwise, the program will get the project data from the API and overwrite any existing cache.
@mwestphall mwestphall force-pushed the INF-1060-member-removals branch from 8f05ba7 to f5fc575 Compare November 20, 2025 00:08
Copy link
Member

@brianhlin brianhlin left a comment

Choose a reason for hiding this comment

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

I imagine this works but it could use some touching up

@mwestphall mwestphall force-pushed the INF-1060-member-removals branch from 9496d0d to df440b4 Compare November 26, 2025 18:09
@mwestphall mwestphall requested a review from brianhlin November 26, 2025 18:12
Copy link
Member

@brianhlin brianhlin left a comment

Choose a reason for hiding this comment

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

Some minor changes requested but otherwise LGTM

@mwestphall mwestphall requested a review from brianhlin November 26, 2025 19:52
Copy link
Member

@brianhlin brianhlin left a comment

Choose a reason for hiding this comment

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

LGTM. Holding off on merging since I don't recall if this automatically gets deployed in prod

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