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

business registry contacts - endpoints for send status of contacts and receive confirmation #2309

Merged
merged 2 commits into from
Mar 25, 2022

Conversation

OlegPhenomenon
Copy link
Contributor

No description provided.

@viezly
Copy link

viezly bot commented Mar 11, 2022

Changes preview:

Legend:

👀 Review pull request on Viezly

@OlegPhenomenon OlegPhenomenon force-pushed the confirmation-dialog-box-for-update-companies-contacts branch 4 times, most recently from dafc6b9 to 7d3390e Compare March 11, 2022 10:46
@OlegPhenomenon OlegPhenomenon force-pushed the confirmation-dialog-box-for-update-companies-contacts branch from 7d3390e to db012dd Compare March 23, 2022 12:10
@vohmar vohmar requested a review from maricavor March 24, 2022 10:13
Copy link
Contributor

@maricavor maricavor left a comment

Choose a reason for hiding this comment

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

Is structure.sql ok?
small remark about checking contacts:


counter = 0
companies.each do |company|
contacts = Contact.where(ident: company.registration_number, ident_country_code: 'EE')
Copy link
Contributor

Choose a reason for hiding this comment

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

its better to use one Active Record query here, than iterations:
counter += Contact.where(ident: company.registration_number, ident_country_code: 'EE') .where('name != ?', company.company_name).size

@maricavor maricavor requested review from maricavor and removed request for maricavor March 24, 2022 11:38
@OlegPhenomenon OlegPhenomenon force-pushed the confirmation-dialog-box-for-update-companies-contacts branch from 52fa295 to 71655c4 Compare March 25, 2022 10:29
@vohmar vohmar merged commit 9519c57 into master Mar 25, 2022
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.

3 participants