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

User.name is nil sometimes #44

Open
sudara opened this issue Oct 2, 2019 · 0 comments
Open

User.name is nil sometimes #44

sudara opened this issue Oct 2, 2019 · 0 comments

Comments

@sudara
Copy link
Member

sudara commented Oct 2, 2019

irb(main):002:0> Job.last
  Job Load (0.3ms)  SELECT "jobs".* FROM "jobs" ORDER BY "jobs"."id" DESC LIMIT $1  [["LIMIT", 1]]
=> #<Job id: 47, status: "failed", arguments: "--super -n 20 --branch master    /4799/company/cus...", log_filename: "perf-check-job-47.log", queued_at: "2019-09-10 20:03:38", run_at: "2019-09-10 20:03:38", completed_at: nil, failed_at: "2019-09-10 20:04:18", canceled_at: nil, created_at: "2019-09-10 20:03:38", updated_at: "2019-09-10 20:04:18", branch: "master", result_details: nil, user_id: 7, github_html_url: nil, output: nil>
irb(main):003:0> Job.last.user
  Job Load (0.4ms)  SELECT "jobs".* FROM "jobs" ORDER BY "jobs"."id" DESC LIMIT $1  [["LIMIT", 1]]
  User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 7], ["LIMIT", 1]]
=> #<User id: 7, name: nil, github_login: "aoeuaoeu", github_avatar_url: "https://avatars3.githubusercontent.com/u/4aoeuaoeu2?...", created_at: "2019-09-10 19:21:45", updated_at: "2019-09-10 19:21:45">
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

1 participant