Skip to content

Change context options to a type-safe option with generics #3132

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

Merged
merged 5 commits into from
Feb 12, 2025

Conversation

ohadzeliger
Copy link
Contributor

Pay technical debt from #3075: make context options type safe.
The options are now a simplified version of similar option implementations: An Option class and a wrapper around a map of the options allows us to remove the type cast when getting options. This was done this way (as opposed to a specific class with getters) in order to support the merging of options in ConfigWithOptions.

…n-options

# Conflicts:
#	yaml-tests/src/main/java/com/apple/foundationdb/relational/yamltests/YamlTestConfigFilters.java
/**
* Used to show the plan diffs graphically.
*/
SHOW_PLAN_ON_DIFF {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why are you removing SHOW_PLAN_ON_DIFF ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry about that. Fixed.

@ScottDugas ScottDugas merged commit 4e1f4bd into FoundationDB:main Feb 12, 2025
3 checks passed
@ohadzeliger ohadzeliger deleted the execution-options branch February 12, 2025 21:56
@ScottDugas ScottDugas added the testing improvement Change that improves our testing label Feb 17, 2025
@ScottDugas ScottDugas changed the title Change context options to a type-safe option with generics. Change context options to a type-safe option with generics Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing improvement Change that improves our testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants