mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
skip tutorial steps for sysadmin, user-1 and user-2 from generated sample data (#10387)
This commit is contained in:
@@ -399,8 +399,10 @@ func createUser(idx int, teamMemberships int, channelMemberships int, teamsAndCh
|
|||||||
nickname = fake.Company()
|
nickname = fake.Company()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Half of users skip tutorial
|
// sysadmin, user-1 and user-2 users skip tutorial steps
|
||||||
|
// Other half of users also skip tutorial steps
|
||||||
tutorialStep := "999"
|
tutorialStep := "999"
|
||||||
|
if idx > 2 {
|
||||||
switch rand.Intn(6) {
|
switch rand.Intn(6) {
|
||||||
case 1:
|
case 1:
|
||||||
tutorialStep = "1"
|
tutorialStep = "1"
|
||||||
@@ -409,6 +411,7 @@ func createUser(idx int, teamMemberships int, channelMemberships int, teamsAndCh
|
|||||||
case 3:
|
case 3:
|
||||||
tutorialStep = "3"
|
tutorialStep = "3"
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
teams := []app.UserTeamImportData{}
|
teams := []app.UserTeamImportData{}
|
||||||
possibleTeams := []string{}
|
possibleTeams := []string{}
|
||||||
|
|||||||
Reference in New Issue
Block a user