Skip to content

INF-3279: Refactor OSDF script to use JSON API#43

Open
biozit wants to merge 1 commit into
path-cc:mainfrom
biozit:patch-1
Open

INF-3279: Refactor OSDF script to use JSON API#43
biozit wants to merge 1 commit into
path-cc:mainfrom
biozit:patch-1

Conversation

@biozit
Copy link
Copy Markdown

@biozit biozit commented Mar 30, 2026

No description provided.

@brianhlin brianhlin changed the title Refactor OSDF script to use JSON API INF-3279: Refactor OSDF script to use JSON API Apr 2, 2026
Copy link
Copy Markdown
Contributor

@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.

@biozit I don't think this does exactly what's intended. We want the number of institutions that are running an OSDF origin or cache. So you should grab the institution data for each of the registrations here https://osdf-registry.osg-htc.org/api/v1.0/registry_ui/servers and then use the institution IDs to translate them to a human readable list

@biozit
Copy link
Copy Markdown
Author

biozit commented May 5, 2026

@brianhlin done

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Refactors the OSDF facility listing logic from parsing Topology XML to consuming the OSDF Registry + Institutions JSON APIs.

Changes:

  • Replaces XML parsing with JSON fetches from osdf-registry.osg-htc.org and topology-institutions.osg-htc.org.
  • Adds a CLI (--type cache|origin) and refactors logic into helper functions (fetch_json, build_institution_map, get_facilities).
  • Updates output formatting to print a sorted, deduplicated list of names.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread campus-contributions/osdf.py
Comment thread campus-contributions/osdf.py
Comment thread campus-contributions/osdf.py
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