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(contrib): include a contribution guide #851

Merged
merged 1 commit into from
Aug 27, 2020
Merged

Conversation

zlesnr
Copy link
Contributor

@zlesnr zlesnr commented Aug 19, 2020

Fixes #746

@zlesnr zlesnr self-assigned this Aug 19, 2020
@zlesnr zlesnr added the documentation Improvements or additions to documentation label Aug 19, 2020
@zlesnr zlesnr added this to Backlog in NR1 Developer Toolkit Community via automation Aug 19, 2020
@zlesnr zlesnr added this to the Sustaining: July-Sept 2020 milestone Aug 19, 2020
@zlesnr zlesnr force-pushed the contributing branch 3 times, most recently from da78159 to 1935a67 Compare August 21, 2020 22:08
LESSONS.md Outdated

# Lessons Learned

- TypeSet vs TypeList
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@sanderblue Do we want to recommend one over the other here?

Copy link
Contributor

Choose a reason for hiding this comment

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

Honestly, I'm a little hesitant to do that mostly because I still feel like it's a matter of having more in-depth knowledge of the underlying behavior. But I guess I wouldn't be opposed to saying something like "if the attribute can be a TypeList, then go with TypeList. We've found attributes that use TypeList to be bit less nuanced and easier to maintain and still accomplish the same goal as TypeSet"... please fact check me on the "still accomplish the same goal" part 😉

Copy link
Contributor

Choose a reason for hiding this comment

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

From the Extending Terraform guide:

TypeSet

TypeSet implements set behavior and is used to represent an unordered collection of items, meaning that their ordering specified does not need to be consistent, and the ordering itself has no impact on the behavior of the resource.

TypeList:

Used to represent an ordered collection of items, where the order the items are presented can impact the behavior of the resource being modeled. An example of ordered items would be network routing rules, where rules are examined in the order they are given until a match is found. The items are all of the same type defined by the Elem property.

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think we should recommend one over the other - they both have their uses.

It probably is worth pointing out that the idiom for nesting schema structures is TypeList with MaxItems: 1 as discussed here.

LESSONS.md Outdated Show resolved Hide resolved
LESSONS.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
@zlesnr zlesnr force-pushed the contributing branch 2 times, most recently from 3883cc0 to 4c04e05 Compare August 24, 2020 16:06
LESSONS.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
ctrombley
ctrombley previously approved these changes Aug 25, 2020
LESSONS.md Outdated

# Lessons Learned

- TypeSet vs TypeList
Copy link
Contributor

Choose a reason for hiding this comment

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

From the Extending Terraform guide:

TypeSet

TypeSet implements set behavior and is used to represent an unordered collection of items, meaning that their ordering specified does not need to be consistent, and the ordering itself has no impact on the behavior of the resource.

TypeList:

Used to represent an ordered collection of items, where the order the items are presented can impact the behavior of the resource being modeled. An example of ordered items would be network routing rules, where rules are examined in the order they are given until a match is found. The items are all of the same type defined by the Elem property.

LESSONS.md Outdated

# Lessons Learned

- TypeSet vs TypeList
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think we should recommend one over the other - they both have their uses.

It probably is worth pointing out that the idiom for nesting schema structures is TypeList with MaxItems: 1 as discussed here.

CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Show resolved Hide resolved
LESSONS.md Outdated Show resolved Hide resolved
NR1 Developer Toolkit Community automation moved this from Backlog to Review completed Aug 25, 2020
NR1 Developer Toolkit Community automation moved this from Review completed to Ready for review Aug 25, 2020
@zlesnr zlesnr marked this pull request as ready for review August 26, 2020 15:57
CONTRIBUTING.md Outdated

### Commit messages

To keep a style and make allow us to automate the generating of a change log,
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: s/make allow/allow/

ctrombley
ctrombley previously approved these changes Aug 27, 2020
NR1 Developer Toolkit Community automation moved this from Ready for review to Review completed Aug 27, 2020
NR1 Developer Toolkit Community automation moved this from Review completed to Ready for review Aug 27, 2020
NR1 Developer Toolkit Community automation moved this from Ready for review to Review completed Aug 27, 2020
@ctrombley ctrombley merged commit b478365 into master Aug 27, 2020
NR1 Developer Toolkit Community automation moved this from Review completed to Done Aug 27, 2020
@ctrombley ctrombley deleted the contributing branch August 27, 2020 23:15
kidk pushed a commit to aminoz007/terraform-provider-newrelic that referenced this pull request Oct 12, 2021
chore(contrib): include a contribution guide
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

Add a meaningful CONTRIBUTING.md guide
3 participants