CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • A-team feedback - delete options for contacts
Pages: [1]

Author Topic: A-team feedback - delete options for contacts  (Read 980 times)

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
A-team feedback - delete options for contacts
October 06, 2010, 11:59:28 pm
Hi,

I just stuck up a really basic patch for how I expect hard deletes & soft-deletes will work in the API - ie. by adding a couple of $params options

'restore'
'skip_undelete'

I added 'restore' since it is a BAO option

http://issues.civicrm.org/jira/secure/ManageAttachments.jspa?id=20576

I guess we'll need to put the permissioning code & some tests around it before it can be made available?
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: A-team feedback - delete options for contacts
October 07, 2010, 12:19:28 am
Good stuff!!!! And yes, we would have to put the permission code in and write some unit tests. In the coming weeks I'll be updating the Tag and Activity API, I will add this hard&soft delete bit too.
Erik
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: A-team feedback - delete options for contacts
October 07, 2010, 01:10:08 am
Hi,

Did you check if the BAO tests the permissions for the hard delete/restore ?

Michal: if we can automate the tests on the users permissions on the unit test, we are going to screw up something at one point or another, that's too complex for a human brain ;(

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: A-team feedback - delete options for contacts
October 07, 2010, 11:56:04 am
Do hard & soft deletes apply to entities other than contact?
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: A-team feedback - delete options for contacts
October 07, 2010, 03:07:32 pm
not to my knowledge

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • A-team feedback - delete options for contacts

This forum was archived on 2017-11-26.