-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
feat: Add assignment for org role associations #3371
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #3371 +/- ##
==========================================
- Coverage 97.72% 92.30% -5.42%
==========================================
Files 153 176 +23
Lines 13390 15031 +1641
==========================================
+ Hits 13085 13874 +789
- Misses 215 1064 +849
- Partials 90 93 +3 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Steve Hipwell <steve.hipwell@gmail.com>
7b7c2be
to
1c73510
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, @stevehipwell !
LGTM.
Merging.
Assignment *string `json:"assignment,omitempty"` | ||
// InheritedFrom identifies the team that a user inherited their organization role | ||
// from. This is only populated when calling the ListUsersAssignedToOrgRole method. | ||
InheritedFrom *Team `json:"inherited_from,omitempty"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@stevehipwell the inherited_from
field returns for me as an array which fails the unmarshalling, are you sure you got only a single team in the API result?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the schema might have changed as it's now looks like an array, but I'm pretty sure I tested this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I want to change this field to an array can you verify it doesn't break anything for you? I want to know if we need to support both cases
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@stevehipwell I opened this: #3460
Resolves #3364
This PR adds the
Assignment
field toTeam
&User
and theInheritedFrom
field toUser
when accessed in the context of an organization role.