Skip to content

[BUG]: Validation error in github_team_membership when using team slug #1583

Closed

Description

@PabloPie

Describe the need

This PR introduced the possibility of using the team slug in the github_team_membership resource instead of the ID. The feature doesn't seem to work because the Validation was not changed in the schema.

SDK Version

No response

API Version

No response

Relevant log output

│ Error: Unexpected ID format ("admin"), expected numerical ID. strconv.ParseInt: parsing "admin": invalid syntax

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

  1. added
    Status: Triage
    Type: Feature
    on Mar 7, 2023
  2. added
    Status: Up for grabs
    Good first issue
    Type: Bug
    and removed
    Status: Triage
    Type: Feature
    on Mar 10, 2023
  3. kfcampbell commented on Mar 10, 2023

    @kfcampbell
    Contributor

    @PabloPie great catch! Is this something you have any interest in opening up a PR to fix?

  4. PabloPie commented on Mar 13, 2023

    @PabloPie
    ContributorAuthor

    Would removing the Validation be enough? From what I see in other resources there is no validation function:

    "team_id": {
    Type: schema.TypeString,
    Required: true,
    ForceNew: true,
    Description: "ID or slug of team",
    },

  5. moved this from 🆕 Triage to 🔥 Backlog in 🧰 Octokit Activeon Mar 24, 2023
  6. kfcampbell commented on Mar 31, 2023

    @kfcampbell
    Contributor

    @PabloPie that seems like a reasonable solution to me.

  7. moved this from 🔥 Backlog to ✅ Done in 🧰 Octokit Activeon May 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Good first issueStatus: Up for grabsType: Bug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions