-
Notifications
You must be signed in to change notification settings - Fork 61
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.
So far, so good, I think.
src/aktualizr_repo/repo.h
Outdated
class Repo { | ||
public: | ||
Repo(boost::filesystem::path path, const std::string &expires, std::string correlation_id); | ||
Repo(std::string repo_type, boost::filesystem::path path, const std::string &expires, std::string correlation_id); |
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.
It might be nice if repo_type
was an enum class
, although since you use the actual text for various reasons, perhaps it makes sense to have conversion functions to strings.
src/aktualizr_repo/repo.h
Outdated
boost::filesystem::path path_; | ||
std::string correlation_id_; | ||
std::string expiration_time_; | ||
std::map<std::string, KeyPair> keys_; |
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.
Another thought: instead of using a string as the key of this map, would it be better to use a KeyType
?
src/aktualizr_repo/director_repo.cc
Outdated
const boost::filesystem::path current = path_ / "repo/director/targets.json"; | ||
const boost::filesystem::path staging = path_ / "repo/director/staging/targets.json"; | ||
|
||
// |
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.
Missing comment?
b8a989e
to
bdd29fa
Compare
Codecov Report
@@ Coverage Diff @@
## master #1028 +/- ##
==========================================
+ Coverage 82.31% 82.43% +0.11%
==========================================
Files 189 195 +6
Lines 13663 13790 +127
==========================================
+ Hits 11247 11368 +121
- Misses 2416 2422 +6
Continue to review full report at Codecov.
|
e20c212
to
8a6e695
Compare
Signed-off-by: Serhiy Stetskovych <patriotyk@gmail.com>
8a6e695
to
e90f1e7
Compare
Signed-off-by: Serhiy Stetskovych <patriotyk@gmail.com>
Looks promising. I like the enum classes! I just realized that What's missing is testing:
@OYTIS I'm also curious if this matches your expectations so far as well! |
Signed-off-by: Serhiy Stetskovych <patriotyk@gmail.com>
c1e65d6
to
ef59fce
Compare
Signed-off-by: Serhiy Stetskovych <patriotyk@gmail.com>
Signed-off-by: Serhiy Stetskovych <patriotyk@gmail.com>
7f9cbd4
to
c10c7ed
Compare
Looks like it should be ok now. |
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.
Looks good, thanks!
No description provided.