Page 1 of 1

Feature request: Improved cleanup for new species.

Posted: 23 Jun 2009, 10:23
by MatsP
Jools,

When you add a new species in a "hole" in the database, things go wrong because there are still data items "tied" to that species ID.

Specifically, two of the new species of Akysis added have "Tacutu" (Rio Branco tributary) as a distribution. Which of course is completely and utterly silly, as the fish is Asian.

Would it be possible to write a bit of code to automatically remove:
1. Common name.
2. Distribution data.
3. Synonyms.
(And anything else that uses species id or genus id)

[Or, you could just "Never reuse any number". I'm sure if I say that many enough times, you'll sooner or later agree ;) ]

--
Mats

Re: Feature request: Improved cleanup for new species.

Posted: 05 Jul 2009, 21:07
by Jools
If I just remove them, then I still have to write code to remove the associated records. Point taken mind you, this needs thought about (and also, associated "my cats" records too).

Cheers,

Jools

Re: Feature request: Improved cleanup for new species.

Posted: 06 Jul 2009, 13:22
by MatsP
Yes, "my cats" will of course have to be "dealt" with - I think it's fairly obvious when a species (e.g. a "cf ..." or "sp ...") is merged into another pre-existing species. It gets even more interesting when a species gets split - should there be a "warning, this species has been revised, please review your My Cats section for <genus> <species>" entry somewhere?

--
Mats

Re: Feature request: Improved cleanup for new species.

Posted: 06 Apr 2011, 18:39
by Jools
I think with this I am happy the way it works except perhaps that if a species is renamed, then a warning should show if it has any "attached" records, possibly even with links to change those.

My Cats (etc) should remain a manual change for the admins to deal with.

Jools

Re: Feature request: Improved cleanup for new species.

Posted: 01 May 2011, 23:22
by MatsP
So, when renaming a species, we should have a message saying:
This species has:
- There are X occurrence
- There are Y keepers.
- There are Z synonyms.

--
Mats

Re: Feature request: Improved cleanup for new species.

Posted: 17 Aug 2011, 14:55
by Jools
MatsP wrote:So, when renaming a species, we should have a message saying:
This species has:
- There are X occurrence
- There are Y keepers.
- There are Z synonyms.

--
Mats
Yes, and thinking about it, maybe even say what those are. I can see some circumstances where it should be maintained (such as an l-number getting described) and others not (the Platydoras and Amblydoras issue for example).

Jools