From 6cf0d29fb80db1f834644009aab372c51bca413a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hern=C3=A1n=20Lucas=20Pereira?= Date: Tue, 7 Mar 2023 21:42:08 -0300 Subject: [PATCH 01/21] CHANGELOG amendment [skip ci] --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0cf4f0f217..2e3fba60e3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -32,6 +32,7 @@ This project does not yet adheres to [Semantic Versioning](https://semv [#3327]: https://github.com/SpeciesFileGroup/taxonworks/issues/3327 [#3326]: https://github.com/SpeciesFileGroup/taxonworks/issues/3326 [#3325]: https://github.com/SpeciesFileGroup/taxonworks/issues/3325 +[#3324]: https://github.com/SpeciesFileGroup/taxonworks/issues/3324 ## [0.31.0] - 2023-03-07 From ba86d348c4d49de080b2325b7e53872bdb802ee9 Mon Sep 17 00:00:00 2001 From: jlpereira Date: Wed, 8 Mar 2023 15:08:52 -0300 Subject: [PATCH 02/21] Fix #3332 --- CHANGELOG.md | 7 ++++++- lib/queries/taxon_name/filter.rb | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2e3fba60e3..6e6f078bf3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,11 @@ This project does not yet adheres to [Semantic Versioning](https://semv ## [unreleased] -\- +### Fixed + +- People filtering doesn't work on Filter nomenclature [#3332] + +[#3332]: https://github.com/SpeciesFileGroup/taxonworks/issues/3332 ## [0.31.1] - 2023-03-07 @@ -24,6 +28,7 @@ This project does not yet adheres to [Semantic Versioning](https://semv - Short URLs not working due to Ruby 3.2 incompatibility. ### Changed + - `/combinations/` redirects to `/taxon_names/` [#3328]: https://github.com/SpeciesFileGroup/taxonworks/issues/3328 diff --git a/lib/queries/taxon_name/filter.rb b/lib/queries/taxon_name/filter.rb index 816646f72c..0806d54395 100644 --- a/lib/queries/taxon_name/filter.rb +++ b/lib/queries/taxon_name/filter.rb @@ -278,7 +278,7 @@ def initialize(query_params) @parent_id = params[:parent_id] @rank = params[:rank] @sort = params[:sort] - @taxon_name_author_id = params[:taxon_name_author_ids] + @taxon_name_author_id = params[:taxon_name_author_id] @taxon_name_author_id_or = boolean_param(params, :taxon_name_author_id_or) @taxon_name_classification = params[:taxon_name_classification] || [] @taxon_name_id = params[:taxon_name_id] @@ -517,7 +517,7 @@ def taxon_name_author_id_facet ) e = c[:id].not_eq(nil) - f = c[:person_id].eq_any(taxon_name_author_ids) + f = c[:person_id].eq_any(taxon_name_author_id) b = b.where(e.and(f)) b = b.group(a['id']) From 846245f3fb0fc60990e15cc1578450c680550278 Mon Sep 17 00:00:00 2001 From: jlpereira Date: Wed, 8 Mar 2023 15:35:36 -0300 Subject: [PATCH 03/21] Fix #3333 --- CHANGELOG.md | 5 +++ .../filter/components/recursiveList.vue | 44 ++++++++++--------- 2 files changed, 28 insertions(+), 21 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6e6f078bf3..7059ca4e5d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,11 @@ This project does not yet adheres to [Semantic Versioning](https://semv - People filtering doesn't work on Filter nomenclature [#3332] +### Changed + +- Add nomenclature code to relationships and statuses labels in Filter nomenclature [#3333] + +[#3333]: https://github.com/SpeciesFileGroup/taxonworks/issues/3333 [#3332]: https://github.com/SpeciesFileGroup/taxonworks/issues/3332 ## [0.31.1] - 2023-03-07 diff --git a/app/javascript/vue/tasks/nomenclature/filter/components/recursiveList.vue b/app/javascript/vue/tasks/nomenclature/filter/components/recursiveList.vue index 81f0601731..567c3d09b9 100644 --- a/app/javascript/vue/tasks/nomenclature/filter/components/recursiveList.vue +++ b/app/javascript/vue/tasks/nomenclature/filter/components/recursiveList.vue @@ -2,20 +2,23 @@
  • + :key="key" + > + :object-list="item" + />
@@ -56,15 +59,15 @@ export default { sortable.sort((a, b) => { if (a[1][this.display] > b[1][this.display]) { - return 1; + return 1 } if (a[1][this.display] < b[1][this.display]) { - return -1; + return -1 } - return 0; + return 0 }) - sortable.forEach(item => { + sortable.forEach((item) => { sortableObject[item[0]] = item[1] }) @@ -73,29 +76,28 @@ export default { }, methods: { - selectItem (optionSelected) { + selectItem(optionSelected) { this.$emit('selected', optionSelected) }, - findExist (item) { - return this.created.find(element => element.type == item.type) + findExist(item) { + return this.created.find((element) => element.type == item.type) }, - isForThisRank (item) { + isForThisRank(item) { return item.valid_subject_ranks?.includes(this.taxon.rank_string) } } } - From 9fb9ca34e104e536a89e19a905dfbdf7054796f6 Mon Sep 17 00:00:00 2001 From: jlpereira Date: Wed, 8 Mar 2023 15:52:08 -0300 Subject: [PATCH 04/21] Fix #3334 --- CHANGELOG.md | 9 +++++++-- .../FacetBiologicalRelationship.vue | 9 +++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7059ca4e5d..27c928cd03 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,14 +7,19 @@ This project does not yet adheres to [Semantic Versioning](https://semv ## [unreleased] -### Fixed +# Added -- People filtering doesn't work on Filter nomenclature [#3332] +- All tab to biological relationships facet [#3334] ### Changed - Add nomenclature code to relationships and statuses labels in Filter nomenclature [#3333] +### Fixed + +- People filtering doesn't work on Filter nomenclature [#3332] + +[#3334]: https://github.com/SpeciesFileGroup/taxonworks/issues/3334 [#3333]: https://github.com/SpeciesFileGroup/taxonworks/issues/3333 [#3332]: https://github.com/SpeciesFileGroup/taxonworks/issues/3332 diff --git a/app/javascript/vue/components/Filter/Facets/BiologicalAssociation/FacetBiologicalRelationship.vue b/app/javascript/vue/components/Filter/Facets/BiologicalAssociation/FacetBiologicalRelationship.vue index ae52e1295c..bda32adcad 100644 --- a/app/javascript/vue/components/Filter/Facets/BiologicalAssociation/FacetBiologicalRelationship.vue +++ b/app/javascript/vue/components/Filter/Facets/BiologicalAssociation/FacetBiologicalRelationship.vue @@ -5,6 +5,9 @@