-
Notifications
You must be signed in to change notification settings - Fork 763
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
3.1.0 has breaking changes which are not identified in changelog #566
Comments
I noticed the same. I had to pin the provider to 3.0 |
I don't think |
We use a for_each loop to create our repositories, and a separate for_each loop to set up branch protection for 1 or more branches per repository. Being able to use the id (which was just the name) was nice & simple, but having to retrieve the node_id from the repository resource and apply that into the branch_protection resource looks like it's a pain. |
Seems as though the However the documentation doesn't seem to have been updated to reflect any changes. |
😞 apologies on this one.
I am inclined to revert the change and cut a new Can I get some 👍 👎 feedback on this approach? |
As long as you release 4.x alongside it without the revert that sounds fine
to me.
…On Sun, 18 Oct 2020, 00:24 Jeremy Udit, ***@***.***> wrote:
😞 apologies on this one.
------------------------------
Please either revert this change or release a 4.0.0 with actual updated
documentation.
I am inclined to revert the change and cut a new v3.x release.
Can I get some 👍 👎 feedback on this approach?
|
@jcudit Not to add to your plate, but we're still waiting for the org-level secrets! The feature was released half a year ago and is still unsupported. |
☝️ reverts the changes that removed I think this is a good compromise, but let me know if I have overlooked anything. If this plan does not work, I am still open to cutting a new major release or a more aggressive revert that re-instates the old implementation. 👎 / 👍 what do you all think? |
When you guys release v4, would it be possible to do something like schema.Schema{
"repository": { ConflictsWith: []string{"repository_id"} }
"repository_id": { ConflictsWith: []string{"repository"} }
} Because sometimes I don't have a |
https://github.com/terraform-providers/terraform-provider-github/pull/570 has also grown to re-instate the Re-instating REST client management of dismissal and push restrictions is the next step here. I'll experiment with what a dual REST / GraphQL resource would look like as well as the performance implications of this approach. If this does not play out well, a full revert of the |
I've raised https://github.com/terraform-providers/terraform-provider-github/pull/582 to follow through on fully reverting the GraphQL implementation of the Rolling forward with a change was getting too complex. I unfortunately cannot take on the maintenance burden of a change like this. I've hit my limit for unknowns and edge cases with the current implementation and would appreciate going back to a more stable state. Perhaps we can revisit this as a separate resource or something more incremental in the future. For now, I'm hoping we can ship a revert and broaden focus to other parts of this project. Once again, 😞 the release turned out this way. Because this reverts the schema back to |
Being able to declare branch protection rules against branch names with wildcards has been a long awaited feature for me and my team, and it requires the GraphQL API. I started using the github provider for my project when If at all possible, it would be nice if this feature was added back sooner than the end of the year. |
@jcudit Sorry, but there's no longer an option to revert in my book - many have built against v3.1 already! You made a mistake - we all do, but 3 weeks have passed since then, and it's too late to revert. |
I'd tend to agree, I think there is a need to fail forward here. Not only is wildcard use in branch protection rules super common and something many of us using this provider have been waiting ages for, but many of us are using 3.1.0 with some amount of success and getting "stuck" on 3.1.0 or having to deal with state rm'ing and reimporting affected resources on another version of the provider is kind of a nightmare. |
I think we should just cut a 4.0.0 release with valid release notes/documentation. End of the day version numbers are free. |
Solid feedback everyone ❤️ . Aiming to cut I'm also inclined to add a |
I'm not sure I understand what making a 4.0.0 release with this change does. Could someone clarify what the upgrade path for folks who are currently stuck on 3.0.0 is going to look like? Is it going to be this |
@fishfacemcgee yes, the A possible migration path would likely be to rewrite configuration to use From what I've read, the GraphQL implementation that has taken over the Open to other ideas of what a good compromise looks like, but still pushing to get the |
@jcudit The upgrade to a major version is voluntary. Why force people who are now on v3.1 already to refactor again? The whole |
@nikolay the major version upgrade being voluntary is a good point. If anyone feels they'd benefit from a new resource pinned to the old implementation of |
@jcudit Just so I'm on the same page, the stance now is "If you want the 3.1.0 features, you must work around the breaking changes?" Can we at least get the breaking changes documented now, since it affects the currently released version out in the wild, if that's the case? |
@fishfacemcgee confirmed, that is the stance. Take a look at the PR linked above for documentation updates. Any feedback would be appreciated 🙇 . |
Affected Resource(s)
Expected Behavior
Minor bumps should not have breaking changes, https://semver.org/
Actual Behavior
You have introduced undocumented breaking changes inside the provider without putting anything in the changelog:
branch
has becomepattern
repository
seems to have becomerepository_id
Also there is no update to the documentation for this change
Please either revert this change or release a 4.0.0 with actual updated documentation.
References
The text was updated successfully, but these errors were encountered: