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

Add "isFirstYear" property to team members #52

Open
cdriehuys opened this issue Jan 11, 2019 · 0 comments
Open

Add "isFirstYear" property to team members #52

cdriehuys opened this issue Jan 11, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@cdriehuys
Copy link
Member

Users of the API should be able to query for a boolean field called isFirstYear on team members. The boolean should indicate if this is the person's first year as a member of a team.

query IsFirstYear($year: Int!) {
  team(year: $year) {
    members {
      isFirstYear
      person {
        name
      }
    }
  }
}

Acceptance Tests

1. Boolean True for First-Years

If the person associated with a team member is not a member of any prior teams, the field should return true.

2. False for Existing Members

Say we have a person "Joe Smith" who is a member of the 2018 and 2019 teams. His team member record for the 2019 team should return false for isFirstYear.

@cdriehuys cdriehuys added the enhancement New feature or request label Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant