Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Urgent: Issue with new combination and junior synonyms #156
Comments
jonkerz
added the
high-priority
label
May 27, 2016
|
@flaviaesteves I'll look into it right now. |
|
I've tracked it down do this line: https://github.com/calacademy-research/antcat/blob/69e4f57686ff2cf0aecad2823fb6d7b35e2a2cdc/app/models/taxa/save_taxon.rb#L65 It's actually an old issue predating my first commit, but it only happens whenever * I think it's always possible to tell if this is the case by looking at the URL; in the video go to 1:58 and you'll see "new?parent_id=464151&previous_combination_id=432409&rank_to_create=species" in the URL. I'll not have time to work on this but here is a pseudo-Cucumber test: # Setup species + junior synoym + another species that has the same epithet (to create a name clash)
Given there is a species "Lasius clarki"
And there is a junior synonym of "Lasius clarki" named "Lasius synonymus"
And there is a species "Formica clarki"
# Setup taxonomic history items
And "Lasius clarki" has a taxonomic history item "Senior synonym of another species"
And "Lasius synonymus" has a taxonomic history item "Junior synonym of another species"
When I go to the edit page for "Lasius clarki"
And I press "Parent"
And I change the parent to "Formica" (from "Lasius")
And I press "Yes, create new combination"
And I press "Save"
# Check that "Lasius clarki"'s history item was moved
# When I go to the edit page for <the most recent "Formica clarki" / ex "Lasius clarki"> <-- this will have a new id; you will already be on this page after pressing save, so this step is not required
Then I should see 1 taxonomic history item
Then I should see "Junior synonym of another species"
# Go to the old "Lasius clarki" page and check that there are no history items
# Check that "Lasius synonymus"'s history item was not moved
When I go to "Lasius synonymus"
Then I should see 1 taxonomic history item |
flaviaesteves
commented
May 29, 2016
|
Thanks @jonkerz, hope you can reproduce and fix it. |
bpescador
commented
Jul 12, 2017
|
@jonkerz Phil, Flavia and I are having an AntCat meeting and the above issue came up as a high priority. Have you any insights yet on how to move this forward? |
flaviaesteves commentedMay 27, 2016
•
edited
Hello,
If the species name being combined is a senior synonym of another species, something strange is happening, and it did not happen before.
The correct and ideal situation would be: The junior synonym is also combined to the new genus name, but it has to keep its taxonomic history (and it cannot be added to the history of the senior name), and it will still be a junior synonym of he senior name.
For a video that contains an example of the issue, click on: https://www.dropbox.com/s/428vgie4xyx8j9l/AntCat_issues%20with%20new%20combinations.mov?dl=0
Thanks!