-
Notifications
You must be signed in to change notification settings - Fork 44
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: Introduce top-level config package #389
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #389 +/- ##
===========================================
+ Coverage 56.58% 56.87% +0.28%
===========================================
Files 121 124 +3
Lines 14082 14351 +269
===========================================
+ Hits 7969 8162 +193
- Misses 5421 5475 +54
- Partials 692 714 +22
|
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
5fab950
to
cd41cb9
Compare
This comment was marked as off-topic.
This comment was marked as off-topic.
also closes #347 |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
e976660
to
ea50dc8
Compare
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.
Was really nice to review - I really like the changes, I dont think I have any major comments (mostly ticket requests/questions/documentation). Approved assuming you respond to my comments before merge.
6283b94
to
708bb3f
Compare
Closes #469 |
Closes #346 |
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.
Sorry for the delay on this, some minor changes/suggestions
708bb3f
to
4e1c6f0
Compare
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.
LGTM.
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.
LGTM!
4e1c6f0
to
ab87614
Compare
Sorry for having just one commit on this one, I didn't know any better Main difference from previous iteration is the way CLI flags are handled solving a flag precedence issue |
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.
I skimmed through again, looks good with a couple of minor comments I would prefer sorted pre-merge. Thanks again for cleaning this up!
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.
Approving provided you integrate the suggested change :)
Introducing a top-level
config
package in which a Config struct provides DefraDB's configuration, providing facilities such as a documented YAML file, ...Some goals of this are:
I recommend starting a review with the
config
package documentation https://github.com/sourcenetwork/defradb/pull/389/files#diff-fe44f09c4d5977b5f5eaea29170b6a0748819c9d02271746a20d81a5f3efca17R11Future extensions of this will be configuration for TLS, instrumentation, CORS, etc.
Feedback and discussion is welcome.
Note that the in-repo CLI documentation will be updated as part of the CLI overhaul PR that follows this one.