diff options
author | pacien | 2023-07-26 01:12:17 +0200 |
---|---|---|
committer | pacien | 2023-07-26 01:12:17 +0200 |
commit | 8951f65d116b020bc95ba509c1ecf69b24bec1f0 (patch) | |
tree | 07ec167ecb1589b74fd93418196256edad9a2f0d /mre/mre_tags_in_multiple_categories_not_correctly_filtered/readme.md | |
parent | 46cd42de44e402fbf33522d999fa2649729ffaa8 (diff) | |
parent | f187b6f2653092d4034ec1561280d286f956c36e (diff) | |
download | ldgallery-develop.tar.gz |
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.md | 105 |
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 | |||
3 | Multiple issues are shown with this example. | ||
4 | |||
5 | --- | ||
6 | |||
7 | Incorrect related filters: | ||
8 | |||
9 | Suggestions for related filters should only contain categories used in the | ||
10 | items in the search result, not all categories happening to contain tags in | ||
11 | the results which have the same name. | ||
12 | |||
13 | ## Reproduction steps | ||
14 | |||
15 | 1. Search for `animal`. | ||
16 | |||
17 | ## Expected result | ||
18 | |||
19 | The 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 | |||
24 | Both `animal:bat` and `object:bat` are suggested as related filters. | ||
25 | The latter is incorrect. | ||
26 | |||
27 | ## Version info | ||
28 | |||
29 | Bug present in ldgallery v2.2. | ||
30 | |||
31 | --- | ||
32 | |||
33 | Incorrect related filters: | ||
34 | |||
35 | Excluding a category should result in all tags in that category being excluded | ||
36 | from the related filters suggestions, even if they happen to contain a tag with | ||
37 | the same name. | ||
38 | |||
39 | ## Reproduction steps | ||
40 | |||
41 | 1. Search for `-animal`. | ||
42 | |||
43 | ## Expected result | ||
44 | |||
45 | The `animal` category should not show up in the related filters suggestions. | ||
46 | |||
47 | ## Actual result | ||
48 | |||
49 | The `animal` category still shows up in addition to the `object` category. | ||
50 | |||
51 | ## Version info | ||
52 | |||
53 | Bug present in ldgallery v2.2. | ||
54 | |||
55 | --- | ||
56 | |||
57 | Incorrect search results and related filters: | ||
58 | |||
59 | Excluding a category should only exclude tags in that category. | ||
60 | It should not exclude items having a tag with the same name in other | ||
61 | categories. | ||
62 | |||
63 | ## Reproduction steps | ||
64 | |||
65 | 1. Search for `-animal`. | ||
66 | |||
67 | ## Expected result | ||
68 | |||
69 | `baseball_bat.md` and `cricket_bat.md` should appear in the search results, | ||
70 | because they do not have any tag in the category `animal`. | ||
71 | |||
72 | ## Actual result | ||
73 | |||
74 | The search yields no result at all. | ||
75 | Strangely enough, the tag `bat` is still being suggested in both categories | ||
76 | in the related filters. | ||
77 | |||
78 | ## Version info | ||
79 | |||
80 | Bug present in ldgallery v2.2. | ||
81 | |||
82 | --- | ||
83 | |||
84 | Incorrect search results: | ||
85 | |||
86 | Excluding a tag within a category should only exclude tags in that category. | ||
87 | It should not exclude items having a tag with the same name in other | ||
88 | categories. | ||
89 | |||
90 | ## Reproduction steps | ||
91 | |||
92 | 1. Search for `-animal:bat`. | ||
93 | |||
94 | ## Expected result | ||
95 | |||
96 | `baseball_bat.md` and `cricket_bat.md` should appear in the search results, | ||
97 | because they do not have that tag in the category `animal`, but `object`. | ||
98 | |||
99 | ## Actual result | ||
100 | |||
101 | The search yields no result at all. | ||
102 | |||
103 | ## Version info | ||
104 | |||
105 | Bug present in ldgallery v2.2. | ||