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(workloads): add a workloads resource #474

Merged
merged 6 commits into from
Mar 24, 2020
Merged

feat(workloads): add a workloads resource #474

merged 6 commits into from
Mar 24, 2020

Conversation

ctrombley
Copy link
Contributor

@ctrombley ctrombley commented Mar 20, 2020

Resolves: #436

This PR adds support for New Relic One workloads.

@ghost ghost added the size/XL label Mar 20, 2020
@ctrombley ctrombley self-assigned this Mar 20, 2020
@ctrombley ctrombley requested a review from mbfrahry March 20, 2020 22:40
Copy link

@mbfrahry mbfrahry left a comment

Choose a reason for hiding this comment

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

Hey @ctrombley, I'm a big fan of the testing section of this resource with how well tested it in fact is. I did have some issues though and it's mostly around the maintainability aspect. I was struggling to scan through this resource and see how all the pieces fit together. I was constantly floating back and forth between the schema and the create/update/read methods and then moving to another file and then back up and all around just to see how all the pieces fit together. I've written out some directions on how to take a more organized approach and a few other suggestions on areas where you can simplify things and remove some unnecessary attributes.

Let me know if you have any other questions around anything and I'd be more than happy to discuss further

newrelic/resource_newrelic_workload.go Outdated Show resolved Hide resolved
newrelic/structures_newrelic_workload.go Outdated Show resolved Hide resolved
newrelic/structures_newrelic_workload.go Outdated Show resolved Hide resolved
newrelic/resource_newrelic_workload.go Outdated Show resolved Hide resolved
newrelic/resource_newrelic_workload.go Outdated Show resolved Hide resolved
newrelic/structures_newrelic_workload.go Show resolved Hide resolved
newrelic/resource_newrelic_workload.go Outdated Show resolved Hide resolved
newrelic/resource_newrelic_workload.go Show resolved Hide resolved
newrelic/resource_newrelic_workload.go Outdated Show resolved Hide resolved
newrelic/resource_newrelic_workload.go Show resolved Hide resolved
@ghost ghost added documentation Improvements or additions to documentation size/XXL dependencies Changes to dependencies and removed size/XL labels Mar 22, 2020
Copy link
Contributor

@sanderblue sanderblue left a comment

Choose a reason for hiding this comment

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

New resource! 🙌 :shipit:

@ctrombley
Copy link
Contributor Author

Holding off on merging this as we may see some more API changes from the Workloads team.

@ctrombley ctrombley merged commit 272ac93 into master Mar 24, 2020
@ctrombley ctrombley deleted the feat/workloads branch March 24, 2020 18:53
zlesnr added a commit that referenced this pull request Sep 29, 2020
kidk pushed a commit to aminoz007/terraform-provider-newrelic that referenced this pull request Oct 12, 2021
* feat(workloads): add a workloads resource

* chore(workloads): incorporate linter suggestions

* chore(workloads): incorporate code review feedback

* docs(workloads): add website documentation

* chore(workloads): vendor modules

* refactor(workloads): remove query name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Changes to dependencies documentation Improvements or additions to documentation new-resource
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add an NR1 workloads resource and data source
3 participants