-
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
fix: e2ei endpoint is called even when the feature is disabled #2508
fix: e2ei endpoint is called even when the feature is disabled #2508
Conversation
@@ -22,7 +22,7 @@ import kotlinx.datetime.Instant | |||
|
|||
data class E2EISettings( | |||
val isRequired: Boolean, | |||
val discoverUrl: String, | |||
val discoverUrl: String?, |
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.
the url can be null even when the feature is enabled 😢
} | ||
} | ||
} | ||
} | ||
|
||
override fun discoveryUrl(): Either<CoreFailure, String> = |
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.
the idea of this function is to have a central place where the errors with e2ei url are caught
@@ -203,7 +203,7 @@ data class TeamSettingsSelfDeletionStatusEntity( | |||
@Serializable | |||
data class E2EISettingsEntity( | |||
@SerialName("status") val status: Boolean, | |||
@SerialName("discoverUrl") val discoverUrl: String, | |||
@SerialName("discoverUrl") val discoverUrl: String?, |
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.
according to swagger this URL can be null
Datadog ReportAll test runs ✅ 2 Total Test Services: 0 Failed, 2 Passed Test Services
|
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## release/candidate #2508 +/- ##
====================================================
Coverage ? 58.39%
Complexity ? 21
====================================================
Files ? 1171
Lines ? 45336
Branches ? 4292
====================================================
Hits ? 26472
Misses ? 16940
Partials ? 1924
Continue to review full report in Codecov by Sentry.
|
network/src/commonMain/kotlin/com/wire/kalium/network/api/base/unbound/acme/ACMEApi.kt
Outdated
Show resolved
Hide resolved
* fix: e2ei endpoint is called even when the feature is disabled * detekt * revert unwanted change * revert unwanted change
#2511) * fix: e2ei endpoint is called even when the feature is disabled * detekt * revert unwanted change * revert unwanted change Co-authored-by: Mohamad Jaara <[email protected]> Co-authored-by: Mojtaba Chenani <[email protected]>
#2511) * fix: e2ei endpoint is called even when the feature is disabled * detekt * revert unwanted change * revert unwanted change Co-authored-by: Mohamad Jaara <[email protected]> Co-authored-by: Mojtaba Chenani <[email protected]>
PR Submission Checklist for internal contributors
The PR Title
SQPIT-764
The PR Description
What's new in this PR?
Issues
it can happen that e2ei endpoint is called with empty URL when it is disabled
Solutions
small refactor to make sure it cann't be called when it is not enabled
Dependencies (Optional)
If there are some other pull requests related to this one (e.g. new releases of frameworks), specify them here.
Needs releases with:
Testing
Test Coverage (Optional)
How to Test
Briefly describe how this change was tested and if applicable the exact steps taken to verify that it works as expected.
Notes (Optional)
Specify here any other facts that you think are important for this issue.
Attachments (Optional)
Attachments like images, videos, etc. (drag and drop in the text box)
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
.