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

fix: Ensure integration_id is treated as optional and nil #2529

Closed
wants to merge 1 commit into from

Conversation

Danielku15
Copy link
Contributor

Resolves #2317


Before the change?

  • The integration_id despite being optional was filled with 0 and expected to be filled everywhere causing API validation errors.

After the change?

  • The integration_id defualt values were removed and respective places where adapted to handle nil (and potential 0) values.

Pull request checklist

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)

Does this introduce a breaking change?

Please see our docs on breaking changes to help!

  • Yes
  • No

@Danielku15
Copy link
Contributor Author

Update: Beside the integration test I also tested this change against our GHES installation where I confirmed its working as expected.

@Danielku15
Copy link
Contributor Author

Seems our GHES 3.14 was behavior strangely different to GitHub.com and GHES 3.15. As we upgraded last week I can successfully create rulesets using the currently released provider. With this I'm not fully sure if my PR addresses the linked problem in the right way, hence I'm better closing it to avoid confusion. 🙇‍♂️

@Danielku15 Danielku15 closed this Jan 15, 2025
@Danielku15 Danielku15 deleted the fix-issue-2317 branch January 15, 2025 09:45
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.

[BUG]: integration_id value returns difference that can't be ignored
1 participant