Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tenant filtering regression in 2023.1 #8088

Closed
slewis74 opened this issue Mar 16, 2023 · 3 comments
Closed

Tenant filtering regression in 2023.1 #8088

slewis74 opened this issue Mar 16, 2023 · 3 comments
Assignees
Labels
kind/bug This issue represents a verified problem we are committed to solving

Comments

@slewis74
Copy link

slewis74 commented Mar 16, 2023

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

  • Continent/Australia
  • Ring/Alpha
  • Ring/Main

Tenant B

  • Continent/Australia
  • Ring/Beta

Tenant C

  • Continent/Europe
  • Ring/Alpha

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 B

Error and Stacktrace

No response

More Information

No response

Workaround

None

@slewis74 slewis74 added the kind/bug This issue represents a verified problem we are committed to solving label Mar 16, 2023
@michaelongso michaelongso self-assigned this Mar 17, 2023
@michaelongso
Copy link

Release Note: Fixed regression on Tenant tags filtering for the endpoints.

@michaelongso
Copy link

The fix didn't filter tenants with no tags. This scenario is also failing:
/tenants?tags=Continent%2FEurope => C (due to multiple tag-sets on tenant-c)

@SeanStanway-Octopus
Copy link

Hey all, got a customer here (Internal link) who is experiencing this. Is there a timeline when this will be implemented on cloud instnaces? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug This issue represents a verified problem we are committed to solving
Projects
None yet
Development

No branches or pull requests

3 participants