Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dev/core/-/issues/3786 💩 Matching by External / Contact ID always matches contacts with ID < 10 for Participant importer and possibly others because return params is not an array #24153

Merged
merged 1 commit into from
Aug 9, 2022

Conversation

agileware-justin
Copy link
Contributor

@agileware-justin agileware-justin commented Aug 4, 2022

Overview

Matching by External / Contact ID always matches contacts with ID < 10 for Participant importer and possibly others

This is due do an incorrectly replaced Error generation function in core commit 972906b (Merged for 5.51.0)

Steps to reproduce

  1. Create a CSV with a Contact External ID or Contact ID, Event Title, Registration Status
  2. Set up the import to match on Contact External ID or Contact ID
  3. Map the other fields
  4. Execute import

Error: Import will execute and create Participant records associated all with Contact ID: 1 or Contact ID: 2 (or another ID < ID:10). Not matching against the correct Contact ID.

Before

Cannot import Event Participants correctly. Participants are created but associated with the wrong Contact.

After

Can import Event Participants correctly. Participants are created and associated with the correct Contact.

Technical Details

Bug introduced due to recent refactor of import code,see core commit 972906b

Comments

This bug gets the 💩 icon because it took a very long time to track down and caused imports to fail, making a customer very unhappy 😬

Gitlab, https://lab.civicrm.org/dev/core/-/issues/3786

Agileware Ref: CIVICRM-2025

@civibot
Copy link

civibot bot commented Aug 4, 2022

(Standard links)

@civibot civibot bot added the master label Aug 4, 2022
@seamuslee001
Copy link
Contributor

@eileenmcnaughton

@eileenmcnaughton
Copy link
Contributor

We should target the rc for this one

…s with ID < 10 for Participant importer and possibly others because return params is not an array
@agileware-justin agileware-justin changed the title 💩 Matching by External / Contact ID always matches contacts with ID < 10 for Participant importer and possibly others because return params is not an array dev/core/-/issues/3786 💩 Matching by External / Contact ID always matches contacts with ID < 10 for Participant importer and possibly others because return params is not an array Aug 7, 2022
@agileware-fj
Copy link
Contributor

Just a note here that this PR and #24166 are neither redundant nor exclusive.

This change reverts breaking an interface that should have been frozen, the other removes an unnecessary operation on that interface – and also accounts for the breakage – where it's used in core.

@totten totten added the merge ready PR will be merged after a few days if there are no objections label Aug 8, 2022
@seamuslee001 seamuslee001 merged commit 1f08219 into civicrm:master Aug 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
master merge ready PR will be merged after a few days if there are no objections
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants