Skip to content

Conversation

@mykhailo-kuchma
Copy link
Contributor

@mykhailo-kuchma mykhailo-kuchma commented Jan 31, 2020

Additionally makes constructor explicit. It is not a good practice
to take hide move oportunities from API users. Making the DefaultCache
constructor and the OlpClientSettingsFactory::CreateDefaultCache() method
take-in the CacheSettings by copy will allow user to pass-move and save
possible copies on the strings.
This also deprecates the olp::dataservice::write::StreamLayerClient
CreateDefaultCache() function as it is a duplicate to the
OlpClientSettingsFactory::CreateDefaultCache() method. Will be removed
by 06.2020. Until then this free function will use OlpClientSettingsFactory
internally to create the default cache instance.

Resolves: OLPEDGE-1509

Signed-off-by: Mykhailo Kuchma ext-mykhailo.kuchma@here.com
Signed-off-by: Andrei Popescu andrei.popescu@here.com

@codecov
Copy link

codecov bot commented Jan 31, 2020

Codecov Report

Merging #625 into master will increase coverage by 0.0%.
The diff coverage is 66.7%.

Impacted file tree graph

@@          Coverage Diff           @@
##           master    #625   +/-   ##
======================================
  Coverage    77.7%   77.7%           
======================================
  Files         284     284           
  Lines        9317    9317           
======================================
+ Hits         7236    7237    +1     
+ Misses       2081    2080    -1     
Impacted Files Coverage Δ
...cpp-sdk-core/include/olp/core/cache/DefaultCache.h 100.0% <ø> (ø)
.../include/olp/dataservice/write/StreamLayerClient.h 100.0% <ø> (ø)
...pp-sdk-dataservice-write/src/StreamLayerClient.cpp 64.0% <0.0%> (+2.5%) ⬆️
olp-cpp-sdk-core/src/cache/DefaultCache.cpp 90.4% <100.0%> (+0.1%) ⬆️
...p-sdk-core/src/client/OlpClientSettingsFactory.cpp 75.0% <100.0%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c1c821f...e4a54b3. Read the comment docs.

@andescu andescu force-pushed the task/olpedge-1509 branch 2 times, most recently from f3e39d8 to 42f9730 Compare February 18, 2020 11:05
Additionally makes constructor explicit. It is not a good practice
to take hide move oportunities from API users. Making the DefaultCache
constructor and the OlpClientSettingsFactory::CreateDefaultCache() method
take-in the CacheSettings by copy will allow user to pass-move and save
possible copies on the strings.
This also deprecates the olp::dataservice::write::StreamLayerClient
CreateDefaultCache() function as it is a duplicate to the
OlpClientSettingsFactory::CreateDefaultCache() method. Will be removed
by 06.2020. Until then this free function will use OlpClientSettingsFactory
internally to create the default cache instance.

Resolves: OLPEDGE-1509

Signed-off-by: Mykhailo Kuchma <ext-mykhailo.kuchma@here.com>
Signed-off-by: Andrei Popescu <andrei.popescu@here.com>
@mykhailo-kuchma mykhailo-kuchma merged commit fbe2a1f into master Mar 11, 2020
@mykhailo-kuchma mykhailo-kuchma deleted the task/olpedge-1509 branch March 11, 2020 15:22
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.

2 participants