Skip to content

ref(config): (20) Improve Deprecated Mapping Macro#722

Merged
george-sentry merged 4 commits into
mainfrom
george/better-config/20
Jun 18, 2026
Merged

ref(config): (20) Improve Deprecated Mapping Macro#722
george-sentry merged 4 commits into
mainfrom
george/better-config/20

Conversation

@george-sentry

Copy link
Copy Markdown
Member

Linear

Refs STREAM-843

Description

This is PART 20 of my configuration improvement effort. In this PR, I improve the deprecated mapping macro to simplify configuration deprecation and make it unnecessary to manually edit the string passed into user_provided, which I have forgotten to do more than once on this journey.

@george-sentry george-sentry requested a review from a team as a code owner June 18, 2026 18:47
@linear-code

linear-code Bot commented Jun 18, 2026

Copy link
Copy Markdown

STREAM-843

Comment thread src/config/deprecated.rs Outdated
Comment thread src/config/mod.rs Outdated
};

if !user_provided(builder, "fetch.backoff")
if !provided("fetch.backoff")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

why is it not possible to use the macro for this case?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Turned out to be possible with some changes - now those are done via macro as well.

@untitaker untitaker left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

do you plan to emit deprecation warnings for the old fields?

@george-sentry george-sentry changed the title ref(config): Improve Deprecated Mapping Macro ref(config): (20) Improve Deprecated Mapping Macro Jun 18, 2026
@george-sentry george-sentry merged commit 3e950f0 into main Jun 18, 2026
26 checks passed
@george-sentry george-sentry deleted the george/better-config/20 branch June 18, 2026 21:29
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.

3 participants