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

chore: pull out admin service #3711

Merged
merged 2 commits into from
Dec 12, 2024
Merged

Conversation

worstell
Copy link
Contributor

No description provided.

@worstell worstell requested a review from wesbillman December 10, 2024 23:45
@worstell worstell requested review from a team and alecthomas as code owners December 10, 2024 23:45
This was referenced Dec 10, 2024
@worstell worstell force-pushed the worstell/20241210-admin-service branch 7 times, most recently from 50b356a to 29c6f54 Compare December 11, 2024 22:08
@worstell worstell force-pushed the worstell/20241210-admin-service branch from da3fa2c to 1d7666c Compare December 12, 2024 02:31
Comment on lines +35 to +39
func (c *Config) SetDefaults() {
if err := kong.ApplyDefaults(c, kong.Vars{"dsn": dsn.PostgresDSN("ftl")}); err != nil {
panic(err)
}
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we want/need kong stuff in here? I wonder if we could do this kong work in the cli/cmd code. Then, we might be able to remove this from the service layer.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i don't feel super strongly - i think we went with calling it in start to centralize the logic across invocations from CLI, wdyt? since the config fields are defined with default field tags it doesn't feel completely out of place to me in the service layer

Comment on lines +43 to +44
var _ timelineconnect.TimelineServiceHandler = (*service)(nil)

Copy link
Collaborator

Choose a reason for hiding this comment

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

nice!

@worstell worstell merged commit c1cf31d into main Dec 12, 2024
95 checks passed
@worstell worstell deleted the worstell/20241210-admin-service branch December 12, 2024 17:21
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.

2 participants