Open sagaekeiga opened 6 years ago
changed_fileとreview_commentを取得するためにリクエストが倍以上送られてしまってる。 レポジトリと同じ状況になってる。
[ActiveJob] [CreateRepoJob] [fbae256d-f6ef-46d8-8c9e-f95ab9d0590e] SQL (0.4ms) INSERT INTO "review_comments" ("changed_file_id", "body", "path", "position", "status", "event", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["changed_file_id", 311], ["body", "heroku run rails db:migrate db:seed app:dev:sample"], ["path", "app/assets/stylesheets/reviewees.scss"], ["position", 2], ["status", 2000], ["event", 2000], ["created_at", "2018-10-17 22:47:56.342823"], ["updated_at", "2018-10-17 22:47:56.342823"]] [ActiveJob] [CreateRepoJob] [fbae256d-f6ef-46d8-8c9e-f95ab9d0590e] SQL (0.4ms) INSERT INTO "changed_files" ("pull_id", "commit_id", "filename", "additions", "deletions", "difference", "contents_url", "event", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["pull_id", 1], ["commit_id", 1], ["filename", "vendor/bundle/ruby/2.4.0/cache/fog-brightbox-0.14.0.gem"], ["additions", 0], ["deletions", 0], ["difference", 0], ["contents_url", "https://api.github.com/repos/sagaekeiga/github-api-sample/contents/vendor/bundle/ruby/2.4.0/cache/fog-brightbox-0.14.0.gem?ref=ba9c88e827be416b5ff6ea8db646c1fdbda07941"], ["event", 2000], ["created_at", "2018-10-17 22:47:56.346668"], ["updated_at", "2018-10-17 22:47:56.346668"]] [ActiveJob] [CreateRepoJob] [fbae256d-f6ef-46d8-8c9e-f95ab9d0590e] [Github][review_comment] responseCode => 200 [ActiveJob] [CreateRepoJob] [fbae256d-f6ef-46d8-8c9e-f95ab9d0590e] [Github][review_comment] responseMessage => OK [ActiveJob] [CreateRepoJob] [fbae256d-f6ef-46d8-8c9e-f95ab9d0590e] [Github][review_comment] subUrl => repos/sagaekeiga/github-api-sample/pulls/61/comments [ActiveJob] [CreateRepoJob] [fbae256d-f6ef-46d8-8c9e-f95ab9d0590e] ReviewComment Load (0.5ms) SELECT "review_comments".* FROM "review_comments" WHERE "review_comments"."deleted_at" IS NULL AND "review_comments"."remote_id" IS NULL AND "review_comments"."path" = $1 AND "review_comments"."position" = $2 AND "review_comments"."status" = $3 AND "review_comments"."event" = $4 AND "review_comments"."changed_file_id" = $5 AND "review_comments"."in_reply_to_id" IS NULL LIMIT $6 [["path", "app/assets/stylesheets/reviewees.scss"], ["position", 2], ["status", 2000], ["event", 2000], ["changed_file_id", 312], ["LIMIT", 1]] [ActiveJob] [CreateRepoJob] [fbae256d-f6ef-46d8-8c9e-f95ab9d0590e] ChangedFile Load (0.4ms) SELECT "changed_files".* FROM "changed_files" WHERE "changed_files"."deleted_at" IS NULL AND "changed_files"."id" = $1 LIMIT $2 [["id", 312], ["LIMIT", 1]] [ActiveJob] [CreateRepoJob] [fbae256d-f6ef-46d8-8c9e-f95ab9d0590e] SQL (0.4ms) INSERT INTO "review_comments" ("changed_file_id", "body", "path", "position", "status", "event", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["changed_file_id", 312], ["body", "heroku run rails db:migrate db:seed app:dev:sample"], ["path", "app/assets/stylesheets/reviewees.scss"], ["position", 2], ["status", 2000], ["event", 2000], ["created_at", "2018-10-17 22:47:57.698367"], ["updated_at", "2018-10-17 22:47:57.698367"]] [ActiveJob] [CreateRepoJob] [fbae256d-f6ef-46d8-8c9e-f95ab9d0590e] SQL (0.4ms) INSERT INTO "changed_files" ("pull_id", "commit_id", "filename", "additions", "deletions", "difference", "contents_url", "event", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["pull_id", 1], ["commit_id", 1], ["filename", "vendor/bundle/ruby/2.4.0/cache/fog-cloudatcost-0.1.2.gem"], ["additions", 0], ["deletions", 0], ["difference", 0], ["contents_url", "https://api.github.com/repos/sagaekeiga/github-api-sample/contents/vendor/bundle/ruby/2.4.0/cache/fog-cloudatcost-0.1.2.gem?ref=ba9c88e827be416b5ff6ea8db646c1fdbda07941"], ["event", 2000], ["created_at", "2018-10-17 22:47:57.701896"], ["updated_at", "2018-10-17 22:47:57.701896"]] [ActiveJob] [CreateRepoJob] [fbae256d-f6ef-46d8-8c9e-f95ab9d0590e] [Github][review_comment] responseCode => 200 [ActiveJob] [CreateRepoJob] [fbae256d-f6ef-46d8-8c9e-f95ab9d0590e] [Github][review_comment] responseMessage => OK [ActiveJob] [CreateRepoJob] [fbae256d-f6ef-46d8-8c9e-f95ab9d0590e] [Github][review_comment] subUrl => repos/sagaekeiga/github-api-sample/pulls/61/comments [ActiveJob] [CreateRepoJob] [fbae256d-f6ef-46d8-8c9e-f95ab9d0590e] ReviewComment Load (3.7ms)
changed_fileとreview_commentを取得するためにリクエストが倍以上送られてしまってる。 レポジトリと同じ状況になってる。