From 64f3ee483b2148c773a404ca296836f7259a9670 Mon Sep 17 00:00:00 2001 From: pacien Date: Fri, 24 Feb 2023 22:08:49 +0100 Subject: mre: move minimal reproducible examples to develop branch Instead of having them in separate orphan branches. --- mre/mre_only_subtraction_shows_others/berlin.md | 0 .../berlin.md.yaml | 2 + mre/mre_only_subtraction_shows_others/gallery.yaml | 2 + mre/mre_only_subtraction_shows_others/paris.md | 0 .../paris.md.yaml | 2 + mre/mre_only_subtraction_shows_others/readme.md | 20 ++++ mre/mre_similar_tags_caps/gallery.yaml | 2 + mre/mre_similar_tags_caps/readme.md | 49 ++++++++++ mre/mre_similar_tags_caps/test.md | 0 mre/mre_similar_tags_caps/test.md.yaml | 2 + mre/mre_similar_tags_caps/test_with_caps.md | 0 mre/mre_similar_tags_caps/test_with_caps.md.yaml | 2 + .../baseball_bat.md | 0 .../baseball_bat.md.yaml | 2 + .../cricket_bat.md | 0 .../cricket_bat.md.yaml | 2 + .../gallery.yaml | 6 ++ .../readme.md | 105 +++++++++++++++++++++ .../winged_bat.md | 0 .../winged_bat.md.yaml | 2 + 20 files changed, 198 insertions(+) create mode 100644 mre/mre_only_subtraction_shows_others/berlin.md create mode 100644 mre/mre_only_subtraction_shows_others/berlin.md.yaml create mode 100644 mre/mre_only_subtraction_shows_others/gallery.yaml create mode 100644 mre/mre_only_subtraction_shows_others/paris.md create mode 100644 mre/mre_only_subtraction_shows_others/paris.md.yaml create mode 100644 mre/mre_only_subtraction_shows_others/readme.md create mode 100644 mre/mre_similar_tags_caps/gallery.yaml create mode 100644 mre/mre_similar_tags_caps/readme.md create mode 100644 mre/mre_similar_tags_caps/test.md create mode 100644 mre/mre_similar_tags_caps/test.md.yaml create mode 100644 mre/mre_similar_tags_caps/test_with_caps.md create mode 100644 mre/mre_similar_tags_caps/test_with_caps.md.yaml create mode 100644 mre/mre_tags_in_multiple_categories_not_correctly_filtered/baseball_bat.md create mode 100644 mre/mre_tags_in_multiple_categories_not_correctly_filtered/baseball_bat.md.yaml create mode 100644 mre/mre_tags_in_multiple_categories_not_correctly_filtered/cricket_bat.md create mode 100644 mre/mre_tags_in_multiple_categories_not_correctly_filtered/cricket_bat.md.yaml create mode 100644 mre/mre_tags_in_multiple_categories_not_correctly_filtered/gallery.yaml create mode 100644 mre/mre_tags_in_multiple_categories_not_correctly_filtered/readme.md create mode 100644 mre/mre_tags_in_multiple_categories_not_correctly_filtered/winged_bat.md create mode 100644 mre/mre_tags_in_multiple_categories_not_correctly_filtered/winged_bat.md.yaml 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 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 @@ +tags: +- 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 @@ +includedFiles: +- '*.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 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 @@ +tags: +- 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 @@ +# Minimal Reproducible Example + +A search query with only subtraction should show all the elements in the +gallery minus the subtracted elements. + +## Reproduction steps + +1. Search for `-france`. + +## Expected result + +`berlin.md` should appear in the results. + +## Actual result + +The search yields no result at all. + +## Version info + +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 @@ +includedFiles: +- '*.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 @@ +# Minimal Reproducible Example + +Having two or more similar tags which differ only in their casing results in +the lowercase variant to be inserted instead of the other ones. + +## Reproduction steps + +1. Type `Test` in the tag input box and press enter. + +## Expected result + +The tag `Test` (starting with a capital letter) should be added to the search +query. + +## Actual result + +The tag `test` (starting with a lower case letter) is instead added to the +search query. + +## Version info + +Bug present in ldgallery v2.2. + +--- + +Having two or more similar tags which differ only in their casing results in +unrequested insertions in the query. + +## Reproduction steps + +1. Type `test` in the tag input box and press enter. +2. Press the enter key or click on the "Search" button, + one or multiple times! + +## Expected result + +It should just search for items with the `test` tag and display the result. + +## Actual result + +The tag `Test` is added to the input field even though it was never requested. +Trying to search again results in more instances of `test` and `Test` to be +added to the search field. + +No result is found because the resulting "forced" search query is wrong. + +## Version info + +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 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 @@ +tags: +- 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 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 @@ +tags: +- 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 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 @@ +tags: +- 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 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 @@ +tags: +- 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 @@ +includedFiles: +- '*.md' + +tagCategories: +- animal +- 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 @@ +# 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. diff --git a/mre/mre_tags_in_multiple_categories_not_correctly_filtered/winged_bat.md b/mre/mre_tags_in_multiple_categories_not_correctly_filtered/winged_bat.md new file mode 100644 index 0000000..e69de29 diff --git a/mre/mre_tags_in_multiple_categories_not_correctly_filtered/winged_bat.md.yaml b/mre/mre_tags_in_multiple_categories_not_correctly_filtered/winged_bat.md.yaml new file mode 100644 index 0000000..04a6cc6 --- /dev/null +++ b/mre/mre_tags_in_multiple_categories_not_correctly_filtered/winged_bat.md.yaml @@ -0,0 +1,2 @@ +tags: +- animal:bat -- cgit v1.2.3