aboutsummaryrefslogtreecommitdiff
path: root/mre/mre_tags_in_multiple_categories_not_correctly_filtered/readme.md
diff options
context:
space:
mode:
Diffstat (limited to 'mre/mre_tags_in_multiple_categories_not_correctly_filtered/readme.md')
-rw-r--r--mre/mre_tags_in_multiple_categories_not_correctly_filtered/readme.md105
1 files changed, 105 insertions, 0 deletions
diff --git a/mre/mre_tags_in_multiple_categories_not_correctly_filtered/readme.md b/mre/mre_tags_in_multiple_categories_not_correctly_filtered/readme.md
new file mode 100644
index 0000000..2f49aea
--- /dev/null
+++ b/mre/mre_tags_in_multiple_categories_not_correctly_filtered/readme.md
@@ -0,0 +1,105 @@
1# Minimal Reproducible Example
2
3Multiple issues are shown with this example.
4
5---
6
7Incorrect related filters:
8
9Suggestions for related filters should only contain categories used in the
10items in the search result, not all categories happening to contain tags in
11the results which have the same name.
12
13## Reproduction steps
14
151. Search for `animal`.
16
17## Expected result
18
19The related filters suggestions should only suggest `animal:bat`, but not
20`object:bat`, since the only result does not have `object:bat`.
21
22## Actual result
23
24Both `animal:bat` and `object:bat` are suggested as related filters.
25The latter is incorrect.
26
27## Version info
28
29Bug present in ldgallery v2.2.
30
31---
32
33Incorrect related filters:
34
35Excluding a category should result in all tags in that category being excluded
36from the related filters suggestions, even if they happen to contain a tag with
37the same name.
38
39## Reproduction steps
40
411. Search for `-animal`.
42
43## Expected result
44
45The `animal` category should not show up in the related filters suggestions.
46
47## Actual result
48
49The `animal` category still shows up in addition to the `object` category.
50
51## Version info
52
53Bug present in ldgallery v2.2.
54
55---
56
57Incorrect search results and related filters:
58
59Excluding a category should only exclude tags in that category.
60It should not exclude items having a tag with the same name in other
61categories.
62
63## Reproduction steps
64
651. Search for `-animal`.
66
67## Expected result
68
69`baseball_bat.md` and `cricket_bat.md` should appear in the search results,
70because they do not have any tag in the category `animal`.
71
72## Actual result
73
74The search yields no result at all.
75Strangely enough, the tag `bat` is still being suggested in both categories
76in the related filters.
77
78## Version info
79
80Bug present in ldgallery v2.2.
81
82---
83
84Incorrect search results:
85
86Excluding a tag within a category should only exclude tags in that category.
87It should not exclude items having a tag with the same name in other
88categories.
89
90## Reproduction steps
91
921. Search for `-animal:bat`.
93
94## Expected result
95
96`baseball_bat.md` and `cricket_bat.md` should appear in the search results,
97because they do not have that tag in the category `animal`, but `object`.
98
99## Actual result
100
101The search yields no result at all.
102
103## Version info
104
105Bug present in ldgallery v2.2.