Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Always unmarshall config when /config API is called #395

Merged

Conversation

haoming29
Copy link
Contributor

Fixes #389

Testing Instructions

Run director registry and origin, and go to origin's ui https://localhost:8444/view/config/index.html
Check that under Origin subheader, the value of NamespacePrefix is set to whatever prefix you gave to your origin and registered at registry, say /origin1, because this value is being set after InitServer() was called.

@haoming29 haoming29 marked this pull request as ready for review November 20, 2023 16:31
@haoming29 haoming29 requested a review from CannonLock November 20, 2023 16:31
@haoming29 haoming29 added this to the v7.4.0 milestone Nov 20, 2023
@haoming29 haoming29 added the bug Something isn't working label Nov 20, 2023
@haoming29 haoming29 modified the milestones: v7.4.0, v7.3.0 Nov 21, 2023
@haoming29
Copy link
Contributor Author

Included Justin as another reviewer for checking Go code

@haoming29 haoming29 force-pushed the config-api-missing-vals branch from b8f6e68 to c1c4c24 Compare November 28, 2023 17:35
Copy link
Member

@jhiemstrawisc jhiemstrawisc left a comment

Choose a reason for hiding this comment

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

LGTM

@jhiemstrawisc jhiemstrawisc merged commit efb537c into PelicanPlatform:main Nov 29, 2023
@haoming29 haoming29 deleted the config-api-missing-vals branch November 29, 2023 16:05
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

/config API misses config values that's set after InitServer()
2 participants