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

Importer doesn't find team #16

Open
martinb3 opened this issue Jun 15, 2018 · 4 comments
Open

Importer doesn't find team #16

martinb3 opened this issue Jun 15, 2018 · 4 comments

Comments

@martinb3
Copy link

Hi there -- I'm using slackarchive and the importer, and I'm noticing this chunk of code always fails from importer.go:

	t := models.Team{}
	if err := i.db.Teams.FindId(team.ID).One(&t); err == nil {
		log.Debug("Team already exists: %s", t.ID)
	} else {
                // fails
		return nil, err
	}

What would create the team in the database? I can't find any team creation in the slackarchive or slackarchive-init projects.

@yanokwa
Copy link

yanokwa commented Jul 12, 2018

Are you still having this problem, @martinb3?

@noisymime
Copy link

Not OP, but I'm still seeing the same issue on one of my imports

@yanokwa
Copy link

yanokwa commented Jul 12, 2018

It sounds like some imports work and others don't. What's the difference between those imports?

@martinb3
Copy link
Author

Yes, I ended up locally modifying it to work around this problem. I still could never find any reason the team should exist in the database before the other import steps. I suspect this line is fine on an existing import, but was never tested on an empty database.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants