Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Refactor & Cleanup Origin Exports code #1919

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

jhiemstrawisc
Copy link
Member

This refactors a lot of the suburban sprawl from server_utils/origin.go in a way that I hope is much more maintainable and much less likely to have hard-to-diagnose errors.

In particular, I tried out some OOP go-style (and left lots of comments for others to follow along with the setup). I couldn't quite do things the way I expected, but I think I got pretty close to something that's clean and easy to follow.

@jhiemstrawisc jhiemstrawisc added internal Internal code improvements, not user-facing origin Issue relating to the origin component labels Jan 17, 2025
@jhiemstrawisc jhiemstrawisc added this to the v7.13.0 milestone Jan 17, 2025
@jhiemstrawisc jhiemstrawisc linked an issue Jan 17, 2025 that may be closed by this pull request
@jhiemstrawisc
Copy link
Member Author

For the reviewer, my recommendation is to start in origin.go::GetOriginExports and follow that into origin.configureExports. That should give a pretty clear picture of the common setup each origin has.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal Internal code improvements, not user-facing origin Issue relating to the origin component
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cleanup/deduplicate server_utils/origin.go
2 participants