Skip to content

Removed duplicate call to .first in upgrade task for migrating users … - #2715

Merged
briri merged 1 commit into
masterfrom
upgrade-patch
Oct 28, 2020
Merged

Removed duplicate call to .first in upgrade task for migrating users …#2715
briri merged 1 commit into
masterfrom
upgrade-patch

Conversation

@briri

@briri briri commented Oct 28, 2020

Copy link
Copy Markdown
Contributor

An issue with the v2_2 upgrade scripts was reporting that caused the migration of Users to Contributors to fail.

The User model's identifier_for method returns an instance of Identifier not a collection. This PR removes a call to &.first on the result from owner.identifier_for.

This PR's Brakeman checks will fail. It should probably be merged before the Rails 5 changes though

@briri
briri merged commit 3fdceea into master Oct 28, 2020
@briri
briri deleted the upgrade-patch branch October 28, 2020 16:06
portagenetwork pushed a commit to portagenetwork/roadmap that referenced this pull request Feb 24, 2022
Removed duplicate call to .first in upgrade task for migrating users …
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant