Feature request: Improved cleanup for new species.

For the discussion, definition and tracking of new features to the site.
Post Reply
User avatar
MatsP
Posts: 21038
Joined: 06 Oct 2004, 13:58
My articles: 4
My images: 28
My cats species list: 117 (i:33, k:0)
My aquaria list: 10 (i:8)
My BLogs: 4 (i:0, p:97)
Spotted: 187
Location 1: North of Cambridge
Location 2: England.

Feature request: Improved cleanup for new species.

Post 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
User avatar
Jools
Expert
Posts: 16151
Joined: 30 Dec 2002, 15:25
My articles: 198
My images: 948
My catfish: 237
My cats species list: 87 (i:237, k:1)
My BLogs: 7 (i:10, p:202)
My Wishlist: 23
Spotted: 450
Location 1: Middle Earth,
Location 2: Scotland
Interests: All things aquatic, Sci-Fi, photography and travel. Oh, and beer.
Contact:

Re: Feature request: Improved cleanup for new species.

Post 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
User avatar
MatsP
Posts: 21038
Joined: 06 Oct 2004, 13:58
My articles: 4
My images: 28
My cats species list: 117 (i:33, k:0)
My aquaria list: 10 (i:8)
My BLogs: 4 (i:0, p:97)
Spotted: 187
Location 1: North of Cambridge
Location 2: England.

Re: Feature request: Improved cleanup for new species.

Post 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
User avatar
Jools
Expert
Posts: 16151
Joined: 30 Dec 2002, 15:25
My articles: 198
My images: 948
My catfish: 237
My cats species list: 87 (i:237, k:1)
My BLogs: 7 (i:10, p:202)
My Wishlist: 23
Spotted: 450
Location 1: Middle Earth,
Location 2: Scotland
Interests: All things aquatic, Sci-Fi, photography and travel. Oh, and beer.
Contact:

Re: Feature request: Improved cleanup for new species.

Post 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
User avatar
MatsP
Posts: 21038
Joined: 06 Oct 2004, 13:58
My articles: 4
My images: 28
My cats species list: 117 (i:33, k:0)
My aquaria list: 10 (i:8)
My BLogs: 4 (i:0, p:97)
Spotted: 187
Location 1: North of Cambridge
Location 2: England.

Re: Feature request: Improved cleanup for new species.

Post 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
User avatar
Jools
Expert
Posts: 16151
Joined: 30 Dec 2002, 15:25
My articles: 198
My images: 948
My catfish: 237
My cats species list: 87 (i:237, k:1)
My BLogs: 7 (i:10, p:202)
My Wishlist: 23
Spotted: 450
Location 1: Middle Earth,
Location 2: Scotland
Interests: All things aquatic, Sci-Fi, photography and travel. Oh, and beer.
Contact:

Re: Feature request: Improved cleanup for new species.

Post 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
Post Reply

Return to “Suggestions, Feature Requests and Enhancements”