Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
F
Feature request
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 24
    • Issues 24
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Create a new issue
  • Issue Boards
  • Community
  • Feature request
  • Issues
  • #24

Closed
Open
Opened Feb 04, 2020 by ndavis@ndavis

api feature request for usability: filter out deleted contacts unless is_deleted = 1 in parameters

The title says it all... when pulling a contact by email, I should only get undeleted contacts. This is painful when something works fine on dev then you move it to stage, with a much bigger dataset that includes billions of deleted contacts, and everything breaks.

"where is_deleted=0" should be a part of all api calls unless you specifically indicate that you want deleted stuff.

$result = civicrm_api3('Email', 'get', [
  'sequential' => 1,
  'email' => "someuser@somedomain.org",
  'api.Contact.get' => [],
]);

returns all contacts with that email attached. By default it should only include contacts that aren't deleted.

Just a suggestion! No one is interested in deleted contacts unless they're removing them permanently or undeleting them.

To upload designs, you'll need to enable LFS and have admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: community/feature-request#24