Skip to content

Add ConfigFileStoreAdapter to bridge ConfigFile to ConfigAggregator#4858

Closed
tarek-y-ismail wants to merge 3 commits into
add-config-aggregatorfrom
add-config-file-store-adapter
Closed

Add ConfigFileStoreAdapter to bridge ConfigFile to ConfigAggregator#4858
tarek-y-ismail wants to merge 3 commits into
add-config-aggregatorfrom
add-config-file-store-adapter

Conversation

@tarek-y-ismail
Copy link
Copy Markdown
Contributor

Related: #4830

What's new?

  • Adds ConfigFileStoreAdapter, a class that bridges between ConfigFile and ConfigAggregator by managing creating/updating/removing sources.

How to test

  • TODO??

Checklist

  • Tests added and pass
  • Adequate documentation added
  • (optional) Added Screenshots or videos

@tarek-y-ismail tarek-y-ismail self-assigned this Apr 16, 2026
@tarek-y-ismail tarek-y-ismail force-pushed the add-config-aggregator branch from 019c166 to 7563575 Compare April 16, 2026 15:19
@tarek-y-ismail tarek-y-ismail force-pushed the add-config-file-store-adapter branch 2 times, most recently from 18f47be to 2801040 Compare April 16, 2026 15:47
@tarek-y-ismail tarek-y-ismail force-pushed the add-config-aggregator branch from 7563575 to 9e50ae8 Compare April 16, 2026 15:53
@tarek-y-ismail tarek-y-ismail force-pushed the add-config-file-store-adapter branch from 2801040 to 5c5a932 Compare April 21, 2026 16:31
@tarek-y-ismail tarek-y-ismail force-pushed the add-config-aggregator branch 5 times, most recently from 5f707f5 to 0093d49 Compare April 30, 2026 15:01
Tests cover:
- empty span is a no-op
- base config is loaded on first call
- base config is updated on subsequent calls (uses update_source path)
- single override takes precedence over base
- later override takes precedence over earlier override
- removed override falls back to base value
- new override introduced on second call takes effect
- retained override with updated stream delivers new value
- override for one key does not clobber an unrelated key from base
@tarek-y-ismail tarek-y-ismail force-pushed the add-config-file-store-adapter branch from 59ed519 to 6df7c07 Compare May 4, 2026 09:04
@tarek-y-ismail tarek-y-ismail mentioned this pull request May 4, 2026
2 tasks
muhammad23012009 pushed a commit to muhammad23012009/mir that referenced this pull request May 17, 2026
Related canonical#4781, canonical#4858, canonical#4830
## What's new?

- Merges `ConfigAggregator` and `IniFile`, producing a simpler
implementation.

## How to test

- `<path/to/build>/bin/miral-test/miral-test
--gtest_filter=IniFileWithOverridesTest*`

## Checklist

- [x] Tests added and pass
- [x] Adequate documentation added
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.

1 participant