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

identity_id & unit_factor issue #1100

Merged
merged 14 commits into from Oct 5, 2017
Merged

identity_id & unit_factor issue #1100

merged 14 commits into from Oct 5, 2017

Conversation

loganfreeman
Copy link
Contributor

I updated the branch to v3.0.0 and recreated the pull request

@loganfreeman
Copy link
Contributor Author

I updated the pull request to include just the fixes for the identity_id and unit.

@loganfreeman loganfreeman changed the title Musc i18n mailer identity_id & unit_factor issue Aug 30, 2017
@@ -32,7 +32,7 @@ def associate_with_org_unit
identity = Identity.find identity_id

if rel_type == 'service_provider_organizational_unit'
if not oe.service_providers or (oe.service_providers and not oe.service_providers.map(&:id).include? identity_id)
if not oe.service_providers or (oe.service_providers and not oe.service_providers.map(&:identity_id).include? identity_id)
Copy link
Contributor

Choose a reason for hiding this comment

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

This is minor, but for efficiency, pluck(:identity_id) would be much more efficient since #map requires the objects to be returned from the database

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes. I changed map to pluck. and committed the changes

@loganfreeman
Copy link
Contributor Author

It is pluck(:identity_id). last commit is to correct that.

@Stuart-Johnson Stuart-Johnson changed the base branch from v3.0.0 to v3.0.0b September 19, 2017 15:42
@Stuart-Johnson
Copy link
Collaborator

@Stuart-Johnson Stuart-Johnson merged commit 0983c50 into sparc-request:v3.0.0b Oct 5, 2017
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.

None yet

7 participants