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

pager: cleanup generic resource and firehydrant client #23

Merged
merged 2 commits into from
Apr 29, 2024

Conversation

wilsonehusin
Copy link
Member

Cleaning up artifacts before we started using SQLite for consistent modeling.

Also added just build for a quick test if things compile, automatically writing the output to bin/ which is in .gitignore.

Cleaning up artifacts before we started using SQLite for consistent
modeling.
@@ -62,70 +90,3 @@ func (v *VictorOps) LoadEscalationPolicies(ctx context.Context) error {
console.Warnf("victorops.LoadEscalationPolicies is not currently supported.")
return nil
}

func (v *VictorOps) PopulateTeamMembers(ctx context.Context, team *Team) error {
Copy link
Member Author

Choose a reason for hiding this comment

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

This is technically already broken, but I don't want to get too sidetracked right now. Will follow up with the implementation later!

func (f *FireHydrant) ListTeams(ctx context.Context) ([]*Team, error) {
teams := []*Team{}
stored, err := store.UseQueries(ctx).ListFhTeams(ctx)
func (c *Client) ListTeams(ctx context.Context) ([]store.FhTeam, error) {
Copy link
Member Author

Choose a reason for hiding this comment

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

Pretty much the changes are pager.Team -> store.FhTeam and pager.User -> store.FhUser. All other providers are already using store.Ext{Team,User}, so the only one that's left is FireHydrant client.

@wilsonehusin wilsonehusin marked this pull request as ready for review April 29, 2024 20:51
Copy link
Contributor

@AlexisJasso AlexisJasso left a comment

Choose a reason for hiding this comment

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

Yep. This is good. I really like moving the FH stuff to its own package so it's even more clear that we're treating those differently.

@wilsonehusin wilsonehusin merged commit e516b62 into main Apr 29, 2024
4 checks passed
@wilsonehusin wilsonehusin deleted the wh/cleanup-pager-resource branch April 29, 2024 20:58
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