Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-20847

Support custom api with composite primary keys

    Details

    • Type: Improvement
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.7.23
    • Fix Version/s: 4.7.23
    • Component/s: None
    • Labels:
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      Developer Doc
    • Funding Source:
      Needs Funding
    • Verified?:
      No

      Description

      We currently support custom apis leveraging 'basic_get'. However,

      1) no unit testing for this as yet. In the past they broke when the entityTypes hook became mandatory

      2) I would like to support a composite primary key in custom api. This requires a small amount of change to core. The scenario where I am using a composite key is a high volume table  (currently around 24GB on peak days may grow by 1GB)  and where i want to use the key to leverage mysql for avoiding duplicates

        Attachments

          Activity

            People

            • Assignee:
              eileen Eileen McNaughton
              Reporter:
              eileen Eileen McNaughton
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: