-
Notifications
You must be signed in to change notification settings - Fork 6
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
feat: adopt v7 API #WPB-11975 #3099
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion to remove not used modifiers from generated api classes and missing test for the CapabilitiesDeserializer
network/src/commonMain/kotlin/com/wire/kalium/network/api/v7/authenticated/E2EIApiV7.kt
Outdated
Show resolved
Hide resolved
network/src/commonMain/kotlin/com/wire/kalium/network/api/v7/authenticated/KeyPackageApiV7.kt
Outdated
Show resolved
Hide resolved
network/src/commonMain/kotlin/com/wire/kalium/network/api/v7/authenticated/MLSMessageApiV7.kt
Outdated
Show resolved
Hide resolved
network/src/commonMain/kotlin/com/wire/kalium/network/api/v7/authenticated/MLSPublicKeyApiV7.kt
Outdated
Show resolved
Hide resolved
network/src/commonMain/kotlin/com/wire/kalium/network/api/v7/authenticated/NotificationApiV7.kt
Outdated
Show resolved
Hide resolved
...rk-model/src/commonMain/kotlin/com/wire/kalium/network/api/authenticated/client/ClientDTO.kt
Outdated
Show resolved
Hide resolved
Bencher Report
Click to view all benchmark results
|
Datadog ReportBranch report: ✅ 0 Failed, 3168 Passed, 107 Skipped, 39.08s Total Time |
Quality Gate passedIssues Measures |
PR Submission Checklist for internal contributors
The PR Title
SQPIT-764
The PR Description
What's new in this PR?
Issues
New API version added on backend https://wearezeta.atlassian.net/wiki/spaces/ENGINEERIN/pages/1309868033/API+changes+v6+v7
Important
Please verify this list, as part of the CR.
Changes listed in doc (applied ✅ , not relevant ❌ )
The capabilities field of the Client structure now contains a list of capabilities, rather than a nested object. In the notifications containing the Client structure, it will still be a nested object. ✅
The notification contains the old format {capabilities: { capabilities: [...] }}, but clients must allow both old and new format starting from V6. Once V5 is discontinued, the backend will start sending notifications in the new form.✅
There is a new type of capability in capabilities field for Client: consumable-notifications. This will only show up when using API v7. In the notifications containing the Client structure, this capability will not be visible. ❌
DELETE /oauth/applications/:id/ is removed in v7 in favor of a new endpoint DELETE /oauth/applications/:id/sessions which takes a request body with an optional password. The password is verified in case of the user is not an SSO user.❌
renamed POST /users/handles → POST /handles❌
renamed POST /users/handles → POST /handles❌
renamed HEAD /users/handles → HEAD /handles❌
renamed POST /conversations/bots → POST /bot/conversations❌
renamed DELETE /conversations/bots → DELETE /bot/conversations❌
renamed POST /conversations/one2one → POST /one2one-conversations ✅
renamed GET /conversations/one2one → GET /one2one-conversations ✅
GET /scim/auth-tokens returns an array of ScimTokenInfoitems which now have an additional field: name.❌
POST /scim/auth-tokens response has a new optional field: name. If not specified, the name will be set to the ID of the SCIM token by the backend.❌
GET /teams/invitations/info response has a new optional field created_by_email which will be occupied with the inviter’s email in case the invitee is a personal user.❌
Testing
Test Coverage (Optional)
How to Test
This is more of a general play test if everything works.
There were no functional changes.
To test you need to switch to anta
https://wearezeta.atlassian.net/wiki/spaces/ENGINEERIN/pages/300351887/Testing+environments+for+federation#anta
The html with deeplinks switching can be downloaded here. You must logout first before switching. https://wearezeta.atlassian.net/wiki/spaces/ENGINEERIN/pages/300351887/Testing+environments+for+federation#anta
To get signup code you must read the email from inbucket.
Password is on 1password.
PR Post Submission Checklist for internal contributors (Optional)
PR Post Merge Checklist for internal contributors
References
feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764
.