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

Fix mock migration #7

Merged
merged 9 commits into from
Apr 9, 2017
Merged

Fix mock migration #7

merged 9 commits into from
Apr 9, 2017

Conversation

nazavode
Copy link
Member

@nazavode nazavode commented Apr 9, 2017

Misc fixes to have mock migration working. Now users, namespace and project will be created if not already present in GitLab database.

@nazavode nazavode merged commit 751e23b into master Apr 9, 2017
@nazavode nazavode added this to Backlog in First usable release Apr 9, 2017
@nazavode nazavode moved this from Backlog to Done in First usable release Apr 9, 2017
@glensc
Copy link
Member

glensc commented Apr 10, 2017

regarding users creation, do they get email sent out? and what is their initial state? active? blocked?

as if i created (disabled) users manually i encountered such issue:
https://gitlab.com/gitlab-org/gitlab-ce/issues/17487

as if i'm importing i will have lots of dead users whose accounts need to be created and their accounts disabled. meaning also that the emails the users have are already invalid.

project = project_name.strip()
if not project:
raise ValueError('invalid project name: {!r}'.format(project_name))
namespace, project = split_project_components(project)
Copy link
Member

Choose a reason for hiding this comment

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

gitlab 9 has nested groups support! this may break if enabled.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks, I was not aware of nested groups, I have to figure out how are they stored in the database schema, I'm going to try with GitLab 9.0.0...

@nazavode
Copy link
Member Author

About users creation, I still have to figure out how to handle it gracefully, but for an initial release I was thinking about creating accounts in 'active' state and sending out simple notification emails just to inform the user an account has been created, of course at the first login he must go through a password reset procedure since I don't want to send generated passwords around.

@glensc
Copy link
Member

glensc commented Apr 10, 2017

i want users be created with state = blocked; type = external user. so perhaps make it configurable. altho i planned to create all missing users manually, until i saw you implemented user creation from the tool itself.

and if using database direct mode, then likely the users will be created silently (no mails being sent out). i.e the gitlab bug i referred does not apply.

@nazavode
Copy link
Member Author

@glensc opened #15 for this, makes a lot of sense to me

@nazavode nazavode deleted the dev branch April 10, 2017 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants