pivio / pivio-server

Central DB Server with a simple REST API. Backend by Elasticsearch.
Apache License 2.0
21 stars 5 forks source link

Finding exact values not possible for owners with spaces in their name #10

Open christian-schlichtherle opened 6 years ago

christian-schlichtherle commented 6 years ago

Assume the following:

pivio.yaml for service foo:

owner: Foo Team

pivio.yaml for service bar:

owner: Bar Team

Now when I feed this into Pivio and use the Web UI to find the services owned by each team, I will always get both services.

I believe this is due to the way Elasticsearch works - see https://www.elastic.co/guide/en/elasticsearch/guide/current/_finding_exact_values.html . Nevertheless, I would consider this to be a bug because it's plausible that a user who clicks on a team name like Foo team expects exactly only the services to be displayed which are actually owned by this team.

christian-schlichtherle commented 6 years ago

The same issue applies when drilling down on the context.belongs_to_bounded_context.