aboutsummaryrefslogtreecommitdiff
path: root/mre
diff options
context:
space:
mode:
Diffstat (limited to 'mre')
-rw-r--r--mre/mre_only_subtraction_shows_others/berlin.md0
-rw-r--r--mre/mre_only_subtraction_shows_others/berlin.md.yaml2
-rw-r--r--mre/mre_only_subtraction_shows_others/gallery.yaml2
-rw-r--r--mre/mre_only_subtraction_shows_others/paris.md0
-rw-r--r--mre/mre_only_subtraction_shows_others/paris.md.yaml2
-rw-r--r--mre/mre_only_subtraction_shows_others/readme.md20
-rw-r--r--mre/mre_similar_tags_caps/gallery.yaml2
-rw-r--r--mre/mre_similar_tags_caps/readme.md49
-rw-r--r--mre/mre_similar_tags_caps/test.md0
-rw-r--r--mre/mre_similar_tags_caps/test.md.yaml2
-rw-r--r--mre/mre_similar_tags_caps/test_with_caps.md0
-rw-r--r--mre/mre_similar_tags_caps/test_with_caps.md.yaml2
-rw-r--r--mre/mre_tags_in_multiple_categories_not_correctly_filtered/baseball_bat.md0
-rw-r--r--mre/mre_tags_in_multiple_categories_not_correctly_filtered/baseball_bat.md.yaml2
-rw-r--r--mre/mre_tags_in_multiple_categories_not_correctly_filtered/cricket_bat.md0
-rw-r--r--mre/mre_tags_in_multiple_categories_not_correctly_filtered/cricket_bat.md.yaml2
-rw-r--r--mre/mre_tags_in_multiple_categories_not_correctly_filtered/gallery.yaml6
-rw-r--r--mre/mre_tags_in_multiple_categories_not_correctly_filtered/readme.md105
-rw-r--r--mre/mre_tags_in_multiple_categories_not_correctly_filtered/winged_bat.md0
-rw-r--r--mre/mre_tags_in_multiple_categories_not_correctly_filtered/winged_bat.md.yaml2
20 files changed, 198 insertions, 0 deletions
diff --git a/mre/mre_only_subtraction_shows_others/berlin.md b/mre/mre_only_subtraction_shows_others/berlin.md
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/mre/mre_only_subtraction_shows_others/berlin.md
diff --git a/mre/mre_only_subtraction_shows_others/berlin.md.yaml b/mre/mre_only_subtraction_shows_others/berlin.md.yaml
new file mode 100644
index 0000000..628c1f4
--- /dev/null
+++ b/mre/mre_only_subtraction_shows_others/berlin.md.yaml
@@ -0,0 +1,2 @@
1tags:
2- germany
diff --git a/mre/mre_only_subtraction_shows_others/gallery.yaml b/mre/mre_only_subtraction_shows_others/gallery.yaml
new file mode 100644
index 0000000..8cbc96b
--- /dev/null
+++ b/mre/mre_only_subtraction_shows_others/gallery.yaml
@@ -0,0 +1,2 @@
1includedFiles:
2- '*.md'
diff --git a/mre/mre_only_subtraction_shows_others/paris.md b/mre/mre_only_subtraction_shows_others/paris.md
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/mre/mre_only_subtraction_shows_others/paris.md
diff --git a/mre/mre_only_subtraction_shows_others/paris.md.yaml b/mre/mre_only_subtraction_shows_others/paris.md.yaml
new file mode 100644
index 0000000..f6bf8fd
--- /dev/null
+++ b/mre/mre_only_subtraction_shows_others/paris.md.yaml
@@ -0,0 +1,2 @@
1tags:
2- france
diff --git a/mre/mre_only_subtraction_shows_others/readme.md b/mre/mre_only_subtraction_shows_others/readme.md
new file mode 100644
index 0000000..0e00132
--- /dev/null
+++ b/mre/mre_only_subtraction_shows_others/readme.md
@@ -0,0 +1,20 @@
1# Minimal Reproducible Example
2
3A search query with only subtraction should show all the elements in the
4gallery minus the subtracted elements.
5
6## Reproduction steps
7
81. Search for `-france`.
9
10## Expected result
11
12`berlin.md` should appear in the results.
13
14## Actual result
15
16The search yields no result at all.
17
18## Version info
19
20Bug present in ldgallery v2.2.
diff --git a/mre/mre_similar_tags_caps/gallery.yaml b/mre/mre_similar_tags_caps/gallery.yaml
new file mode 100644
index 0000000..8cbc96b
--- /dev/null
+++ b/mre/mre_similar_tags_caps/gallery.yaml
@@ -0,0 +1,2 @@
1includedFiles:
2- '*.md'
diff --git a/mre/mre_similar_tags_caps/readme.md b/mre/mre_similar_tags_caps/readme.md
new file mode 100644
index 0000000..1a00e52
--- /dev/null
+++ b/mre/mre_similar_tags_caps/readme.md
@@ -0,0 +1,49 @@
1# Minimal Reproducible Example
2
3Having two or more similar tags which differ only in their casing results in
4the lowercase variant to be inserted instead of the other ones.
5
6## Reproduction steps
7
81. Type `Test` in the tag input box and press enter.
9
10## Expected result
11
12The tag `Test` (starting with a capital letter) should be added to the search
13query.
14
15## Actual result
16
17The tag `test` (starting with a lower case letter) is instead added to the
18search query.
19
20## Version info
21
22Bug present in ldgallery v2.2.
23
24---
25
26Having two or more similar tags which differ only in their casing results in
27unrequested insertions in the query.
28
29## Reproduction steps
30
311. Type `test` in the tag input box and press enter.
322. Press the enter key or click on the "Search" button,
33 one or multiple times!
34
35## Expected result
36
37It should just search for items with the `test` tag and display the result.
38
39## Actual result
40
41The tag `Test` is added to the input field even though it was never requested.
42Trying to search again results in more instances of `test` and `Test` to be
43added to the search field.
44
45No result is found because the resulting "forced" search query is wrong.
46
47## Version info
48
49Bug present in ldgallery v2.2.
diff --git a/mre/mre_similar_tags_caps/test.md b/mre/mre_similar_tags_caps/test.md
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/mre/mre_similar_tags_caps/test.md
diff --git a/mre/mre_similar_tags_caps/test.md.yaml b/mre/mre_similar_tags_caps/test.md.yaml
new file mode 100644
index 0000000..997a5f6
--- /dev/null
+++ b/mre/mre_similar_tags_caps/test.md.yaml
@@ -0,0 +1,2 @@
1tags:
2- test
diff --git a/mre/mre_similar_tags_caps/test_with_caps.md b/mre/mre_similar_tags_caps/test_with_caps.md
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/mre/mre_similar_tags_caps/test_with_caps.md
diff --git a/mre/mre_similar_tags_caps/test_with_caps.md.yaml b/mre/mre_similar_tags_caps/test_with_caps.md.yaml
new file mode 100644
index 0000000..a654d10
--- /dev/null
+++ b/mre/mre_similar_tags_caps/test_with_caps.md.yaml
@@ -0,0 +1,2 @@
1tags:
2- Test
diff --git a/mre/mre_tags_in_multiple_categories_not_correctly_filtered/baseball_bat.md b/mre/mre_tags_in_multiple_categories_not_correctly_filtered/baseball_bat.md
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/mre/mre_tags_in_multiple_categories_not_correctly_filtered/baseball_bat.md
diff --git a/mre/mre_tags_in_multiple_categories_not_correctly_filtered/baseball_bat.md.yaml b/mre/mre_tags_in_multiple_categories_not_correctly_filtered/baseball_bat.md.yaml
new file mode 100644
index 0000000..a340dd1
--- /dev/null
+++ b/mre/mre_tags_in_multiple_categories_not_correctly_filtered/baseball_bat.md.yaml
@@ -0,0 +1,2 @@
1tags:
2- object:bat
diff --git a/mre/mre_tags_in_multiple_categories_not_correctly_filtered/cricket_bat.md b/mre/mre_tags_in_multiple_categories_not_correctly_filtered/cricket_bat.md
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/mre/mre_tags_in_multiple_categories_not_correctly_filtered/cricket_bat.md
diff --git a/mre/mre_tags_in_multiple_categories_not_correctly_filtered/cricket_bat.md.yaml b/mre/mre_tags_in_multiple_categories_not_correctly_filtered/cricket_bat.md.yaml
new file mode 100644
index 0000000..a340dd1
--- /dev/null
+++ b/mre/mre_tags_in_multiple_categories_not_correctly_filtered/cricket_bat.md.yaml
@@ -0,0 +1,2 @@
1tags:
2- object:bat
diff --git a/mre/mre_tags_in_multiple_categories_not_correctly_filtered/gallery.yaml b/mre/mre_tags_in_multiple_categories_not_correctly_filtered/gallery.yaml
new file mode 100644
index 0000000..73103df
--- /dev/null
+++ b/mre/mre_tags_in_multiple_categories_not_correctly_filtered/gallery.yaml
@@ -0,0 +1,6 @@
1includedFiles:
2- '*.md'
3
4tagCategories:
5- animal
6- object \ No newline at end of file
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`.