-
Notifications
You must be signed in to change notification settings - Fork 61
apollo_infra: add component config validations #8616
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
apollo_infra: add component config validations #8616
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
582199b
to
a7504f0
Compare
5b4b13d
to
dfc6224
Compare
413d6eb
to
64a6fdb
Compare
dfc6224
to
3e7824c
Compare
64a6fdb
to
c797692
Compare
3e7824c
to
5a857b5
Compare
5b3280a
to
6d15594
Compare
5a857b5
to
0001539
Compare
6d15594
to
706cf18
Compare
0001539
to
e363b64
Compare
706cf18
to
8d38fc7
Compare
8d38fc7
to
57aabf5
Compare
Merge activity
|
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.
Reviewable status: 0 of 4 files reviewed, 4 unresolved discussions
crates/apollo_node/src/config/definitions.rs
line 30 at r2 (raw file):
#[derive(Debug, Clone, Copy)] pub enum Expected {
Too abstract imo. WDYT about ConfigExpectation
?
Code quote:
Expected
crates/apollo_node/src/config/definitions.rs
line 30 at r2 (raw file):
#[derive(Debug, Clone, Copy)] pub enum Expected {
Needed?
Code quote:
pub
crates/apollo_node/src/config/definitions.rs
line 32 at r2 (raw file):
pub enum Expected { Required, Forbidden,
Let's call this Redundant
? Forbidden
is too harsh imo.
Code quote:
Forbidden
crates/apollo_node/src/config/component_execution_config.rs
line 289 at r2 (raw file):
fn to_presence<T>(opt: &Option<T>) -> Presence { if opt.is_some() { Presence::Present } else { Presence::Absent } }
Please place near the definition of the enum.
Consider implementing Into
or From
traits (or their reference variant)
Code quote:
fn to_presence<T>(opt: &Option<T>) -> Presence {
if opt.is_some() { Presence::Present } else { Presence::Absent }
}
57aabf5
to
3e6c7bd
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.
Reviewable status: 0 of 4 files reviewed, 4 unresolved discussions (waiting on @Itay-Tsabary-Starkware)
crates/apollo_node/src/config/component_execution_config.rs
line 289 at r2 (raw file):
Previously, Itay-Tsabary-Starkware wrote…
Please place near the definition of the enum.
Consider implementingInto
orFrom
traits (or their reference variant)
Done.
crates/apollo_node/src/config/definitions.rs
line 30 at r2 (raw file):
Previously, Itay-Tsabary-Starkware wrote…
Too abstract imo. WDYT about
ConfigExpectation
?
Done.
crates/apollo_node/src/config/definitions.rs
line 30 at r2 (raw file):
Previously, Itay-Tsabary-Starkware wrote…
Needed?
Done.
crates/apollo_node/src/config/definitions.rs
line 32 at r2 (raw file):
Previously, Itay-Tsabary-Starkware wrote…
Let's call this
Redundant
?Forbidden
is too harsh imo.
Done.
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.
Reviewable status: 0 of 4 files reviewed, 4 unresolved discussions (waiting on @nadin-Starkware)
crates/apollo_node/src/config/definitions.rs
line 30 at r2 (raw file):
Previously, nadin-Starkware (Nadin Jbara) wrote…
Done.
I should have asked for that to be applied to the Presence
enum as well, apologies for the implicitness.
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.
Reviewable status: 0 of 4 files reviewed, 4 unresolved discussions (waiting on @nadin-Starkware)
crates/apollo_node/src/config/definitions.rs
line 32 at r3 (raw file):
pub(crate) enum ConfigExpectation { Required, Redundant,
alphabetize please (both)
Code quote:
Required,
Redundant,
3e6c7bd
to
6bccdb3
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.
Reviewable status: 0 of 4 files reviewed, 2 unresolved discussions (waiting on @Itay-Tsabary-Starkware)
crates/apollo_node/src/config/definitions.rs
line 30 at r2 (raw file):
Previously, Itay-Tsabary-Starkware wrote…
I should have asked for that to be applied to the
Presence
enum as well, apologies for the implicitness.
Done.
crates/apollo_node/src/config/definitions.rs
line 32 at r3 (raw file):
Previously, Itay-Tsabary-Starkware wrote…
alphabetize please (both)
Done.
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.
Reviewed 1 of 2 files at r1, 1 of 3 files at r2, 2 of 2 files at r4, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @nadin-Starkware)
No description provided.