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

Implemented update user preferences #269

Merged
merged 3 commits into from
Oct 10, 2024
Merged

Conversation

pingu2k4
Copy link
Contributor

Changes

  • Implemented update user preferences

Issue

#209

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 10, 2024
@pingu2k4 pingu2k4 linked an issue Oct 10, 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% 107
PinguApps.Appwrite.Server 100% 100% 76
PinguApps.Appwrite.Shared 100% 100% 507
Summary 100% (1591 / 1591) 100% (172 / 172) 690

Copy link

Test Results

1 521 tests  +3   1 521 ✅ +3   8s ⏱️ -1s
    3 suites ±0       0 💤 ±0 
    3 files   ±0       0 ❌ ±0 

Results for commit e6258cd. ± Comparison against base commit 4a4d556.

This pull request removes 164 and adds 167 tests. Note that renamed tests count towards both.
PinguApps.Appwrite.Server.Tests.Clients.Users.UsersClientTests ‑ CreateUserJwt_ShouldReturnSuccess_WhenApiCallSucceeds(request: CreateUserJwtRequest { Duration = 1800, SessionId = "6708162c003bf08b4363", UserId = "6708162c003bfc850a7a" })
PinguApps.Appwrite.Server.Tests.Clients.Users.UsersClientTests ‑ CreateUserJwt_ShouldReturnSuccess_WhenApiCallSucceeds(request: CreateUserJwtRequest { Duration = null, SessionId = null, UserId = "6708162c003be52f452c" })
PinguApps.Appwrite.Server.Tests.Clients.Users.UsersClientTests ‑ ListUserLogs_ShouldReturnSuccess_WhenApiCallSucceeds(request: ListUserLogsRequest { Queries = null, UserId = "6708162c003c04b59915" })
PinguApps.Appwrite.Server.Tests.Clients.Users.UsersClientTests ‑ ListUserLogs_ShouldReturnSuccess_WhenApiCallSucceeds(request: ListUserLogsRequest { Queries = null, UserId = "6708162c003c0f6aa737" })
PinguApps.Appwrite.Server.Tests.Clients.Users.UsersClientTests ‑ UpdateUserLabels_ShouldReturnSuccess_WhenApiCallSucceeds(request: UpdateUserLabelsRequest { Labels = ["label1", "label2"], UserId = "6708162c003c0f03b3e4" })
PinguApps.Appwrite.Server.Tests.Clients.Users.UsersClientTests ‑ UpdateUserLabels_ShouldReturnSuccess_WhenApiCallSucceeds(request: UpdateUserLabelsRequest { Labels = ["label3", "label4"], UserId = "6708162c003c00ff2a3e" })
PinguApps.Appwrite.Shared.Tests.Requests.Users.CreateTokenRequestTests ‑ IsValid_WithInvalidData_ReturnsFalse(request: CreateTokenRequest { Expire = -1, Length = null, UserId = "67081628001e30c255a6" })
PinguApps.Appwrite.Shared.Tests.Requests.Users.CreateTokenRequestTests ‑ IsValid_WithInvalidData_ReturnsFalse(request: CreateTokenRequest { Expire = null, Length = -1, UserId = "67081628001e3fe45d78" })
PinguApps.Appwrite.Shared.Tests.Requests.Users.CreateTokenRequestTests ‑ IsValid_WithValidData_ReturnsTrue(request: CreateTokenRequest { Expire = 86400, Length = 100, UserId = "67081628001e3c59959b" })
PinguApps.Appwrite.Shared.Tests.Requests.Users.CreateTokenRequestTests ‑ IsValid_WithValidData_ReturnsTrue(request: CreateTokenRequest { Expire = 900, Length = 6, UserId = "67081628001e287daab2" })
…
PinguApps.Appwrite.Server.Tests.Clients.Users.UsersClientTests ‑ CreateUserJwt_ShouldReturnSuccess_WhenApiCallSucceeds(request: CreateUserJwtRequest { Duration = 1800, SessionId = "6708179100277b0d20ba", UserId = "6708179100277eed041c" })
PinguApps.Appwrite.Server.Tests.Clients.Users.UsersClientTests ‑ CreateUserJwt_ShouldReturnSuccess_WhenApiCallSucceeds(request: CreateUserJwtRequest { Duration = null, SessionId = null, UserId = "67081791002764d4bef0" })
PinguApps.Appwrite.Server.Tests.Clients.Users.UsersClientTests ‑ ListUserLogs_ShouldReturnSuccess_WhenApiCallSucceeds(request: ListUserLogsRequest { Queries = null, UserId = "6708179100277ac2f4cd" })
PinguApps.Appwrite.Server.Tests.Clients.Users.UsersClientTests ‑ ListUserLogs_ShouldReturnSuccess_WhenApiCallSucceeds(request: ListUserLogsRequest { Queries = null, UserId = "6708179100277dc3dc77" })
PinguApps.Appwrite.Server.Tests.Clients.Users.UsersClientTests ‑ UpdateUserLabels_ShouldReturnSuccess_WhenApiCallSucceeds(request: UpdateUserLabelsRequest { Labels = ["label1", "label2"], UserId = "6708179100277ed0310e" })
PinguApps.Appwrite.Server.Tests.Clients.Users.UsersClientTests ‑ UpdateUserLabels_ShouldReturnSuccess_WhenApiCallSucceeds(request: UpdateUserLabelsRequest { Labels = ["label3", "label4"], UserId = "67081791002774d211bc" })
PinguApps.Appwrite.Server.Tests.Clients.Users.UsersClientTests ‑ UpdateUserPreferences_ShouldHandleException_WhenApiCallFails
PinguApps.Appwrite.Server.Tests.Clients.Users.UsersClientTests ‑ UpdateUserPreferences_ShouldReturnErrorResponse_WhenExceptionOccurs
PinguApps.Appwrite.Server.Tests.Clients.Users.UsersClientTests ‑ UpdateUserPreferences_ShouldReturnSuccess_WhenApiCallSucceeds
PinguApps.Appwrite.Shared.Tests.Requests.Users.CreateTokenRequestTests ‑ IsValid_WithInvalidData_ReturnsFalse(request: CreateTokenRequest { Expire = -1, Length = null, UserId = "6708178d001978479063" })
…

@pingu2k4 pingu2k4 merged commit d3073e4 into dev Oct 10, 2024
3 checks passed
@pingu2k4 pingu2k4 deleted the 209-update-user-preferences branch October 10, 2024 18:07
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.

[FEAT] Implement Users - Update User Preferences
1 participant