Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jSylvestre
Copy link
Member

No description provided.

@jSylvestre jSylvestre marked this pull request as ready for review April 3, 2025 17:13
@jSylvestre jSylvestre requested a review from Copilot April 3, 2025 19:15
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR aims to implement a duplicate user check when adding a person to a team and enhance the API code regeneration view by displaying additional team information.

  • Forces a lookup of the user from the identity service.
  • Adds a duplicate user check in PeopleController with an appropriate error message.
  • Updates the RegenerateApiCode view to display the team slug and id alongside the current API code.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
Keas.Mvc/Views/TeamAdmin/RegenerateApiCode.cshtml Updated view to display team slug and id with the API code.
Keas.Mvc/Controllers/Api/PeopleController.cs Modified user lookup and added a duplicate user check to prevent adding the same user twice on a team.
Comments suppressed due to low confidence (1)

Keas.Mvc/Controllers/Api/PeopleController.cs:254

  • The variable 'user' is used without an explicit declaration. If 'user' is not declared in an outer scope, consider declaring it (e.g., using 'var user = ...') to ensure proper variable scope.
user = await _identityService.GetByKerberos(person.UserId);

@jSylvestre jSylvestre merged commit 06e7565 into master Apr 3, 2025
3 checks passed
@jSylvestre jSylvestre deleted the JCS/DuplicateUserCheck branch April 3, 2025 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants