RemoteEntitySearchClient's getRemoteApiUrl() indicates there is at most one APIEntitySource with a populated repoApiUrl. I would expect this to only return the first source if there are multiple set up, which would be a problem. There is not a test set up for this scenario.
EntitySourceDefinitionsConfigParser - Seems perfectly possible to configure multiple federation sources. No test set up for this scenario.
THESE TWO ARE IN CONFLICT, and besides that, I'm unconvinced we should handle pulling any federation sources from config at this point.
PLEASE DECIDE WHICH WE SHOULD DO:
- Allow configuration of multiple federation sources; fix getRemoteApiUrl(), set up test cases for the config parser
- Allow configuration of at most one federation source; set a todo on getRemoteApiUrl(), set up test cases for the config parser.
- Disallow configuration of federation sources - Wikidata or nothing. Update Config parser, set a todo on getRemoteApiUrl(), set up test cases for the config parser.
- EntitySourceDefinitionsConfigParser - configuration for federated values sources removed, test cases checked for all scenarios and added as necessary
- Add a note on getRemoteApiUrl() that it will need fixing if we allow configuration of federated values sources