snowplow / iglu-scala-client

Scala client for Iglu schema registry
https://github.com/snowplow/iglu/wiki
Apache License 2.0
5 stars 13 forks source link

Fix listSchemasLike when multiple Iglu repositories host the schemas #252

Closed istreeter closed 3 months ago

istreeter commented 4 months ago

Jira ref: PDP-1226

We had a problem with listSchemasLike when using the mustIncludeKey option, which was introduced in #215

For a particular schema...

and mustIncludeKey was set to 1-0-3. But listSchemasLike returned only 1-0-0 and 1-0-1 because Iglu Server 1 had higher priority.

After this change, listSchemasLike will return the list from Iglu Server 2 under these circumstances. Even though it has lower priority, it is the server that contains the mustIncludeKey.