New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Distinct query results should be navigable #1464
Comments
How should this feature even work? |
Very good points. I was imagining the first occurrence of a duplicate record should be navigable and used for the record set. Perhaps whether it is random or not is unimportant since the use of this feature would be for summarizing information rather than a comprehensive export. |
IMO the back end should detect if there is a unique field in base table included in a distinct query. In that case it would include the ids to allow navigation since the unique field would cause each row to correspond to a single base table record. This would enable a work around by turning on distinct for Andy's pet peeve about the rows being duplicated due to undisplayed fields. Possibly we could make distinct be the default, because why would you ever want duplicates? Maybe there would be performance penalties. I'm not sure. From the Third Manifesto:
|
Assuming the same reason is involved, exporting to a CSV is not supported. This should be addressed if there is a solution to this problem. It would be great to see this in the future! It appears possible in Specify 6. Reported By: Corinna at CSIRO |
I don't think #1956 is related to this. |
This issue has been mentioned on Specify Community Forum. There might be relevant details there: https://discourse.specifysoftware.org/t/queries-7-7-4-cannot-click-records-when-distinct/820/2 |
When running a distinct query, can we mimic a distinct query using "GROUP BY" instead of "SELECT DISTINCT" and include the id in the query as a |
Will be fixed in: #4607 |
This issue is now moved into #4607 |
Describe the bug
Since record IDs are unique, when you are looking for distinct results, record IDs are not returned, and thus you can't link out to them.
There should be some correction to this behavior in the future if possible.
The text was updated successfully, but these errors were encountered: