Skip to content

[BUG] Type mismatch in team_id of emu_group_mapping - #3163

Merged
nickfloyd merged 2 commits into
integrations:mainfrom
F-Secure-web:hotfix-emu-group-mapping-3160
Feb 9, 2026
Merged

nickfloyd merged 2 commits into
integrations:mainfrom
F-Secure-web:hotfix-emu-group-mapping-3160

Conversation

@deiga

@deiga deiga commented Feb 7, 2026 •

Copy link
Copy Markdown
Collaborator

Resolves #3160


Before the change?

  • Creating new github_emu_group_mapping resources fails as team_id is being populated with the wrong type

After the change?

  • Creating new github_emu_group_mapping resources works as team_id is being populated with the correct type

Pull request checklist

  • Schema migrations have been created if needed (example)
  • 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

@github-actions

github-actions Bot commented Feb 7, 2026

Copy link
Copy Markdown

👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labeled with Status: Up for grabs. You & others like you are the reason all of this works! So thank you & happy coding! 🚀

@deiga
deiga requested a review from stevehipwell February 7, 2026 08:56
@deiga
deiga marked this pull request as ready for review February 8, 2026 12:39
@stevehipwell stevehipwell added this to the v6.11.1 Patch milestone Feb 9, 2026

@stevehipwell stevehipwell left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@nickfloyd
nickfloyd merged commit 64cb030 into integrations:main Feb 9, 2026
7 checks passed
@tobias-schuemann

Copy link
Copy Markdown

@nickfloyd thanks for the fix. Do you have a release date for the patch?

@deiga

deiga commented Feb 9, 2026

Copy link
Copy Markdown
Collaborator Author

@tobias-schuemann We're aiming for within the next 24h, barring obstacles

@deiga
deiga deleted the hotfix-emu-group-mapping-3160 branch February 9, 2026 20:22
@stevehipwell

Copy link
Copy Markdown
Collaborator

@deiga I've only just spotted this, but why hasn't the ID be corrected to match the input ID? The resource is scoped to the EMU group, so I'd expect the ID to be <group-id>:<team-id> as it is in the import? Also why is the ID using 3 parts instead of the 2 parts used for this pattern elsewhere in the re-written provider code?

@deiga

deiga commented Feb 16, 2026

Copy link
Copy Markdown
Collaborator Author

@stevehipwell That's an excellent question. I guess it fell through the cracks.

I agree that using the 2 part ID sounds more reasonable

@stevehipwell

Copy link
Copy Markdown
Collaborator

@deiga is this something you could put a PR in for (with migration)?

JiayangZhou pushed a commit to JiayangZhou/terraform-provider-github that referenced this pull request Apr 16, 2026
…#3163)

* Fix `team_id` type to be `TypeInt` instead of `TypeString`

Signed-off-by: Timo Sand <[email protected]>

* Ensure migration also uses correct type

Signed-off-by: Timo Sand <[email protected]>

---------

Signed-off-by: Timo Sand <[email protected]>
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]: terraform apply error with github_emu_group_mapping resource on v6.11.0

4 participants