-
Notifications
You must be signed in to change notification settings - Fork 0
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
song links missing for T arcufolium #90
Comments
Thanks, fixed it. Again duplicate OTU with missing data. |
@MMCigliano this problem should be fixed on a higher level! I come across this problem frequently, without spending too much time searching, just everyday use! It should not be too difficult to design some control routines |
If TaxonPages always picked the OTU with the lowest number in case there are two or more coordinate OTUs this would be solved. But apparently much more complicated than it seems. And in Filter nomenclature could perhaps be integrated a filter for names with multiple OTUs. |
The duplicated OTU in question is deleted by now? I thought this problem was solved when TP searches started to exclude OTUs having non-blank Please hold on editing data next time an error like this appears so I can attempt analyzing the problem. |
As Klaus mentions it's easy to find more cases, for example there: TP shows OTU 926810, which is a duplicate lacking content, like OTU 926811. The correct one is OTU 850457. Currently the seven sound links are missing. |
For the record we will not implement logic that selects the first OTU by id as a solution, it's semantically particular to SFs, not all TW data. |
Nevertheless those morrisi examples should not appear except for the last one. However it is surprising that the higher numbered is marked valid. https://sfg.taxonworks.org/api/v1/otus/926810?project_token=3oerVKf82_196cIECvHYNg -> https://orthoptera.speciesfile.org/otus/926810/overview (full name is The [edit] Sorry, actually extra logic in TP to redirect to valid OTU using |
Debug against sandbox data with a huge grain of salt, best not to go down that rabit hole. Practice is better. |
The links above all point to production |
@LocoDelAssembly right, was referencing ^ |
And with previous OTU Klaus found, it was again a problem that the https://sfg-practice.taxonworks.org/api/v1/otus/autocomplete?project_token=3oerVKf82_196cIECvHYNg&having_taxon_name_only=true&term=Tympanophyllum+(Tympanophyllum)+arcufolium (thanks for sfg-practice reminder @mjy 😄) How this can be happening? |
SELECT DISTINCT ON (otus.id) otus.id, otus.name, otus.taxon_name_id, COALESCE(o2.id, otus.id) AS otu_valid_id
FROM "otus" LEFT JOIN
taxon_names t1 ON otus.taxon_name_id = t1.id LEFT JOIN
otus o2 ON t1.cached_valid_taxon_name_id = o2.taxon_name_id
WHERE "otus"."id" = :some_id Would it break something if the query favored
|
@LocoDelAssembly pointer to corresponding code? |
Probably not, but we can't assume there is anything special about the match, i.e. if we suddenly switched to the last match + some order then our result should be the same. If aggregating data is an issue then we need to resolve at the aggregation level. |
Two places, which if I'm not mistaken are not deciding what to show in autocomplete, only what to set as
The idea would be not redirecting the user if the selected OTU is a valid candidate already. |
http://orthoptera.archive.speciesfile.org/Common/basic/Taxa.aspx?TaxonNameID=1140042
The text was updated successfully, but these errors were encountered: