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

Add uniquenames for mailing_name, mailing_job_status #15652

Merged
merged 1 commit into from
Oct 29, 2019

Conversation

eileenmcnaughton
Copy link
Contributor

Add unique names to the schema for mailing_name & mailing_job_status. Affects advanced search code quality. Otherwise OK

Before

No uniquenames

After

Uniquenames

Technical Details

This is in support of #15369

Where the names in the search do not match the 'real names' we have 2 techniques

  1. where adding a unique name to the schema gives a match we do that - here that is
    the case for mailing_name
  2. otherwise we ensure the schema has a unique name if appropriate &
    rename the field in the upgrade script

In this case when we look at CRM_Mailing_BAO_Query we don't see mailing_name
as present (only mailing_id which should be an entity reference field). However it
is used in the confusingly-not-related Mailing search so lets rename this
one at the same time.

Comments

This is in support of civicrm#15369

Where the names in the search do not match the 'real names' we have 2 techniques

1) where adding a unique name to the schema gives a match we do that - here that is
the case for mailing_name
2) otherwise we ensure the schema has a unique name if appropriate &
rename the field in the upgrade scriptt

In this case when we look at CRM_Mailing_BAO_Query we don't see mailing_name
as present (only mailing_id which should be an entity reference field). However it
is used in the confusingly-not-related Mailing search so lets rename this
one at the same time.
@civibot
Copy link

civibot bot commented Oct 29, 2019

(Standard links)

@seamuslee001
Copy link
Contributor

Looks right to me merge on pass

@seamuslee001 seamuslee001 merged commit 9ff9191 into civicrm:master Oct 29, 2019
@seamuslee001 seamuslee001 deleted the schema branch October 29, 2019 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants