[MAGNOLIA-8973] Composite configuration source doesn't deduplicate definitions when all are queried Created: 26/Jun/23  Updated: 26/Jun/23

Status: Open
Project: Magnolia
Component/s: None
Affects Version/s: None
Fix Version/s: 6.3.0

Type: Bug Priority: Neutral
Reporter: Aleksandr Pchelintcev Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled

 Description   

CompositeConfigurationSource takes a list of delegates (in the order of priority) and when a definition is queried, it will serve one available from the most prioritised source. However, when all definitions are queried as a collection - all the potential duplicates are included in the result.

We need to ensure that the resulting definition provider list returned by CfgSource#getAllProviders returns distinct providers for each unique key.


Generated at Mon Feb 12 04:37:28 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.