josephlacey / com.jlacey.electoral

GNU Affero General Public License v3.0
6 stars 12 forks source link

Duplicate State District Records #5

Closed jimcrist closed 5 years ago

jimcrist commented 6 years ago

I'm using Open States API - Districts (Daily) Adds state representative districts to contacts API Entity: OpenStates API Action: districts

One of our supporters moved, so I deleted their state district records. Waited a day. The scheduled job ran. It created 4 records instead of two, duplicating the upper and lower chamber records. I see this a lot. When I bring up a CiviCRM contact record, often there are 4 records instead of two. How come? Thanks for your work on this! Jim

josephlacey commented 6 years ago

Hey Jim,

Yeah, duplicates are a known issue because of the way Civi's API handles custom data sets that allow multiple values. I've got some new funding to improve the extension, so I'll keep this mind while I'm working through the rewrite and see if I can fix it.

Joseph

josephlacey commented 5 years ago

Fixed by 4c4fc94360026f987cf68fc6eec6130db4968bee