Skip to content

Commit

Permalink
feat(authN): change SapID to UniqueUserId (#85)
Browse files Browse the repository at this point in the history
Change name of variable SapId to UniqueUserId
Add user Type variable to distinguish technical user and human user
  • Loading branch information
michalkrzyz committed Jul 31, 2024
1 parent 09536dc commit 47f6476
Show file tree
Hide file tree
Showing 41 changed files with 397 additions and 182 deletions.
180 changes: 145 additions & 35 deletions internal/api/graphql/graph/generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 7 additions & 5 deletions internal/api/graphql/graph/model/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -316,16 +316,18 @@ func NewIssueVariantEntity(issueVariant *IssueVariantInput) entity.IssueVariant

func NewUser(user *entity.User) User {
return User{
ID: fmt.Sprintf("%d", user.Id),
SapID: &user.SapID,
Name: &user.Name,
ID: fmt.Sprintf("%d", user.Id),
UniqueUserID: &user.UniqueUserID,
Name: &user.Name,
Type: int(user.Type),
}
}

func NewUserEntity(user *UserInput) entity.User {
return entity.User{
Name: lo.FromPtr(user.Name),
SapID: lo.FromPtr(user.SapID),
Name: lo.FromPtr(user.Name),
UniqueUserID: lo.FromPtr(user.UniqueUserID),
Type: entity.GetUserTypeFromString(lo.FromPtr(user.Type)),
}
}

Expand Down
14 changes: 7 additions & 7 deletions internal/api/graphql/graph/model/models_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 47f6476

Please sign in to comment.