Tenant filtering regression in 2023.1
#8088
Labels
kind/bug
This issue represents a verified problem we are committed to solving
2023.1
#8088
Severity
Non-blocking, queries can return additional data. There is no impact on deployments or runbooks.
Version
2023.1
Latest Version
I could reproduce the problem in the latest build
What happened?
Filtering of tenants across tag sets is not functioning correctly.
The
/tenants
and/tenants/all
APIs regressed to doing an OR across the provided tenant tags. The correct behavior for the filtering is to do an OR within each tag set and then AND across the tag sets themselves. In other words, a tenant matches if they have 1 or more tag matches within each tagset in the filter.Reproduction
Sample data used to reproduce the issue:
Tags
Continent/Australia
Continent/NorthAmerica
Ring/Alpha
Ring/Beta
Tenants
Tenant A
Tenant B
Tenant C
Query filter => should result in tenant(s)
/tenants?tags=Continent%2FAustralia,Ring%2FBeta
=> B/tenants?tags=Continent%2FAustralia,Ring%2FAlpha,Ring%2FBeta
=> A, B/tenants?tags=Continent%2FAustralia,Ring%2FMain,Ring%2FBeta
=> A, B/tenants?tags=Continent%2FEurope
=> C/tenants?tags=Continent%2FEurope,Ring%2FBeta
=>In testing on
2023.1+
the first of these returns A, B instead of just BError and Stacktrace
No response
More Information
No response
Workaround
None
The text was updated successfully, but these errors were encountered: