aboutsummaryrefslogtreecommitdiff
path: root/mre/mre_tags_in_multiple_categories_not_correctly_filtered/readme.md
blob: 2f49aea3d653d129139f07d08964c67786bcb5ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
# Minimal Reproducible Example

Multiple issues are shown with this example.

---

Incorrect related filters:

Suggestions for related filters should only contain categories used in the
items in the search result, not all categories happening to contain tags in
the results which have the same name.

## Reproduction steps

1. Search for `animal`.

## Expected result

The related filters suggestions should only suggest `animal:bat`, but not
`object:bat`, since the only result does not have `object:bat`.

## Actual result

Both `animal:bat` and `object:bat` are suggested as related filters.
The latter is incorrect.

## Version info

Bug present in ldgallery v2.2.

---

Incorrect related filters:

Excluding a category should result in all tags in that category being excluded
from the related filters suggestions, even if they happen to contain a tag with
the same name.

## Reproduction steps

1. Search for `-animal`.

## Expected result

The `animal` category should not show up in the related filters suggestions.

## Actual result

The `animal` category still shows up in addition to the `object` category.

## Version info

Bug present in ldgallery v2.2.

---

Incorrect search results and related filters:

Excluding a category should only exclude tags in that category.
It should not exclude items having a tag with the same name in other
categories.

## Reproduction steps

1. Search for `-animal`.

## Expected result

`baseball_bat.md` and `cricket_bat.md` should appear in the search results,
because they do not have any tag in the category `animal`.

## Actual result

The search yields no result at all.
Strangely enough, the tag `bat` is still being suggested in both categories
in the related filters.

## Version info

Bug present in ldgallery v2.2.

---

Incorrect search results:

Excluding a tag within a category should only exclude tags in that category.
It should not exclude items having a tag with the same name in other
categories.

## Reproduction steps

1. Search for `-animal:bat`.

## Expected result

`baseball_bat.md` and `cricket_bat.md` should appear in the search results,
because they do not have that tag in the category `animal`, but `object`.

## Actual result

The search yields no result at all.

## Version info

Bug present in ldgallery v2.2.