Using v2021.3 (Build 8275)
Observed:
When filtering Tenants by a tag that has not been assigned to any Tenant, Octopus returns ALL Tenants.
Also, if filtering by multiple tags from different tag sets, if you include a tag that has not been assigned to any Tenant, Octopus returns ALL Tenants.
Expected:
If you filter Tenants by a tag that hasn’t been applied, Octopus should return no Tenants.
Is this a known issue?
Jamie
Hi @jamie.sidoti ,
Thanks for reaching out on our support forum. We have a few open known issues regarding tenant tags:
opened 04:57AM - 11 Dec 20 UTC
kind/bug
feature/tenants
priority/low
area/core
team/fire-and-motion
research/FnM PM
# Prerequisites
- [x] I have verified the problem exists in the latest versio… n
- [X] I have searched [open](https://github.com/OctopusDeploy/Issues/issues) and [closed](https://github.com/OctopusDeploy/Issues/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aclosed) issues to make sure it isn't already reported
- [X] I have written a descriptive issue title
- [X] I have linked the original source of this report
- [X] I have tagged the issue appropriately (area/*, kind/bug, tag/regression?)
# The bug
When you have multiple tenants with tags against each tenant, attempting to filter by more than one Tag, results in all Tenants being displayed including tenants with none of the tags that have been filtered.
## What I expected to happen
Either:
a: If I filter by more than one tag, a reductive function should be used to include only the tenants that match both tags.
b: Alternatively, If I filter by more than one tag, a addition function should be used to include the tenants that match either tag.
## Steps to reproduce
Create any Project (and environment)
Create 3 Tenants - Tenant A, Tenant B, Tenant C
Create 3 Tenant Tag Sets - Tag Set 1, Tag Set 2 and Tag Set 3
Create a tag in each Tag Set - TS1 Tag 1, TS2 Tag 1, TS3 Tag 1 respectively.
Connect a project to Tenant A and apply TS1 Tag 1
Connect a project to Tenant B and apply TS2 Tag 1
Connect a project to Tenant C and apply TS3 Tag 1
Open the Tenants Tab, click on "Show Advanced Filters"
Select TS1 Tag 1 and TS2 Tag 1.
You will see 3 Tenants Match and "Tenant C" will appear in the filtered list.
### Screen capture

# More Info
I initially considered that the issue was "When 'no tenants match' it displayed ALL tenants." This is not the case. I added one other Tenant with all the tags. This tenant should appear with any combination of Tenant Tag Filtering - however when I chose two tenant tags to filter by, all tenants appeared.
In this circumstance - if the Tenant tag filters were reductive (Logical AND) - then only Tenant D should appear otherwise if they were Additive (Logical OR) then Tenant A, Tenant B and Tenant D should appear, while Tenant C will remain unmatched.

## Affected versions
Reproduced in Octopus Server: 2020.4.11
## Workarounds
No workarounds except checking manually.
## Links
https://help.octopus.com/t/when-using-the-advanced-filters-area-in-tenants-if-filtering-by-two-different-tag-sets-where-the-filter-results-will-be-zero-it-shows-all-tenants-instead-of-none/26058
opened 05:12PM - 19 May 22 UTC
kind/bug
feature/tenants
area/core
state/triage
### Team
- [X] I've assigned a team label to this issue
### Severity
Not bloc… king - minor
### Version
Earliest 2021.2 latest tested in 2022.2.3037
### Latest Version
I could reproduce the problem in the latest build
### What happened?
Under Deployment Targets and when sorting with Advanced Filters, Tenant Tags return no results.
### Reproduction
1. Create a Tenants
2. Create a Tenant tags
3. Apply Tag to Tenant
4. Go to Infrastructure > Deployment Targets
5. Show Advanced Filters
6. Apply Tag Filter
### Error and Stacktrace
_No response_
### More Information
This appears to be a regression for the previously filed bug: https://github.com/OctopusDeploy/Issues/issues/6908
Mentioned on internal slack [thread here](https://octopusdeploy.slack.com/archives/C01HZFJRYSH/p1652891496583259).
### Workaround
None
It appears that your case might be slightly different, but the affected area of the code is the same. We also have this known issue which is more generic, but I’ve included a comment on your findings for engineering to review:
opened 09:57PM - 05 Jul 22 UTC
kind/bug
priority/low
state/backlog
team/fire-and-motion
backloggrooming/discussed
### Team
- [X] I've assigned a team label to this issue
### Severity
minor UI… /wording issue, non blocking
### Version
any
### Latest Version
I could reproduce the problem in the latest build
### What happened?
Tenant selection provides both the ability to include tenants by names and by tenant tags. Some customers find it unclear whether the end result is a logical `AND` or `OR` on the 2 selections. The visual layout is also slightly different between tenant selection and the preview popup, potentially further indicating that they work differently. See screenshots below. This might just need a wording/visual update.
### Reproduction
- Create some tenants
- Create some tenant tags and randomly assign
- Create a deployment target
- Go to settings for this deployment target
- See `Associated Tenants`
- Click `Tenant Preview` and see the popup
### Error and Stacktrace
_No response_
### More Information


### Workaround
_No response_
Let us know if you have any other questions.
Best,
Brent
system
(system)
Closed
15 August 2022 21:32
4
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.