Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Refactoring the seeded user objects to be easily maintained #893

Merged
merged 1 commit into from
Sep 9, 2015

Conversation

lirantal
Copy link
Member

@lirantal lirantal commented Sep 7, 2015

No description provided.

@lirantal lirantal self-assigned this Sep 7, 2015
@lirantal lirantal added this to the 0.4.2 milestone Sep 7, 2015
@mleanos
Copy link
Member

mleanos commented Sep 7, 2015

LGTM

roles: ['user']
});
seedUser.password = password;
var user = new User(seedUser);
Copy link
Member

Choose a reason for hiding this comment

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

Why do you add one here when one is removed?

Copy link
Member Author

Choose a reason for hiding this comment

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

I didn't make that change, that's part of the original code for the seeding.
IIRC it is removing any existing user and adding a new one so you can gain access to it, and it's only happening when you're on dev/test.

Copy link
Member

Choose a reason for hiding this comment

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

Yeah okay I missed the brace..

Copy link
Member Author

Choose a reason for hiding this comment

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

Cool

@lirantal
Copy link
Member Author

lirantal commented Sep 8, 2015

Looks like we're good. If no one has anything else to add I'll merge so I can keep working on updates for the seed functionality and testing it.

@trainerbill
Copy link
Contributor

LGTM. We should merge #801 as well.

@codydaig
Copy link
Member

codydaig commented Sep 8, 2015

LGTM

lirantal added a commit that referenced this pull request Sep 9, 2015
Refactoring the seeded user objects to be easily maintained
@lirantal lirantal merged commit fba6eb7 into meanjs:master Sep 9, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants