From a98c1231c1caf3f70b295faeb942106bb4a03c2f Mon Sep 17 00:00:00 2001 From: Matthias Bernt Date: Wed, 29 Apr 2020 12:31:19 +0200 Subject: [PATCH] fix docs & add test for discover_datasets sort_by - order of sort_comp and sort_by was wrong for sort_by in collections - sort_by was missing for data output - adds a test (though we can't check the generated order .. I manually tested with `planemo serve`) --- lib/galaxy/tool_util/xsd/galaxy.xsd | 7 +++++- test/functional/tools/discover_sort_by.xml | 26 ++++++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 test/functional/tools/discover_sort_by.xml diff --git a/lib/galaxy/tool_util/xsd/galaxy.xsd b/lib/galaxy/tool_util/xsd/galaxy.xsd index f160a1dd22ae..22fe634f3aef 100644 --- a/lib/galaxy/tool_util/xsd/galaxy.xsd +++ b/lib/galaxy/tool_util/xsd/galaxy.xsd @@ -4214,6 +4214,11 @@ More information can be found on Planemo's documentation for Format (or datatype) of discovered datasets (an alias with ``format``). + + + A string `[reverse_][SORT_COMP_]SORTBY` describing the desired sort order of the collection elements. `SORTBY` can be `filename`, `name`, `designation`, `dbkey` and the optional `SORT_COMP` can be either `lexical` or `numeric`. Default is lexical sorting by filename. + + Indication if this dataset is visible in output history. This defaults to ``false``, but probably shouldn't - be sure to set to ``true`` if that is your intention. @@ -4269,7 +4274,7 @@ Galaxy, including: - A string `[reverse_]SORTBY[_SORT_COMP]` describing the desired sort order of the collection elements. `SORTBY` can be `filename`, `name`, `designation`, `dbkey` and the optional `SORT_COMP` can be either `lexical` or `numeric`. Default is lexical sorting by filename. + A string `[reverse_][SORT_COMP_]SORTBY` describing the desired sort order of the collection elements. `SORTBY` can be `filename`, `name`, `designation`, `dbkey` and the optional `SORT_COMP` can be either `lexical` or `numeric`. Default is lexical sorting by filename. diff --git a/test/functional/tools/discover_sort_by.xml b/test/functional/tools/discover_sort_by.xml new file mode 100644 index 000000000000..726b8203b931 --- /dev/null +++ b/test/functional/tools/discover_sort_by.xml @@ -0,0 +1,26 @@ + + + mkdir outputs; cd outputs; awk '{ print \$2 > (\$1 ".tabular") }' $input1 + + + + + + + + + + + + + + + + + + + + + + +