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

Find email duplicates API #3828

Merged
merged 16 commits into from
Jan 4, 2018
Merged

Find email duplicates API #3828

merged 16 commits into from
Jan 4, 2018

Conversation

DawoudIO
Copy link
Contributor

@DawoudIO DawoudIO commented Dec 29, 2017

What's this PR do?

  • APIs for finding all email where are used in more than 1 field (email/work email/family email)

What Issues does it Close?

part of #3787

Test via

http://192.168.33.10/api/emails/duplicates

@ghost ghost assigned DawoudIO Dec 29, 2017
@ghost ghost added the In Review label Dec 29, 2017
@DawoudIO DawoudIO added this to the 2.9.4 milestone Dec 29, 2017
@DawoudIO DawoudIO changed the title Find email duplicates Find email duplicates API Dec 29, 2017
@ghost ghost assigned crossan007 Dec 30, 2017
Copy link
Contributor

@crossan007 crossan007 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please fix the SQL statement character case

function getEmailDupes(Request $request, Response $response, array $p_args)
{
$connection = Propel::getConnection();
$dupEmailsSQL = "select email from emails_duplicate;";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please make the SQL statements CAPITALIZED to keep with standard SQL convention.

@crossan007 crossan007 modified the milestones: 2.9.4, 2.10.0 Dec 30, 2017
@crossan007
Copy link
Contributor

This is for 2.10.0, since it has a DB script, correct?

@DawoudIO
Copy link
Contributor Author

correct, this is 2.10.0

@DawoudIO
Copy link
Contributor Author

looks like i missed adding to view on new install.. adding that back

@DawoudIO
Copy link
Contributor Author

DawoudIO commented Jan 2, 2018

in testing, I noticed our vagrant is running MySQL 5.7.20
while cloud9 is using 5.5.57

the way the create view is done does not work pre - MySQL 5.7.7

@DawoudIO
Copy link
Contributor Author

DawoudIO commented Jan 2, 2018

now it is ready

Copy link
Contributor

@crossan007 crossan007 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't publish your mailtrap key in the demo DB

Copy link
Contributor

@crossan007 crossan007 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok. It looks like these credentials were already in the demo DB before this PR, so I'll approve

@DawoudIO DawoudIO merged commit c74159e into master Jan 4, 2018
@DawoudIO DawoudIO deleted the feature/find-email-dups branch January 4, 2018 03:13
@ghost ghost removed the In Review label Jan 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants