CM Database adaptation to launcher::StorageItf refactoring #182
CM Database adaptation to launcher::StorageItf refactoring #182al1img merged 3 commits intoaosedge:developfrom
Conversation
src/cm/database/tests/database.cpp
Outdated
| launcher::InstanceStateEnum state = launcher::InstanceStateEnum::eCached, bool isUnitSubject = false, | ||
| const char* version = "1.0.0", const char* ownerID = "owner1", SubjectTypeEnum subjectType = SubjectTypeEnum::eUser, | ||
| size_t priority = 0, std::vector<const char*> labels = {}) | ||
| size_t priority = 0, std::vector<const char*> labels = {}, bool isSticky = false) |
There was a problem hiding this comment.
We renamed it to rebalancing disabled
src/cm/database/database.hpp
Outdated
| eLabels, | ||
| ePriority | ||
| ePriority, | ||
| eIsSticky |
MykolaSuperman
left a comment
There was a problem hiding this comment.
Reviewed-by: Mykola Solianko <mykola_solianko@epam.com>
src/cm/database/tests/database.cpp
Outdated
| request.mLabels.Clear(); | ||
|
|
||
| for (const char* label : labels) { | ||
| AOS_ERROR_CHECK_AND_THROW(request.mLabels.EmplaceBack(label), "can't add label"); |
There was a problem hiding this comment.
I suggest using EmplaceBack + Back().Assign
Cause we can properly track if it's no mem in an Array or String capasity issue
mlohvynenko
left a comment
There was a problem hiding this comment.
Reviewed-by: Mykhailo Lohvynenko <mykhailo_lohvynenko@epam.com>
7193259 to
1c4e216
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #182 +/- ##
==========================================
Coverage ? 82.42%
==========================================
Files ? 325
Lines ? 31130
Branches ? 3214
==========================================
Hits ? 25659
Misses ? 5471
Partials ? 0 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
al1img
left a comment
There was a problem hiding this comment.
Reviewed-by: Oleksandr Grytsov <oleksandr_grytsov@epam.com>
| launcher::InstanceStateEnum state = launcher::InstanceStateEnum::eCached, bool isUnitSubject = false, | ||
| const char* version = "1.0.0", const char* ownerID = "owner1", SubjectTypeEnum subjectType = SubjectTypeEnum::eUser, | ||
| size_t priority = 0, std::vector<const char*> labels = {}) | ||
| size_t priority = 0, std::vector<const char*> labels = {}, bool disableRebalancing = false) |
Signed-off-by: Mykola Kobets <mykola_kobets@epam.com> Reviewed-by: Mykhailo Lohvynenko <mykhailo_lohvynenko@epam.com> Reviewed-by: Oleksandr Grytsov <oleksandr_grytsov@epam.com> Reviewed-by: Mykola Solianko <mykola_solianko@epam.com>
Signed-off-by: Mykola Kobets <mykola_kobets@epam.com> Reviewed-by: Mykhailo Lohvynenko <mykhailo_lohvynenko@epam.com> Reviewed-by: Oleksandr Grytsov <oleksandr_grytsov@epam.com> Reviewed-by: Mykola Solianko <mykola_solianko@epam.com>
Signed-off-by: Mykola Kobets <mykola_kobets@epam.com> Reviewed-by: Mykhailo Lohvynenko <mykhailo_lohvynenko@epam.com> Reviewed-by: Oleksandr Grytsov <oleksandr_grytsov@epam.com> Reviewed-by: Mykola Solianko <mykola_solianko@epam.com>
1c4e216 to
2560644
Compare
|


No description provided.