Skip to content

GitLab

  • Menu
    • Projects Groups Snippets
      Help
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Merge requests
  • !7211

Merged
Created 10 years ago by Administrator@rootOwner

Add users with deterministic username and password to development seed.

  • Overview 23
  • Commits 1
  • Changes 1

Created by: cirosantilli

While developing, I want to see the system from the point of view of multiple users (often one on each browser).

Like https://github.com/gitlabhq/gitlabhq/pull/5896, but that was declined because of the option, so no option here. Also this touches only users.

This is worth even without an option.

  • we develop much more often than we take screenshots
  • given enough faker users, the predictable ones will disappear
Loading
Loading

  • Administrator
    Administrator @root · 10 years ago
    Owner

    Created by: TeatroIO

    I've prepared a stage. Click to open.

    By Administrator on 2014-06-26T22:08:41 (imported from GitLab project)

  • Administrator
    Administrator @root started a thread on commit 57fddea8 10 years ago
    db/fixtures/development/05_users.rb
    14 14 end
    15 15 end
    16
    17 (1..5).each do |i|
    18 begin
    19 User.seed(:id, [
    20 id: i + 10,
    21 username: "user#{i}",
    22 name: "User #{i}",
    23 email: "user#{i}@example.com",
    24 confirmed_at: DateTime.now,
    25 password: '12345678'
    26 ])
    27 print '.'
    28 rescue ActiveRecord::RecordNotSaved
    29 print 'F'
    • Administrator
      Administrator @root · 10 years ago
      Owner

      Created by: houndci-bot

      Do not write to stdout. Use Rails' logger if you want to log.

      By Administrator on 2014-09-01T11:48:43 (imported from GitLab project)

  • Administrator
    Administrator @root started a thread on commit 57fddea8 10 years ago
    db/fixtures/development/05_users.rb
    13 13 print 'F'
    14 14 end
    15 15 end
    16
    17 (1..5).each do |i|
    18 begin
    19 User.seed(:id, [
    20 id: i + 10,
    • Administrator
      Administrator @root · 10 years ago
      Owner

      Created by: houndci-bot

      Use 2 spaces for indentation in a hash, relative to the first position after the preceding left parenthesis.

      By Administrator on 2014-09-01T11:48:43 (imported from GitLab project)

  • Administrator
    Administrator @root started a thread on commit 57fddea8 10 years ago
    db/fixtures/development/05_users.rb
    13 13 print 'F'
    14 14 end
    15 15 end
    16
    17 (1..5).each do |i|
    18 begin
    19 User.seed(:id, [
    20 id: i + 10,
    21 username: "user#{i}",
    22 name: "User #{i}",
    23 email: "user#{i}@example.com",
    24 confirmed_at: DateTime.now,
    25 password: '12345678'
    26 ])
    27 print '.'
    • Administrator
      Administrator @root · 10 years ago
      Owner

      Created by: houndci-bot

      Do not write to stdout. Use Rails' logger if you want to log.

      By Administrator on 2014-09-01T11:48:43 (imported from GitLab project)

  • Administrator
    Administrator @root started a thread on commit 57fddea8 10 years ago
    db/fixtures/development/05_users.rb
    13 13 print 'F'
    14 14 end
    15 15 end
    16
    17 (1..5).each do |i|
    18 begin
    19 User.seed(:id, [
    20 id: i + 10,
    • Administrator
      Administrator @root · 10 years ago
      Owner

      Created by: houndci-bot

      Use 2 spaces for indentation in an array, relative to the start of the line where the left bracket is.

      By Administrator on 2014-09-01T11:48:43 (imported from GitLab project)

  • Administrator
    Administrator @root started a thread on commit 57fddea8 10 years ago
    db/fixtures/development/05_users.rb
    13 13 print 'F'
    14 14 end
    15 15 end
    16
    17 (1..5).each do |i|
    18 begin
    19 User.seed(:id, [
    20 id: i + 10,
    21 username: "user#{i}",
    22 name: "User #{i}",
    23 email: "user#{i}@example.com",
    24 confirmed_at: DateTime.now,
    25 password: '12345678'
    26 ])
    27 print '.'
    28 rescue ActiveRecord::RecordNotSaved
    • Administrator
      Administrator @root · 10 years ago
      Owner

      Created by: houndci-bot

      Do not write to stdout. Use Rails' logger if you want to log.

      By Administrator on 2014-09-01T11:48:43 (imported from GitLab project)

  • Administrator
    Administrator @root started a thread on commit 57fddea8 10 years ago
    db/fixtures/development/05_users.rb
    15 15 end
    16
    17 (1..5).each do |i|
    18 begin
    19 User.seed(:id, [
    20 id: i + 10,
    21 username: "user#{i}",
    22 name: "User #{i}",
    23 email: "user#{i}@example.com",
    24 confirmed_at: DateTime.now,
    25 password: '12345678'
    26 ])
    27 print '.'
    28 rescue ActiveRecord::RecordNotSaved
    29 print 'F'
    30 end
    • Administrator
      Administrator @root · 10 years ago
      Owner

      Created by: houndci-bot

      Do not write to stdout. Use Rails' logger if you want to log.

      By Administrator on 2014-09-01T11:48:43 (imported from GitLab project)

  • Administrator
    Administrator @root started a thread on commit 57fddea8 10 years ago
    db/fixtures/development/05_users.rb
    13 13 print 'F'
    14 14 end
    15 15 end
    16
    17 (1..5).each do |i|
    18 begin
    19 User.seed(:id, [
    20 id: i + 10,
    21 username: "user#{i}",
    22 name: "User #{i}",
    23 email: "user#{i}@example.com",
    24 confirmed_at: DateTime.now,
    25 password: '12345678'
    26 ])
    27 print '.'
    • Administrator
      Administrator @root · 10 years ago
      Owner

      Created by: houndci-bot

      Do not write to stdout. Use Rails' logger if you want to log.

      By Administrator on 2014-09-01T11:48:43 (imported from GitLab project)

  • Administrator
    Administrator @root started a thread on commit 57fddea8 10 years ago
    db/fixtures/development/05_users.rb
    14 14 end
    15 15 end
    16
    17 (1..5).each do |i|
    18 begin
    19 User.seed(:id, [
    20 id: i + 10,
    21 username: "user#{i}",
    22 name: "User #{i}",
    23 email: "user#{i}@example.com",
    24 confirmed_at: DateTime.now,
    25 password: '12345678'
    26 ])
    27 print '.'
    28 rescue ActiveRecord::RecordNotSaved
    29 print 'F'
    • Administrator
      Administrator @root · 10 years ago
      Owner

      Created by: houndci-bot

      Do not write to stdout. Use Rails' logger if you want to log.

      By Administrator on 2014-09-01T11:48:43 (imported from GitLab project)

  • Administrator
    Administrator @root · 10 years ago
    Owner

    Created by: cirosantilli

    Shall I ignore the "do not write to stdout" warning as it is used everywhere else?

    By Administrator on 2014-06-26T22:17:30 (imported from GitLab project)

  • Administrator
    Administrator @root · 10 years ago
    Owner

    Created by: jvanbaarsen

    @cirosantilli Yeah I think that would be ok for now

    By Administrator on 2014-07-25T20:34:25 (imported from GitLab project)

  • Administrator
    Administrator @root · 10 years ago
    Owner

    Created by: jvanbaarsen

    I mark this one as ready to merge. But I think @randx has to make a final decision about what he thinks about this.

    By Administrator on 2014-07-25T20:35:04 (imported from GitLab project)

  • Administrator
    Administrator @root started a thread on commit 57fddea8 10 years ago
    db/fixtures/development/05_users.rb
    13 13 print 'F'
    14 14 end
    15 15 end
    16
    17 (1..5).each do |i|
    18 begin
    19 User.seed(:id, [
    20 id: i + 10,
    • Administrator
      Administrator @root · 10 years ago
      Owner

      Created by: dzaporozhets

      please change to i + 20.

      By Administrator on 2014-09-01T11:48:43 (imported from GitLab project)

  • Administrator
    Administrator @root started a thread on commit 57fddea8 10 years ago
    db/fixtures/development/05_users.rb
    13 13 print 'F'
    14 14 end
    15 15 end
    16
    17 (1..5).each do |i|
    18 begin
    19 User.seed(:id, [
    20 id: i + 10,
    21 username: "user#{i}",
    22 name: "User #{i}",
    23 email: "user#{i}@example.com",
    24 confirmed_at: DateTime.now,
    25 password: '12345678'
    • Administrator
      Administrator @root · 10 years ago
      Owner

      Created by: dzaporozhets

      lets use something easier. like 12345678

      By Administrator on 2014-09-01T11:48:43 (imported from GitLab project)

  • Administrator
    Administrator @root started a thread on commit 57fddea8 10 years ago
    db/fixtures/development/05_users.rb
    13 13 print 'F'
    14 14 end
    15 15 end
    16
    17 (1..5).each do |i|
    18 begin
    19 User.seed(:id, [
    20 id: i + 10,
    21 username: "user#{i}",
    22 name: "User #{i}",
    23 email: "user#{i}@example.com",
    24 confirmed_at: DateTime.now,
    25 password: '12345678'
    • Administrator
      Administrator @root · 10 years ago
      Owner

      Created by: houndci-bot

      Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.

      By Administrator on 2014-09-01T11:48:43 (imported from GitLab project)

  • Administrator
    Administrator @root · 10 years ago
    Owner

    Created by: cirosantilli

    Updated the points. Out of curiosity: why start at 20? To leave head room for more users?

    By Administrator on 2014-08-13T14:30:39 (imported from GitLab project)

  • Administrator
    Administrator @root · 10 years ago
    Owner

    Created by: dzaporozhets

    @cirosantilli it was my mistake. I though seed above use i + 10. But it uses just i :)

    By Administrator on 2014-09-01T11:30:02 (imported from GitLab project)

  • Administrator
    Administrator @root started a thread on commit 57fddea8 10 years ago
    db/fixtures/development/05_users.rb
    13 13 print 'F'
    14 14 end
    15 15 end
    16
    17 (1..5).each do |i|
    18 begin
    19 User.seed(:id, [
    20 id: i + 10,
    21 username: "user#{i}",
    22 name: "User #{i}",
    23 email: "user#{i}@example.com",
    • Administrator
      Administrator @root · 10 years ago
      Owner

      Created by: dzaporozhets

      I suggest we use example.com

      By Administrator on 2014-09-01T11:48:43 (imported from GitLab project)

  • Administrator
    Administrator @root started a thread on commit 57fddea8 10 years ago
    db/fixtures/development/05_users.rb
    13 13 print 'F'
    14 14 end
    15 15 end
    16
    17 (1..5).each do |i|
    18 begin
    19 User.seed(:id, [
    20 id: i + 10,
    21 username: "user#{i}",
    22 name: "User #{i}",
    23 email: "user#{i}@example.com",
    24 confirmed_at: DateTime.now,
    25 password: '12345678'
    26 ])
    27 print '.'
    • Administrator
      Administrator @root · 10 years ago
      Owner

      Created by: houndci-bot

      Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.

      By Administrator on 2014-09-01T11:48:43 (imported from GitLab project)

  • Administrator
    Administrator @root started a thread on commit 57fddea8 10 years ago
    db/fixtures/development/05_users.rb
    14 14 end
    15 15 end
    16
    17 (1..5).each do |i|
    18 begin
    19 User.seed(:id, [
    20 id: i + 10,
    21 username: "user#{i}",
    22 name: "User #{i}",
    23 email: "user#{i}@example.com",
    24 confirmed_at: DateTime.now,
    25 password: '12345678'
    26 ])
    27 print '.'
    28 rescue ActiveRecord::RecordNotSaved
    29 print 'F'
    • Administrator
      Administrator @root · 10 years ago
      Owner

      Created by: houndci-bot

      Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.

      By Administrator on 2014-09-01T11:48:43 (imported from GitLab project)

  • Administrator
    Administrator @root started a thread on commit 57fddea8 10 years ago
    db/fixtures/development/05_users.rb
    13 13 print 'F'
    14 14 end
    15 15 end
    16
    17 (1..5).each do |i|
    18 begin
    19 User.seed(:id, [
    20 id: i + 10,
    21 username: "user#{i}",
    22 name: "User #{i}",
    23 email: "user#{i}@example.com",
    • Administrator
      Administrator @root · 10 years ago
      Owner

      Created by: cirosantilli

      Agreed.

      By Administrator on 2014-09-01T11:49:03 (imported from GitLab project)

  • Administrator
    Administrator @root · 10 years ago
    Owner

    Created by: cirosantilli

    Updated.

    By Administrator on 2014-09-01T11:49:11 (imported from GitLab project)

  • Administrator
    Administrator @root · 10 years ago
    Owner

    Created by: dzaporozhets

    @cirosantilli thank you

    By Administrator on 2014-09-03T10:56:48 (imported from GitLab project)

  • You're only seeing other activity in the feed. To add a comment, switch to one of the following options.
Please register or sign in to reply
0 Assignees
Assign to
0 Reviewers
Request review from
Milestone
No milestone
None
None
Time tracking
1
Labels
Ready for Merge
Assign labels
  • No matching results
  • Manage project labels
Lock merge request
Unlocked
participants
Reference:
Source branch: github/fork/cirosantilli/predictable-user

    0 pending comments

Menu

Projects Groups Snippets
Help