diff options
author | pacien | 2023-02-24 22:08:49 +0100 |
---|---|---|
committer | pacien | 2023-02-24 22:08:49 +0100 |
commit | 64f3ee483b2148c773a404ca296836f7259a9670 (patch) | |
tree | 67e4cf01b74032bfeebe3d5d8ec37b3d3986e176 /mre | |
parent | ae1446ed62f2d7de3c47b3ef7e2015bae26be6e4 (diff) | |
download | ldgallery-64f3ee483b2148c773a404ca296836f7259a9670.tar.gz |
mre: move minimal reproducible examples to develop branch
Instead of having them in separate orphan branches.
Diffstat (limited to 'mre')
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 @@ | |||
1 | tags: | ||
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 @@ | |||
1 | includedFiles: | ||
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 @@ | |||
1 | tags: | ||
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 | |||
3 | A search query with only subtraction should show all the elements in the | ||
4 | gallery minus the subtracted elements. | ||
5 | |||
6 | ## Reproduction steps | ||
7 | |||
8 | 1. Search for `-france`. | ||
9 | |||
10 | ## Expected result | ||
11 | |||
12 | `berlin.md` should appear in the results. | ||
13 | |||
14 | ## Actual result | ||
15 | |||
16 | The search yields no result at all. | ||
17 | |||
18 | ## Version info | ||
19 | |||
20 | Bug 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 @@ | |||
1 | includedFiles: | ||
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 | |||
3 | Having two or more similar tags which differ only in their casing results in | ||
4 | the lowercase variant to be inserted instead of the other ones. | ||
5 | |||
6 | ## Reproduction steps | ||
7 | |||
8 | 1. Type `Test` in the tag input box and press enter. | ||
9 | |||
10 | ## Expected result | ||
11 | |||
12 | The tag `Test` (starting with a capital letter) should be added to the search | ||
13 | query. | ||
14 | |||
15 | ## Actual result | ||
16 | |||
17 | The tag `test` (starting with a lower case letter) is instead added to the | ||
18 | search query. | ||
19 | |||
20 | ## Version info | ||
21 | |||
22 | Bug present in ldgallery v2.2. | ||
23 | |||
24 | --- | ||
25 | |||
26 | Having two or more similar tags which differ only in their casing results in | ||
27 | unrequested insertions in the query. | ||
28 | |||
29 | ## Reproduction steps | ||
30 | |||
31 | 1. Type `test` in the tag input box and press enter. | ||
32 | 2. Press the enter key or click on the "Search" button, | ||
33 | one or multiple times! | ||
34 | |||
35 | ## Expected result | ||
36 | |||
37 | It should just search for items with the `test` tag and display the result. | ||
38 | |||
39 | ## Actual result | ||
40 | |||
41 | The tag `Test` is added to the input field even though it was never requested. | ||
42 | Trying to search again results in more instances of `test` and `Test` to be | ||
43 | added to the search field. | ||
44 | |||
45 | No result is found because the resulting "forced" search query is wrong. | ||
46 | |||
47 | ## Version info | ||
48 | |||
49 | Bug 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 @@ | |||
1 | tags: | ||
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 @@ | |||
1 | tags: | ||
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 @@ | |||
1 | tags: | ||
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 @@ | |||
1 | tags: | ||
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 @@ | |||
1 | includedFiles: | ||
2 | - '*.md' | ||
3 | |||
4 | tagCategories: | ||
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 | |||
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 | ||