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

feat: Add observe_monitor_v2 resource #121

Merged
merged 47 commits into from
Jul 23, 2024
Merged

Conversation

obs-gh-owengoebel
Copy link
Contributor

No description provided.

Copy link
Contributor

@vikramraman vikramraman left a comment

Choose a reason for hiding this comment

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

Looks good overall! Left some early comments.

client/internal/meta/schema/auth.graphql Outdated Show resolved Hide resolved
observe/resource_monitor_v2.go Outdated Show resolved Hide resolved
observe/resource_monitor_v2.go Outdated Show resolved Hide resolved
observe/resource_monitor_v2.go Outdated Show resolved Hide resolved
observe/resource_monitor_v2.go Outdated Show resolved Hide resolved
observe/resource_monitor_v2.go Show resolved Hide resolved
observe/resource_monitor_v2.go Outdated Show resolved Hide resolved
observe/resource_monitor_v2.go Outdated Show resolved Hide resolved
observe/resource_monitor_v2.go Show resolved Hide resolved
observe/resource_monitor_v2.go Show resolved Hide resolved
Copy link

@obs-gh-catherman obs-gh-catherman left a comment

Choose a reason for hiding this comment

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

This is great work. I don't know that a review will catch any missing data marshaling, but the definition seems sane and the foundation is here to easily address anything we might have missed found during adoption.

client/internal/meta/schema/acceleration.graphql Outdated Show resolved Hide resolved
observe/descriptions/descriptions.go Outdated Show resolved Hide resolved
observe/descriptions/monitorv2.yaml Outdated Show resolved Hide resolved
observe/resource_monitor_v2.go Show resolved Hide resolved
observe/resource_monitor_v2.go Show resolved Hide resolved
observe/resource_monitor_v2.go Show resolved Hide resolved
return diags
}

id, _ := oid.NewOID(data.Get("workspace_id").(string))

Choose a reason for hiding this comment

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

Should we just add a MustNewOID and panic if it fails for these cases where we expect it to always work?

observe/resource_monitor_v2.go Outdated Show resolved Hide resolved
observe/resource_monitor_v2.go Outdated Show resolved Hide resolved
observe/resource_monitor_v2_test.go Outdated Show resolved Hide resolved
observe/resource_monitor_v2.go Outdated Show resolved Hide resolved
Copy link
Contributor

@vikramraman vikramraman left a comment

Choose a reason for hiding this comment

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

Looking good! Just a few minor nits.

client/api.go Outdated Show resolved Hide resolved
observe/descriptions/monitorv2.yaml Outdated Show resolved Hide resolved
Copy link
Contributor

@vikramraman vikramraman left a comment

Choose a reason for hiding this comment

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

lgtm. Thanks for pushing through all the feedback.

@vikramraman vikramraman changed the title Monitorv2 resource feat: Add monitorv2 resource Jul 22, 2024
@vikramraman vikramraman changed the title feat: Add monitorv2 resource feat: Add observe_monitor_v2 resource Jul 22, 2024
@vikramraman vikramraman merged commit 55e5617 into master Jul 23, 2024
5 checks passed
@vikramraman vikramraman deleted the monitorv2-resource branch July 23, 2024 17:37
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.

None yet

3 participants