Skip to content

Conversation

@o-shevchenko
Copy link
Contributor

@o-shevchenko o-shevchenko commented Jan 16, 2026

Named channels now inherit settings from default configuration. Explicitly configured values in named channels take precedence over defaults.

[resolves #345]

@o-shevchenko o-shevchenko force-pushed the gh-345 branch 2 times, most recently from 707a333 to 1218da9 Compare January 16, 2026 17:35
@onobc onobc self-requested a review January 19, 2026 22:57
@onobc onobc self-assigned this Jan 19, 2026
@o-shevchenko o-shevchenko force-pushed the gh-345 branch 2 times, most recently from c8c0055 to 04de180 Compare January 21, 2026 16:44
@o-shevchenko o-shevchenko changed the title Allow named channels to inherit configuration from default-channel Allow named channels to inherit default configuration Jan 22, 2026
Copy link
Contributor

@onobc onobc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for another awesome contribution @o-shevchenko . I have left a few comments, other than that we are close to merge.

*/
public static class ChannelConfig {

private static final String DEFAULT_ADDRESS = "static://localhost:9090";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think these are good changes (adding @Nullable and default constants) but let's do them in a separate PR and keep this focused solely on merging / default channels.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PropertyMapper copies ALL values including defaults. The merging can't distinguish between "explicitly set to 4MB" vs "default value is 4MB".
For merging to work correctly, we need nullable fields.
I will use PropertyMapper but with nullable field change, don't see how we can avoid that for this PR.
I will reduce number of changes and delete defaults as well.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh yeh. Ok, this makes sense. I will re-review w/ this in mind.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the updates @o-shevchenko . One minor ask, in the future just push additional commits rather than force push as that makes it more difficult for the reviewer to pick up where they left off (changes etc..)..

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, will do
I just see that you don't squash commits before merge, so history become hard to read

Copy link
Contributor Author

@o-shevchenko o-shevchenko Jan 23, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see in Contribution two suggestions:

  1. Choose the granularity of your commits consciously and squash commits that represent multiple edits or corrections of the same logical change. See Rewriting History section of Pro Git for an overview of streamlining commit history.
  2. If asked to make corrections, simply push the changes against the same branch, and your pull request will be updated. In other words, you do not need to create a new pull request when asked to make changes.

Therefore, I decided to do force push (which I have to do as well) but it will look better after the merge. My previous merged PR landed with multiple commits that actually can be in one.

https://github.com/spring-projects/spring-grpc/blob/main/CONTRIBUTING.md

I think adjusting (1) or adding squash commits will help.

Copy link
Contributor

@onobc onobc Jan 24, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, will do I just see that you don't squash commits before merge, so history become hard to read

I personally always squash commits and hygiene them locally prior to merging. Its possible that some PR may have been merged w/ multiple commits but I am a firm believer of a linear git history as well 😸. So thank you for thinking of that - much appreciated.

And I totally agree, the CONTRIBUTING.md was likely copied from another repo and is probably out of date. I created #358 to prevent me from forgetting about this 😄

Signed-off-by: Oleksandr Shevchenko <oleksandr.shevchenko@datarobot.com>
@o-shevchenko o-shevchenko requested a review from onobc January 23, 2026 14:08
@onobc onobc added this to the 1.1.0-M1 milestone Jan 23, 2026
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.

Allow named channels to inherit default configuration

2 participants