Skip to content
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

@coderabbitai #325

Merged
merged 3 commits into from
Oct 19, 2024
Merged

@coderabbitai #325

merged 3 commits into from
Oct 19, 2024

Conversation

pingu2k4
Copy link
Contributor

Changes

@coderabbitai summary

Issue

Checklist before requesting a review

The PR will only be considered when all items within the checklist are marked as complete. Feel free to submit an incomplete draft PR, and add additional commits until you are able to satisfy each item within the checklist.

  • I have performed a self-review of my code
  • I have submitted at most one additional endpoint implementation
  • I have either submitted no additional endpoint implementation, or my implementation covers both client and server SDK's, unless either are marked in the README with a ❌
  • I have added applicable tests for my code
  • I have updated the README with updated status as a result of this PR

@pingu2k4 pingu2k4 self-assigned this Oct 19, 2024
@pingu2k4 pingu2k4 linked an issue Oct 19, 2024 that may be closed by this pull request
Copy link

Code Coverage

Package Line Rate Branch Rate Complexity Health
PinguApps.Appwrite.Client 100% 100% 120
PinguApps.Appwrite.Server 100% 100% 98
PinguApps.Appwrite.Shared 100% 100% 619
Summary 100% (2001 / 2001) 100% (234 / 234) 837

Copy link

Test Results

1 901 tests  +7   1 901 ✅ +7   11s ⏱️ -1s
    3 suites ±0       0 💤 ±0 
    3 files   ±0       0 ❌ ±0 

Results for commit df162c0. ± Comparison against base commit e2ad579.

