-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #301 from OpsLevel/db/bugfix-identifier-input-need…
…s-pointers make UserIdentifierInput fields pointers
- Loading branch information
Showing
3 changed files
with
9 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
kind: Bugfix | ||
body: make UserIdentifierInput fields pointers, fixing the omitempty struct tag behavior | ||
time: 2023-11-10T13:58:23.41047-06:00 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -797,7 +797,7 @@ func TestTeamAddMemberhip(t *testing.T) { | |
team, _ := clientWithAlias.GetTeamWithAlias("example") | ||
newMembership := ol.TeamMembershipUserInput{ | ||
Role: "user", | ||
User: ol.UserIdentifierInput{Id: id1, Email: "[email protected]"}, | ||
User: ol.UserIdentifierInput{Id: &id1, Email: ol.NewString("[email protected]")}, | ||
} | ||
result, err := clientWithTeamId.AddMemberships(&team.TeamId, newMembership) | ||
// Assert | ||
|
@@ -829,7 +829,7 @@ func TestTeamRemoveMemberhip(t *testing.T) { | |
team, _ := client1.GetTeamWithAlias("example") | ||
membershipToDelete := ol.TeamMembershipUserInput{ | ||
Role: "user", | ||
User: ol.UserIdentifierInput{Id: id1, Email: "[email protected]"}, | ||
User: ol.UserIdentifierInput{Id: &id1, Email: ol.NewString("[email protected]")}, | ||
} | ||
|
||
result, err := client2.RemoveMemberships(&team.TeamId, membershipToDelete) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters