Allow right side of HostTaxon to be from any taxon tree #5697
Replies: 14 comments
-
How would I go about testing this? Does this involve the Host Taxon ID field in the CollectingEventAttribute table? |
Beta Was this translation helpful? Give feedback.
-
Find a database that has that plugin configured, or configure it (https://discourse.specifysoftware.org/t/create-the-host-taxon-id-field/737) After you verified that it works, remove Before removing |
Beta Was this translation helpful? Give feedback.
-
Everything works correctly when Furthermore, the Tested on: |
Beta Was this translation helpful? Give feedback.
-
Left Side:
Arthur Fungarium collection:
From what I understand, this should be searching the taxon tree in the Host collection:
|
Beta Was this translation helpful? Give feedback.
-
I can confirm @grantfitzsimmons findings in https://issue2675-issue-2675.test.specifysystems.org/specify/. |
Beta Was this translation helpful? Give feedback.
-
There is a complication here. Back-end query builder endpoint does not seem to support not-scoping the results - if front-end didn't tell it to scope results to some collection, it scopes them to current collection. To make it worse, if user does not have permission to some collections, query builder should theoretically only return results from the collections the user has access to, thus, it's not just a matter of disabling scoping completely. I don't know how high of a priority this issue is for the original requesting institution, but this is much larger in scope than we expected. I belive it's lower priority than the business rule improvements and other changes @melton-jason is doing right now. The simplest (though not very satisfying solution) would be to only allow HostTaxon to not be scoped to discipline for users that have read access to Taxon tree in all collections. In that case, we can just completely disable scoping for the query builder (easier than scoping to several collections) |
Beta Was this translation helpful? Give feedback.
-
If the requesting institution requires these changes, I wouldn't be against pursuing the 'simple' solution: disable scoping for the Query Builder. Do you mean de-scoping the Query Builder for this specific instance, or as a whole? |
Beta Was this translation helpful? Give feedback.
-
Just this case. Currently, query builder endpoint accepts a collection id. If it's not provided, it scopes to current collection - good, let's leave it like that as it's the most common case.
Not doing this
No. We talked about it. Conclusion: very hard, out of scope. not possible while we support sp6 |
Beta Was this translation helpful? Give feedback.
-
Ok, that is still a little work but infinitely more manageable! |
Beta Was this translation helpful? Give feedback.
-
Who requested this? |
Beta Was this translation helpful? Give feedback.
-
Don't know. Theresa would know |
Beta Was this translation helpful? Give feedback.
-
This should be fixed by #3431 once it is finished |
Beta Was this translation helpful? Give feedback.
-
I was not able to remove chrome_0lo0WmaOVD.mp4The original issue seems to be fixed but I'll leave this open for now as there is a lot of information in here and I imagine there is still some sort of underlying problem. |
Beta Was this translation helpful? Give feedback.
-
Currently, HostTaxon request explicitly specifying the Collection Relationship name.
Need to add support for omitting relationship name - which should be interpreted as right side being from any collection
Beta Was this translation helpful? Give feedback.
All reactions