Skip to content

Implement delete team member endpoint(TS-2315) #1118

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Roffenlund
Copy link
Contributor

@Roffenlund Roffenlund commented Mar 17, 2025

  • Implement endpoint in cyberstorm api for deleting team members
  • Implement service layer function
  • User service layer function in the form views responsible for removing team members
  • Update forms
  • Update existing tests
  • Implement tests

@Roffenlund Roffenlund requested review from x753 and Oksamies March 17, 2025 15:46
@Roffenlund Roffenlund force-pushed the cyberstorm-api-delete-team-member branch from 3eb3759 to 0c7eaad Compare March 18, 2025 08:40
@Roffenlund Roffenlund requested a review from x753 March 18, 2025 08:40
Implement a service layer function for removing a member from a team.
Implent tests for the service layer function.

Refs. TS-2315
@Roffenlund Roffenlund force-pushed the cyberstorm-api-delete-team-member branch from 0c7eaad to ae1f556 Compare May 8, 2025 12:33
Copy link

codecov bot commented May 8, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.03%. Comparing base (0d673f3) to head (a9de63c).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1118      +/-   ##
==========================================
+ Coverage   93.02%   93.03%   +0.01%     
==========================================
  Files         324      324              
  Lines        9685     9702      +17     
  Branches      858      859       +1     
==========================================
+ Hits         9009     9026      +17     
  Misses        554      554              
  Partials      122      122              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Implement a APIView for removing team members from teams in the
cyberstom API. Utilize the service layer function for removing team
members in the view.

Add URL and implement tests.

Refs. TS-2315
@Roffenlund Roffenlund force-pushed the cyberstorm-api-delete-team-member branch 2 times, most recently from a6d3db1 to ab184d3 Compare May 8, 2025 12:46
@Roffenlund Roffenlund requested a review from x753 May 8, 2025 12:49
Copy link
Member

@MythicManiac MythicManiac left a comment

Choose a reason for hiding this comment

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

Requesting changes primarily because I suspect there's a bug in the SettingsTeamAddMemberView, if that's not a bug other comments still likely apply

Utilize the service layer function for removing team members in the
form views responsible for kicking members from a team, and in the form
responsible for leaving a team.

Update tests accordingly to the new changes.

Remove redundant get_team_or_404 function.

Refs. TS-2315
@Roffenlund Roffenlund force-pushed the cyberstorm-api-delete-team-member branch from ab184d3 to a9de63c Compare May 12, 2025 17:53
@Roffenlund Roffenlund requested review from MythicManiac and removed request for Oksamies May 12, 2025 17:54
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.

3 participants