-
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(monkeys): Add new configuration attributes for the next milestone [WPB-3353] #1911
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #1911 +/- ##
=============================================
- Coverage 56.07% 56.07% -0.01%
Complexity 35 35
=============================================
Files 987 987
Lines 36873 36873
Branches 3315 3315
=============================================
- Hits 20677 20675 -2
- Misses 14814 14816 +2
Partials 1382 1382 see 1 file with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
1bf8793
to
3a2d6ac
Compare
@Serializable | ||
sealed class UserCount { | ||
@Serializable | ||
@SerialName("PERCENTAGE") | ||
data class Percentage(@SerialName("value") val value: UInt) : UserCount() | ||
|
||
@Serializable | ||
@SerialName("FIXED_COUNT") | ||
data class FixedCount(@SerialName("value") val value: UInt) : UserCount() | ||
} |
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.
Just as a heads up, this will require an implicit type
field in order for Kotlinx-serialization to select which one is being deserialized.
"userCount": {
"type": "PERCENTAGE",
"value": 48
}
"userCount": {
"type": "FIXED_COUNT",
"value": 1000
}
I like it :)
monkeys/src/commonMain/kotlin/com/wire/kalium/monkeys/importer/TestData.kt
Outdated
Show resolved
Hide resolved
…/TestData.kt Co-authored-by: Vitor Hugo Schwaab <[email protected]>
PR Submission Checklist for internal contributors
The PR Title
SQPIT-764
The PR Description
What's new in this PR?
Issues
In order to enable extensibility and more use cases we're adding new configuration options for the application.
Causes (Optional)
Right now the application is with most of its parameters hardcoded, not allowing many test scenarios.
Notes (Optional)
This is the first iteration on this. The logic for handling the configuration will come in separate PRs to not have huge code reviews.
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
.