This pull request removes 218 and adds 225 tests. Note that renamed tests count towards both.
PinguApps.Appwrite.Server.Tests.Clients.Users.UsersClientTests ‑ CreateUserJwt_ShouldReturnSuccess_WhenApiCallSucceeds(request: CreateUserJwtRequest { Duration = 1800, SessionId = "67141b430038c020084c", UserId = "67141b430038cc1ec9c0" })
PinguApps.Appwrite.Server.Tests.Clients.Users.UsersClientTests ‑ CreateUserJwt_ShouldReturnSuccess_WhenApiCallSucceeds(request: CreateUserJwtRequest { Duration = null, SessionId = null, UserId = "67141b430038bfb20745" })
PinguApps.Appwrite.Server.Tests.Clients.Users.UsersClientTests ‑ ListUserLogs_ShouldReturnSuccess_WhenApiCallSucceeds(request: ListUserLogsRequest { Queries = null, UserId = "67141b430038c47e569f" })
PinguApps.Appwrite.Server.Tests.Clients.Users.UsersClientTests ‑ ListUserLogs_ShouldReturnSuccess_WhenApiCallSucceeds(request: ListUserLogsRequest { Queries = null, UserId = "67141b430038ccad63e8" })
PinguApps.Appwrite.Server.Tests.Clients.Users.UsersClientTests ‑ ListUserTargets_ShouldReturnSuccess_WhenApiCallSucceeds(request: ListUserTargetsRequest { Queries = null, UserId = "67141b430038c7588972" })
PinguApps.Appwrite.Server.Tests.Clients.Users.UsersClientTests ‑ ListUserTargets_ShouldReturnSuccess_WhenApiCallSucceeds(request: ListUserTargetsRequest { Queries = null, UserId = "67141b430038cfbe071c" })
PinguApps.Appwrite.Server.Tests.Clients.Users.UsersClientTests ‑ UpdateUserLabels_ShouldReturnSuccess_WhenApiCallSucceeds(request: UpdateUserLabelsRequest { Labels = ["label1", "label2"], UserId = "67141b430038c666a290" })
PinguApps.Appwrite.Server.Tests.Clients.Users.UsersClientTests ‑ UpdateUserLabels_ShouldReturnSuccess_WhenApiCallSucceeds(request: UpdateUserLabelsRequest { Labels = ["label3", "label4"], UserId = "67141b430038c5ae8ff4" })
PinguApps.Appwrite.Shared.Tests.Requests.Account.CreatePushTargetRequestTests ‑ IsValid_WithInvalidData_ReturnsFalse(request: CreatePushTargetRequest { Identifier = "", ProviderId = "provider123", TargetId = "67141b3f002f1fe6e35d" })
PinguApps.Appwrite.Shared.Tests.Requests.Account.CreatePushTargetRequestTests ‑ IsValid_WithInvalidData_ReturnsFalse(request: CreatePushTargetRequest { Identifier = null, ProviderId = "provider123", TargetId = "67141b3f002f1f36bff6" })
…
PinguApps.Appwrite.Client.Tests.Clients.Teams.TeamsClientTests ‑ DeleteTeam_ShouldHandleException_WhenApiCallFails
PinguApps.Appwrite.Client.Tests.Clients.Teams.TeamsClientTests ‑ DeleteTeam_ShouldReturnErrorResponse_WhenExceptionOccurs
PinguApps.Appwrite.Client.Tests.Clients.Teams.TeamsClientTests ‑ DeleteTeam_ShouldReturnError_WhenSessionIsNull
PinguApps.Appwrite.Client.Tests.Clients.Teams.TeamsClientTests ‑ DeleteTeam_ShouldReturnSuccess_WhenApiCallSucceeds
PinguApps.Appwrite.Server.Tests.Clients.Teams.TeamsClientTests ‑ DeleteTeam_ShouldHandleException_WhenApiCallFails
PinguApps.Appwrite.Server.Tests.Clients.Teams.TeamsClientTests ‑ DeleteTeam_ShouldReturnErrorResponse_WhenExceptionOccurs
PinguApps.Appwrite.Server.Tests.Clients.Teams.TeamsClientTests ‑ DeleteTeam_ShouldReturnSuccess_WhenApiCallSucceeds
PinguApps.Appwrite.Server.Tests.Clients.Users.UsersClientTests ‑ CreateUserJwt_ShouldReturnSuccess_WhenApiCallSucceeds(request: CreateUserJwtRequest { Duration = 1800, SessionId = "67141d2f00313cde111d", UserId = "67141d2f00313dd67ff9" })
PinguApps.Appwrite.Server.Tests.Clients.Users.UsersClientTests ‑ CreateUserJwt_ShouldReturnSuccess_WhenApiCallSucceeds(request: CreateUserJwtRequest { Duration = null, SessionId = null, UserId = "67141d2f00312fe909af" })
PinguApps.Appwrite.Server.Tests.Clients.Users.UsersClientTests ‑ ListUserLogs_ShouldReturnSuccess_WhenApiCallSucceeds(request: ListUserLogsRequest { Queries = null, UserId = "67141d2f0031347ccf40" })
…

@pingu2k4
Copy link
Contributor Author

@coderabbitai full review

Copy link

coderabbitai bot commented Oct 19, 2024

✅ Actions performed

Full review triggered.

@pingu2k4
Copy link
Contributor Author

@CodiumAI-Agent /review

@CodiumAI-Agent
Copy link

CodiumAI-Agent commented Oct 19, 2024

PR Reviewer Guide 🔍

(Review updated until commit df162c0)

Here are some key observations to aid the review process:

⏱️ Estimated effort to review: 3 🔵🔵🔵⚪⚪
🧪 PR contains tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

Missing Validation
The new method 'DeleteTeam' should include parameter validation to ensure that the 'request' object is not null before proceeding.

Missing Validation
Similar to the client interface, the server interface for 'DeleteTeam' should also include parameter validation for null checks.

@pingu2k4 pingu2k4 merged commit 350cfd1 into dev Oct 19, 2024
4 checks passed
@pingu2k4 pingu2k4 deleted the 307-delete-team branch October 19, 2024 21:13
@CodiumAI-Agent
Copy link

Persistent review updated to latest commit df162c0

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.

[Task] Teams - Delete Team
2 participants