delete record from db vs mark as deleted

Are you missing a feature in Group-Office. You can always try to request it!

Moderator: Developers

peteinlux
Posts: 71
Joined: Tue Dec 09, 2008 10:03 pm

delete record from db vs mark as deleted

Postby peteinlux » Thu Oct 08, 2009 9:54 am

just a thought, not sure if it was mentioned:

whenever an entity, say a contact is deleted, all of its associated data is also removed from the database. if accidental deletion takes place, we must rely on a backup. this could be problematic due to a number of other changes made to the database concurrently.

what if we added a 'deleted' field on each table and simply omitted those records in normal every day queries?

thus, if a need arose to recover a lost entity, the db administrator would simply have to uncheck the deleted state and on the records and all of its relations. there could be some type of a trash folder where all removed entities could be controlled and with a click "recovered". following on this thought, i would imagine that every class implemented some kind of a recover function which accepted only id as an argument

best
mbach
Posts: 75
Joined: Fri Apr 17, 2009 2:13 pm

Re: delete record from db vs mark as deleted

Postby mbach » Tue Dec 08, 2009 4:08 pm

This is one of the best suggestions, I read here for the last months!!!

At the moment you just can restrict a user, whether to read or to write to an item like tasks or projects.
But there is no possibility to permit "deletion" of an object.
I think, especially because of legal requirements, it is absolutely necessary to keep old recors, tasks, emails and notes of a contact/company. Therefore an archinving function of deleted records is an urgently needed "must have"!
At the moment I do not see a possibility to solve that problem with the standard features we have in GO/GO Pro.

Maybe, as a further suggestion, there should be a "comment of deletion" and maybe a "type of deletion" (e.g. D01 - no client any more) for further search in archive and to make clear, why the user deleted an item (contact, company, task, project, bill etc.).
The archiving funcion should be sortable by type (contact, company, tasks, projects...), by user (who deleted), by date (when deleted) and by reason ("type of deletion"). Of course there should be an "unarchive function" to recover the deleted entry.

To keep the database small(er) there should be an export function to export complete archived information of a year to a file for backup purposes. And of course a reimport should be there, that works... ;-), if you need that for legal purposes somewhere in the future.

You think now, that I am working in a legal company? Sorry for that - no! All companies in Europe do have those legal bindings for archiving business activity. The time for documentation varies between 3 and 10 years depending on the type of information and the country you live in.

Cheers, Markus
mbach
Posts: 75
Joined: Fri Apr 17, 2009 2:13 pm

Re: delete record from db vs mark as deleted

Postby mbach » Tue Dec 15, 2009 10:11 pm

Has anyone a good idea/opinion to the mentioned feature???

Cheers, Markus
Papageno
Posts: 58
Joined: Tue Jun 30, 2009 9:18 am

Re: delete record from db vs mark as deleted

Postby Papageno » Tue Jan 26, 2010 8:31 am

Has anyone a good idea/opinion to the mentioned feature???
Yes, It could also be a function like Undo which may work on all modules and inputs :roll:
But I don't know if this is a good idea/opinion :mrgreen:

Best Regards
Hans
mbach
Posts: 75
Joined: Fri Apr 17, 2009 2:13 pm

Re: delete record from db vs mark as deleted

Postby mbach » Tue Jan 26, 2010 1:52 pm

Hi Hans,

IMHO every idea, which leads to a better product is a good idea!!! :D

But with your suggestion I think only an UNDO is a little bit too... hmm - not enough!
With an undo you normally "un do" a just made mistake. But with an archive function you can go back for - sometimes - several years.

But I think an UNDO-function would be a fast and easy integration for the daily use of a standard user.

BTW, thanks for sharing your idea!!!


Cheers, Markus
gregoire
Posts: 137
Joined: Thu Jan 15, 2009 11:40 am

Re: delete record from db vs mark as deleted

Postby gregoire » Tue Jan 26, 2010 2:24 pm

I agree. Deleting should not lead to total deletion.
Maybe tombstoning (not being able to edit but still visible/greyed out) would be an idea too. You could then still do a search and add a parameter to include tombstones or not for instance.
Papageno
Posts: 58
Joined: Tue Jun 30, 2009 9:18 am

Re: delete record from db vs mark as deleted

Postby Papageno » Fri Jan 29, 2010 1:13 pm

I think it could be made like in billing or tasks or procets. There it is possible to select the range of view. Then just one additional field is required. Total deletion should only be possible for specified administrators (in big installations).

Best Regards
Hans

Who is online

Users browsing this forum: No registered users and 1 guest

cron