Skip to content

Commit

Permalink
Debug tenant-util view
Browse files Browse the repository at this point in the history
  • Loading branch information
jhrv committed Sep 2, 2024
1 parent a8185d8 commit e027d2f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/graph/teams.resolvers.go
Original file line number Diff line number Diff line change
Expand Up @@ -1567,7 +1567,7 @@ func (r *teamMemberReconcilerResolver) Reconciler(ctx context.Context, obj *mode
}

func (r *teamUtilizationDataResolver) Team(ctx context.Context, obj *model.TeamUtilizationData) (*model.Team, error) {
r.log.Info("first teamUtilizationDataResolver.Team", "teamSlug", obj.TeamSlug)
r.log.Infof("first teamUtilizationDataResolver.Team: %v", obj.TeamSlug)

actor := authz.ActorFromContext(ctx)
err := authz.RequireTeamAuthorization(actor, roles.AuthorizationTeamsRead, obj.TeamSlug)
Expand All @@ -1577,11 +1577,11 @@ func (r *teamUtilizationDataResolver) Team(ctx context.Context, obj *model.TeamU

team, err := loader.GetTeam(ctx, obj.TeamSlug)
if err != nil {
r.log.WithError(err).Error("teamUtilizationDataResolver.Team", "teamSlug", obj.TeamSlug)
r.log.WithError(err).Error("get team error teamUtilizationDataResolver.Team ", "teamSlug", obj.TeamSlug)
}

if team != nil {
r.log.Info("team not eq nil - teamUtilizationDataResolver.Team", "teamSlug", obj.TeamSlug, "team", team)
if team == nil {
r.log.Info("team is nil - teamUtilizationDataResolver.Team ", "teamSlug", obj.TeamSlug, "team", team)
}

return team, err
Expand Down

0 comments on commit e027d2f

Please sign in to comment.