-
Notifications
You must be signed in to change notification settings - Fork 5
DOCSP-46497 & DOCSP-46233: Add historical and line item billing examples to Go SDK project #51
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
DOCSP-46497 & DOCSP-46233: Add historical and line item billing examples to Go SDK project #51
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a lot of work, and I'm very impressed with the thoroughness and handling you've done here! Only a couple of blocking comments related to the generated output project - it won't run as-is because there are some bits still hanging out from before you did the refactor. The rest of the comments are just Qs, kudos, and non-blocking nits.
We should probably also update the INTERNAL_README.md with the updated directory structure, similar to what you did in the README.md.
usage-examples/go/atlas-sdk-go/internal/billing/sku_classifier_test.go
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! 🎉
// NOTE: You can define a default global directory for all generated files by setting the ATLAS_DOWNLOADS_DIR environment variable. | ||
func GenerateOutputPath(dir, prefix, extension string) (string, error) { | ||
// If default download directory is set in .env, prepend it to the provided dir | ||
defaultDir := os.Getenv("ATLAS_DOWNLOADS_DIR") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice - very thoughtful approach!
generated-usage-examples/go/atlas-sdk-go/project-copy/internal/billing/linked_billing.go
Show resolved
Hide resolved
generated-usage-examples/go/atlas-sdk-go/project-copy/internal/fileutils/io.go
Outdated
Show resolved
Hide resolved
usage-examples/go/atlas-sdk-go/examples/monitoring/logs/main.go
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think if we want to change the logic of the line_items
example, we need to do the refactor in a different place. Otherwise, everything here LGTM!
Description
Add examples, functions, and related tests for the following billing functionality:
Project changes:
cmd
>examples
examples/monitoring
Linked Jira tickets:
Related Tasks
docs repo tasks
artifact repo tasks
README.md
CHANGELOG.md