Skip to content

Conversation

@h2zh
Copy link
Contributor

@h2zh h2zh commented Dec 5, 2025

Problem

We adopted new capability naming convention (PublicReads, Reads, Writes, Listings, DirectReads) ~2 years ago, but the JSON tags were left with the old names (PublicRead, Read, Write, Listing, FallBackRead). The conversion is done on the frontend, which is not a desirable approach.

Solution

This PR move the capability name conversion from frontend to backend.

I hand tested this PR for backward compatibility by spinning up the Director, Registry in this branch, and Origin in main. It stimulates a Origin <= v7.21 sending ads with old capability names to 7.22 Director.

h2zh added 2 commits December 5, 2025 15:55
- When an Origin/Cache running Pelican before v7.22.0, they are advertising with the old names. This commit converts them into the new ones
@h2zh h2zh added origin Issue relating to the origin component director Issue relating to the director component web-ui Related to our web displays labels Dec 5, 2025
@h2zh h2zh linked an issue Dec 5, 2025 that may be closed by this pull request
- Update the names in `Capabilities` interface
- Conversion is done in backend, so the frontend doesn't need to map the old names to new ones
@h2zh h2zh force-pushed the capabilities-name branch from 8652167 to 9bfc218 Compare December 5, 2025 17:40
@h2zh h2zh requested a review from CannonLock December 5, 2025 17:44
@h2zh h2zh assigned h2zh and CannonLock and unassigned h2zh Dec 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

director Issue relating to the director component origin Issue relating to the origin component web-ui Related to our web displays

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Correct Server Capabilities Reporting from Deprecated Values

2 participants