Advertisement
srghma

Untitled

Aug 27th, 2018
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.81 KB | None | 0 0
  1. Started POST "/api/v2/esc/create" for 31.148.171.214 at 2018-08-27 16:15:01 +0000
  2. Processing by Api::V1::EscController#create as JSON
  3. Parameters: {"compliance"=>"epa", "conformance_inspection"=>0, "inspection_type"=>"", "local_standard"=>"", "measures"=>[{"esc_measure_id"=>"5c38d5be-70f0-11e4-ad6a-7cd1c3ebff35", "compliant"=>"true"}], "name"=>"Gggf", "plan_examination"=>0, "project_id"=>"0b526b90-544a-470b-8325-c59655c2fdb9", "qualifications_of_inspector"=>"", "present_phase_of_construction"=>"", "current_weather"=>"", "amount_of_rainfall"=>"", "esc"=>{"compliance"=>"epa", "conformance_inspection"=>0, "inspection_type"=>"", "local_standard"=>"", "measures"=>[{"esc_measure_id"=>"5c38d5be-70f0-11e4-ad6a-7cd1c3ebff35", "compliant"=>"true"}], "name"=>"Gggf", "plan_examination"=>0, "project_id"=>"0b526b90-544a-470b-8325-c59655c2fdb9", "qualifications_of_inspector"=>"", "present_phase_of_construction"=>"", "current_weather"=>"", "amount_of_rainfall"=>""}}
  4. Can't verify CSRF token authenticity.
  5. Account Load (1.0ms) SELECT "accounts".* FROM "accounts" INNER JOIN "auth_tokens" ON "auth_tokens"."account_id" = "accounts"."id" WHERE "accounts"."deleted_at" IS NULL AND "auth_tokens"."authentication_token" = $1 ORDER BY email ASC LIMIT $2 [["authentication_token", "RztnV3UFPRAQ1y6CLtaM"], ["LIMIT", 1]]
  6. AuthToken Load (0.5ms) SELECT "auth_tokens".* FROM "auth_tokens" WHERE "auth_tokens"."account_id" = $1 LIMIT $2 [["account_id", "13c3515d-d658-4af6-af62-26bc1b186215"], ["LIMIT", 1]]
  7. Visit Load (0.5ms) SELECT "visits".* FROM "visits" WHERE "visits"."id" = $1 ORDER BY "visits"."id" ASC LIMIT $2 [["id", "ee8b0dbf-fdc4-4f80-b553-b8a97796eb08"], ["LIMIT", 1]]
  8. (0.2ms) BEGIN
  9. SQL (0.5ms) UPDATE "accounts" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "sign_in_count" = $3, "updated_at" = $4 WHERE "accounts"."id" = $5 [["current_sign_in_at", "2018-08-27 16:15:01.893788"], ["last_sign_in_at", "2018-08-27 16:13:53.127888"], ["sign_in_count", 9243], ["updated_at", "2018-08-27 16:15:01.894869"], ["id", "13c3515d-d658-4af6-af62-26bc1b186215"]]
  10. (1.1ms) COMMIT
  11. (0.2ms) BEGIN
  12. SQL (0.4ms) UPDATE "auth_tokens" SET "expire_at" = $1, "updated_at" = $2 WHERE "auth_tokens"."id" = $3 [["expire_at", "2018-09-26 16:15:01.898550"], ["updated_at", "2018-08-27 16:15:01.899294"], ["id", "a24e502a-f02d-4964-89f8-ec5e654821fa"]]
  13. (0.8ms) COMMIT
  14. Project Load (0.6ms) SELECT "projects".* FROM "projects" WHERE "projects"."deleted_at" IS NULL AND "projects"."id" = $1 GROUP BY projects.id LIMIT $2 [["id", "0b526b90-544a-470b-8325-c59655c2fdb9"], ["LIMIT", 1]]
  15. CACHE Project Load (0.0ms) SELECT "projects".* FROM "projects" WHERE "projects"."deleted_at" IS NULL AND "projects"."id" = $1 GROUP BY projects.id LIMIT $2 [["id", "0b526b90-544a-470b-8325-c59655c2fdb9"], ["LIMIT", 1]]
  16. ProjectAccount Load (0.6ms) SELECT "project_accounts".* FROM "project_accounts" WHERE "project_accounts"."deleted_at" IS NULL AND "project_accounts"."project_id" = $1 AND "project_accounts"."account_id" = $2 ORDER BY "project_accounts"."id" ASC LIMIT $3 [["project_id", "0b526b90-544a-470b-8325-c59655c2fdb9"], ["account_id", "13c3515d-d658-4af6-af62-26bc1b186215"], ["LIMIT", 1]]
  17. ProjectRole Load (0.4ms) SELECT "project_roles".* FROM "project_roles" WHERE "project_roles"."id" = $1 LIMIT $2 [["id", "e4d3b0e3-905d-4895-a72d-285b1f2d0d00"], ["LIMIT", 1]]
  18. CACHE Project Load (0.0ms) SELECT "projects".* FROM "projects" WHERE "projects"."deleted_at" IS NULL AND "projects"."id" = $1 GROUP BY projects.id LIMIT $2 [["id", "0b526b90-544a-470b-8325-c59655c2fdb9"], ["LIMIT", 1]]
  19. ProjectAccount Load (0.6ms) SELECT "project_accounts".* FROM "project_accounts" WHERE "project_accounts"."deleted_at" IS NULL AND "project_accounts"."project_id" = '0b526b90-544a-470b-8325-c59655c2fdb9' AND "project_accounts"."account_id" = '13c3515d-d658-4af6-af62-26bc1b186215' ORDER BY "project_accounts"."id" ASC LIMIT $1 [["LIMIT", 1]]
  20. CACHE Project Load (0.0ms) SELECT "projects".* FROM "projects" WHERE "projects"."deleted_at" IS NULL AND "projects"."id" = $1 GROUP BY projects.id LIMIT $2 [["id", "0b526b90-544a-470b-8325-c59655c2fdb9"], ["LIMIT", 1]]
  21. CACHE Project Load (0.0ms) SELECT "projects".* FROM "projects" WHERE "projects"."deleted_at" IS NULL AND "projects"."id" = $1 GROUP BY projects.id LIMIT $2 [["id", "0b526b90-544a-470b-8325-c59655c2fdb9"], ["LIMIT", 1]]
  22. EscMeasure Load (0.4ms) SELECT "esc_measures".* FROM "esc_measures" WHERE "esc_measures"."deleted_at" IS NULL AND "esc_measures"."id" = $1 LIMIT $2 [["id", "5c38d5be-70f0-11e4-ad6a-7cd1c3ebff35"], ["LIMIT", 1]]
  23. (0.2ms) BEGIN
  24. SQL (0.6ms) INSERT INTO "esc_entries" ("project_id", "name", "compliance", "conformance_inspection", "plan_examination", "created_at", "updated_at", "inspection_type", "qualifications_of_inspector", "present_phase_of_construction", "current_weather", "amount_of_rainfall") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["project_id", "0b526b90-544a-470b-8325-c59655c2fdb9"], ["name", "Gggf"], ["compliance", "epa"], ["conformance_inspection", "f"], ["plan_examination", "f"], ["created_at", "2018-08-27 16:15:01.916370"], ["updated_at", "2018-08-27 16:15:01.916370"], ["inspection_type", "rainevent"], ["qualifications_of_inspector", ""], ["present_phase_of_construction", ""], ["current_weather", ""], ["amount_of_rainfall", ""]]
  25. Project Load (0.5ms) SELECT "projects".* FROM "projects" WHERE "projects"."deleted_at" IS NULL AND "projects"."id" = $1 GROUP BY projects.id LIMIT $2 [["id", "0b526b90-544a-470b-8325-c59655c2fdb9"], ["LIMIT", 1]]
  26. SQL (1.8ms) INSERT INTO "revisions" ("entity_id", "entity_name", "archived", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["entity_id", "82742e22-7d84-4a33-ac17-5292f6e16f32"], ["entity_name", "EscEntry"], ["archived", "f"], ["created_at", "2018-08-27 16:15:01.921585"], ["updated_at", "2018-08-27 16:15:01.921585"]]
  27. (15.3ms) SELECT COUNT(*) FROM "revisions" WHERE "revisions"."entity_id" = $1 [["entity_id", "82742e22-7d84-4a33-ac17-5292f6e16f32"]]
  28. SQL (0.6ms) UPDATE "revisions" SET "creator_account_id" = $1, "number" = $2, "created_timestamp" = $3, "updated_at" = $4 WHERE "revisions"."id" = $5 [["creator_account_id", "13c3515d-d658-4af6-af62-26bc1b186215"], ["number", 1], ["created_timestamp", "2018-08-27 16:15:01.921585"], ["updated_at", "2018-08-27 16:15:01.941113"], ["id", "9a4a46b6-5975-4370-9681-ef810c97b802"]]
  29. SQL (0.4ms) UPDATE "projects" SET "updated_at" = '2018-08-27 16:15:01.920878' WHERE "projects"."id" = $1 [["id", "0b526b90-544a-470b-8325-c59655c2fdb9"]]
  30. (1.0ms) COMMIT
  31. EscMeasure Load (0.4ms) SELECT "esc_measures".* FROM "esc_measures" WHERE "esc_measures"."deleted_at" IS NULL AND "esc_measures"."id" = $1 LIMIT $2 [["id", "5c38d5be-70f0-11e4-ad6a-7cd1c3ebff35"], ["LIMIT", 1]]
  32. (0.2ms) BEGIN
  33. SQL (0.7ms) INSERT INTO "esc_entry_measures" ("esc_entry_id", "esc_measure_id", "compliant", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["esc_entry_id", "82742e22-7d84-4a33-ac17-5292f6e16f32"], ["esc_measure_id", "5c38d5be-70f0-11e4-ad6a-7cd1c3ebff35"], ["compliant", "t"], ["created_at", "2018-08-27 16:15:01.948028"], ["updated_at", "2018-08-27 16:15:01.948028"]]
  34. SQL (0.5ms) INSERT INTO "revisions" ("entity_id", "entity_name", "archived", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["entity_id", "03466d56-dc3c-4d62-9819-534e7c0d796e"], ["entity_name", "EscEntryMeasure"], ["archived", "f"], ["created_at", "2018-08-27 16:15:01.950311"], ["updated_at", "2018-08-27 16:15:01.950311"]]
  35. (15.3ms) SELECT COUNT(*) FROM "revisions" WHERE "revisions"."entity_id" = $1 [["entity_id", "03466d56-dc3c-4d62-9819-534e7c0d796e"]]
  36. SQL (0.6ms) UPDATE "revisions" SET "creator_account_id" = $1, "number" = $2, "created_timestamp" = $3, "updated_at" = $4 WHERE "revisions"."id" = $5 [["creator_account_id", "13c3515d-d658-4af6-af62-26bc1b186215"], ["number", 1], ["created_timestamp", "2018-08-27 16:15:01.950311"], ["updated_at", "2018-08-27 16:15:01.968408"], ["id", "661cadf1-e2ec-4d74-90e2-e1e5b5f50371"]]
  37. (1.6ms) COMMIT
  38. Revision Load (21.7ms) SELECT "revisions".* FROM "revisions" WHERE "revisions"."entity_id" = $1 AND "revisions"."entity_name" = $2 ORDER BY created_at DESC LIMIT $3 [["entity_id", "82742e22-7d84-4a33-ac17-5292f6e16f32"], ["entity_name", "EscEntry"], ["LIMIT", 1]]
  39. Account Load (0.6ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."deleted_at" IS NULL AND "accounts"."id" = $1 ORDER BY email ASC LIMIT $2 [["id", "13c3515d-d658-4af6-af62-26bc1b186215"], ["LIMIT", 1]]
  40. User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."deleted_at" IS NULL AND "users"."id" = $1 LIMIT $2 [["id", "defb2f9c-93f1-48c3-bea7-35aaa603299c"], ["LIMIT", 1]]
  41. EscEntryMeasure Load (1.4ms) SELECT "esc_entry_measures".* FROM "esc_entry_measures" WHERE "esc_entry_measures"."deleted_at" IS NULL AND "esc_entry_measures"."esc_entry_id" = $1 [["esc_entry_id", "82742e22-7d84-4a33-ac17-5292f6e16f32"]]
  42. EscMeasure Load (0.4ms) SELECT "esc_measures".* FROM "esc_measures" WHERE "esc_measures"."deleted_at" IS NULL AND "esc_measures"."id" = $1 LIMIT $2 [["id", "5c38d5be-70f0-11e4-ad6a-7cd1c3ebff35"], ["LIMIT", 1]]
  43. Comment Load (1.4ms) SELECT "comments".* FROM "comments" WHERE "comments"."entity_id" = $1 AND "comments"."entity_type" = $2 [["entity_id", "03466d56-dc3c-4d62-9819-534e7c0d796e"], ["entity_type", "EscEntryMeasure"]]
  44. Image Load (1.0ms) SELECT "images".* FROM "images" WHERE "images"."entity_id" = $1 AND "images"."entity_type" = $2 [["entity_id", "03466d56-dc3c-4d62-9819-534e7c0d796e"], ["entity_type", "EscEntryMeasure"]]
  45. Image Load (1.0ms) SELECT "images".* FROM "images" WHERE "images"."entity_id" = $1 AND "images"."entity_type" = $2 ORDER BY "images"."created_at" DESC LIMIT $3 [["entity_id", "82742e22-7d84-4a33-ac17-5292f6e16f32"], ["entity_type", "EscEntry"], ["LIMIT", 1]]
  46. ProjectCalculations Load (0.6ms) SELECT "project_calculations".* FROM "project_calculations" WHERE "project_calculations"."project_id" = $1 LIMIT $2 [["project_id", "0b526b90-544a-470b-8325-c59655c2fdb9"], ["LIMIT", 1]]
  47. WasteEntry Load (0.7ms) SELECT "waste_entries".* FROM "waste_entries" WHERE "waste_entries"."deleted_at" IS NULL AND "waste_entries"."project_id" = $1 [["project_id", "0b526b90-544a-470b-8325-c59655c2fdb9"]]
  48. SustainableMaterialEntry Load (0.5ms) SELECT "sustainable_material_entries".* FROM "sustainable_material_entries" WHERE "sustainable_material_entries"."deleted_at" IS NULL AND "sustainable_material_entries"."project_id" = $1 [["project_id", "0b526b90-544a-470b-8325-c59655c2fdb9"]]
  49. SustainableMaterialEntryType Load (1.2ms) SELECT "sustainable_material_entry_types".* FROM "sustainable_material_entry_types" WHERE "sustainable_material_entry_types"."deleted_at" IS NULL AND "sustainable_material_entry_types"."sustainable_material_entry_id" = $1 [["sustainable_material_entry_id", "c9065127-bf38-40d3-9fe8-e6b08be30dda"]]
  50. SustainableMaterialType Load (0.4ms) SELECT "sustainable_material_types".* FROM "sustainable_material_types" WHERE "sustainable_material_types"."deleted_at" IS NULL AND "sustainable_material_types"."id" = $1 LIMIT $2 [["id", "5c04e218-70f0-11e4-af05-7cd1c3ebff35"], ["LIMIT", 1]]
  51. CustomField Load (0.4ms) SELECT "custom_fields".* FROM "custom_fields" WHERE "custom_fields"."deleted_at" IS NULL AND "custom_fields"."entity_id" = $1 [["entity_id", "5c04e218-70f0-11e4-af05-7cd1c3ebff35"]]
  52. CustomFieldValue Load (3.0ms) SELECT "custom_field_values".* FROM "custom_field_values" WHERE "custom_field_values"."deleted_at" IS NULL AND "custom_field_values"."entity_id" = $1 [["entity_id", "e4570667-6cb6-4bdb-b0f4-0113b8fa4348"]]
  53. Comment Load (1.4ms) SELECT "comments".* FROM "comments" WHERE "comments"."entity_id" = $1 AND "comments"."entity_type" = $2 [["entity_id", "e4570667-6cb6-4bdb-b0f4-0113b8fa4348"], ["entity_type", "SustainableMaterialEntryType"]]
  54. (1.0ms) SELECT COUNT(*) FROM "images" WHERE "images"."entity_id" = $1 AND "images"."entity_type" = $2 [["entity_id", "e4570667-6cb6-4bdb-b0f4-0113b8fa4348"], ["entity_type", "SustainableMaterialEntryType"]]
  55. (0.4ms) SELECT COUNT(*) FROM "attachments" WHERE "attachments"."entity_id" = $1 AND "attachments"."entity_type" = $2 [["entity_id", "e4570667-6cb6-4bdb-b0f4-0113b8fa4348"], ["entity_type", "SustainableMaterialEntryType"]]
  56. (0.6ms) SELECT COUNT(*) FROM "esc_entries" WHERE "esc_entries"."deleted_at" IS NULL AND "esc_entries"."project_id" = $1 [["project_id", "0b526b90-544a-470b-8325-c59655c2fdb9"]]
  57. (0.5ms) SELECT COUNT(*) FROM "esc_reports" WHERE "esc_reports"."deleted_at" IS NULL AND "esc_reports"."project_id" = $1 [["project_id", "0b526b90-544a-470b-8325-c59655c2fdb9"]]
  58. (0.9ms) SELECT COUNT(*) FROM "voc_entries" WHERE "voc_entries"."deleted_at" IS NULL AND "voc_entries"."project_id" = $1 [["project_id", "0b526b90-544a-470b-8325-c59655c2fdb9"]]
  59. VocEntry Exists (0.6ms) SELECT 1 AS one FROM "voc_entries" WHERE "voc_entries"."deleted_at" IS NULL AND "voc_entries"."project_id" = $1 LIMIT $2 [["project_id", "0b526b90-544a-470b-8325-c59655c2fdb9"], ["LIMIT", 1]]
  60. (0.5ms) SELECT COUNT(*) FROM "iaq_entries" WHERE "iaq_entries"."deleted_at" IS NULL AND "iaq_entries"."project_id" = $1 [["project_id", "0b526b90-544a-470b-8325-c59655c2fdb9"]]
  61. (0.4ms) SELECT COUNT(*) FROM "general_inspection_entries" WHERE "general_inspection_entries"."deleted_at" IS NULL AND "general_inspection_entries"."project_id" = $1 [["project_id", "0b526b90-544a-470b-8325-c59655c2fdb9"]]
  62. (0.2ms) BEGIN
  63. SQL (0.5ms) UPDATE "project_calculations" SET "erosion_control" = $1, "updated_at" = $2 WHERE "project_calculations"."id" = $3 [["erosion_control", 6], ["updated_at", "2018-08-27 16:15:02.052619"], ["id", 4]]
  64. SQL (0.4ms) UPDATE "projects" SET "updated_at" = '2018-08-27 16:15:02.055212' WHERE "projects"."id" = $1 [["id", "0b526b90-544a-470b-8325-c59655c2fdb9"]]
  65. (0.9ms) COMMIT
  66. Rendering defaults/response.json.rabl
  67. Rendered defaults/response.json.rabl (1.3ms)
  68. Completed 200 OK in 181ms (Views: 8.5ms | ActiveRecord: 90.8ms)
  69. Started POST "/api/v2/comment/create" for 31.148.171.214 at 2018-08-27 16:15:02 +0000
  70. Processing by Api::V1::CommentsController#create as JSON
  71. Parameters: {"entity_name"=>"EscEntryMeasure", "entity_id"=>"03466d56-dc3c-4d62-9819-534e7c0d796e", "text"=>"", "comment"=>{"entity_id"=>"03466d56-dc3c-4d62-9819-534e7c0d796e"}}
  72. Can't verify CSRF token authenticity.
  73. Account Load (0.9ms) SELECT "accounts".* FROM "accounts" INNER JOIN "auth_tokens" ON "auth_tokens"."account_id" = "accounts"."id" WHERE "accounts"."deleted_at" IS NULL AND "auth_tokens"."authentication_token" = $1 ORDER BY email ASC LIMIT $2 [["authentication_token", "RztnV3UFPRAQ1y6CLtaM"], ["LIMIT", 1]]
  74. AuthToken Load (0.5ms) SELECT "auth_tokens".* FROM "auth_tokens" WHERE "auth_tokens"."account_id" = $1 LIMIT $2 [["account_id", "13c3515d-d658-4af6-af62-26bc1b186215"], ["LIMIT", 1]]
  75. Visit Load (0.4ms) SELECT "visits".* FROM "visits" WHERE "visits"."id" = $1 ORDER BY "visits"."id" ASC LIMIT $2 [["id", "ee8b0dbf-fdc4-4f80-b553-b8a97796eb08"], ["LIMIT", 1]]
  76. (0.2ms) BEGIN
  77. SQL (0.4ms) UPDATE "accounts" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "sign_in_count" = $3, "updated_at" = $4 WHERE "accounts"."id" = $5 [["current_sign_in_at", "2018-08-27 16:15:02.480352"], ["last_sign_in_at", "2018-08-27 16:15:01.893788"], ["sign_in_count", 9244], ["updated_at", "2018-08-27 16:15:02.481425"], ["id", "13c3515d-d658-4af6-af62-26bc1b186215"]]
  78. (0.9ms) COMMIT
  79. (0.2ms) BEGIN
  80. SQL (0.4ms) UPDATE "auth_tokens" SET "expire_at" = $1, "updated_at" = $2 WHERE "auth_tokens"."id" = $3 [["expire_at", "2018-09-26 16:15:02.484850"], ["updated_at", "2018-08-27 16:15:02.485619"], ["id", "a24e502a-f02d-4964-89f8-ec5e654821fa"]]
  81. (0.9ms) COMMIT
  82. EscEntryMeasure Load (0.5ms) SELECT "esc_entry_measures".* FROM "esc_entry_measures" WHERE "esc_entry_measures"."deleted_at" IS NULL AND "esc_entry_measures"."id" = $1 LIMIT $2 [["id", "03466d56-dc3c-4d62-9819-534e7c0d796e"], ["LIMIT", 1]]
  83. (0.2ms) BEGIN
  84. SQL (1.4ms) INSERT INTO "comments" ("entity_id", "entity_type", "comment", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["entity_id", "03466d56-dc3c-4d62-9819-534e7c0d796e"], ["entity_type", "EscEntryMeasure"], ["comment", ""], ["created_at", "2018-08-27 16:15:02.491150"], ["updated_at", "2018-08-27 16:15:02.491150"]]
  85. EscEntryMeasure Load (0.4ms) SELECT "esc_entry_measures".* FROM "esc_entry_measures" WHERE "esc_entry_measures"."deleted_at" IS NULL AND "esc_entry_measures"."id" = $1 LIMIT $2 [["id", "03466d56-dc3c-4d62-9819-534e7c0d796e"], ["LIMIT", 1]]
  86. SQL (1.4ms) INSERT INTO "revisions" ("entity_id", "entity_name", "archived", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["entity_id", "08117f47-8f79-4579-9924-9174e49dedf5"], ["entity_name", "Comment"], ["archived", "f"], ["created_at", "2018-08-27 16:15:02.496340"], ["updated_at", "2018-08-27 16:15:02.496340"]]
  87. (15.2ms) SELECT COUNT(*) FROM "revisions" WHERE "revisions"."entity_id" = $1 [["entity_id", "08117f47-8f79-4579-9924-9174e49dedf5"]]
  88. SQL (0.5ms) UPDATE "revisions" SET "creator_account_id" = $1, "number" = $2, "created_timestamp" = $3, "updated_at" = $4 WHERE "revisions"."id" = $5 [["creator_account_id", "13c3515d-d658-4af6-af62-26bc1b186215"], ["number", 1], ["created_timestamp", "2018-08-27 16:15:02.496340"], ["updated_at", "2018-08-27 16:15:02.514976"], ["id", "03e0b984-98e0-47b8-9c62-b5f9fed48801"]]
  89. SQL (0.4ms) UPDATE "esc_entry_measures" SET "updated_at" = '2018-08-27 16:15:02.495635' WHERE "esc_entry_measures"."id" = $1 [["id", "03466d56-dc3c-4d62-9819-534e7c0d796e"]]
  90. (1.0ms) COMMIT
  91. (0.2ms) BEGIN
  92. SQL (1.4ms) INSERT INTO "revisions" ("entity_id", "entity_name", "archived", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["entity_id", "08117f47-8f79-4579-9924-9174e49dedf5"], ["entity_name", "Comment"], ["archived", "f"], ["created_at", "2018-08-27 16:15:02.520232"], ["updated_at", "2018-08-27 16:15:02.520232"]]
  93. (15.2ms) SELECT COUNT(*) FROM "revisions" WHERE "revisions"."entity_id" = $1 [["entity_id", "08117f47-8f79-4579-9924-9174e49dedf5"]]
  94. SQL (0.5ms) UPDATE "revisions" SET "creator_account_id" = $1, "number" = $2, "created_timestamp" = $3, "updated_at" = $4 WHERE "revisions"."id" = $5 [["creator_account_id", "13c3515d-d658-4af6-af62-26bc1b186215"], ["number", 2], ["created_timestamp", "2018-08-27 16:15:02.520232"], ["updated_at", "2018-08-27 16:15:02.538946"], ["id", "4f9a2737-05f5-4c55-a274-319a607ff1a8"]]
  95. (2.9ms) COMMIT
  96. Image Load (0.9ms) SELECT "images".* FROM "images" WHERE "images"."entity_id" = $1 AND "images"."entity_type" = $2 [["entity_id", "08117f47-8f79-4579-9924-9174e49dedf5"], ["entity_type", "Comment"]]
  97. Attachment Load (0.3ms) SELECT "attachments".* FROM "attachments" WHERE "attachments"."entity_id" = $1 AND "attachments"."entity_type" = $2 [["entity_id", "08117f47-8f79-4579-9924-9174e49dedf5"], ["entity_type", "Comment"]]
  98. Rendering defaults/response.json.rabl
  99. Rendered defaults/response.json.rabl (1.0ms)
  100. Completed 200 OK in 83ms (Views: 8.1ms | ActiveRecord: 47.3ms)
  101. Started POST "/api/v2/attachment/create" for 31.148.171.214 at 2018-08-27 16:15:03 +0000
  102. Processing by Api::V1::ImagesController#create as JSON
  103. Parameters: {"entity_id"=>"08117f47-8f79-4579-9924-9174e49dedf5", "filename"=>#<ActionDispatch::Http::UploadedFile:0x0000000c8aa1b8 @tempfile=#<Tempfile:/tmp/RackMultipart20180827-20-1hxwlm3.jpeg>, @original_filename="1535386482771.jpeg", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"filename\"; filename=\"1535386482771.jpeg\"\r\nContent-Type: image/jpeg\r\n">, "timestamp"=>"1535393682", "entity_name"=>"Comment"}
  104. Can't verify CSRF token authenticity.
  105. Account Load (1.0ms) SELECT "accounts".* FROM "accounts" INNER JOIN "auth_tokens" ON "auth_tokens"."account_id" = "accounts"."id" WHERE "accounts"."deleted_at" IS NULL AND "auth_tokens"."authentication_token" = $1 ORDER BY email ASC LIMIT $2 [["authentication_token", "RztnV3UFPRAQ1y6CLtaM"], ["LIMIT", 1]]
  106. AuthToken Load (0.5ms) SELECT "auth_tokens".* FROM "auth_tokens" WHERE "auth_tokens"."account_id" = $1 LIMIT $2 [["account_id", "13c3515d-d658-4af6-af62-26bc1b186215"], ["LIMIT", 1]]
  107. Visit Load (0.4ms) SELECT "visits".* FROM "visits" WHERE "visits"."id" = $1 ORDER BY "visits"."id" ASC LIMIT $2 [["id", "ee8b0dbf-fdc4-4f80-b553-b8a97796eb08"], ["LIMIT", 1]]
  108. (0.2ms) BEGIN
  109. SQL (0.4ms) UPDATE "accounts" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "sign_in_count" = $3, "updated_at" = $4 WHERE "accounts"."id" = $5 [["current_sign_in_at", "2018-08-27 16:15:03.449551"], ["last_sign_in_at", "2018-08-27 16:15:02.480352"], ["sign_in_count", 9245], ["updated_at", "2018-08-27 16:15:03.450666"], ["id", "13c3515d-d658-4af6-af62-26bc1b186215"]]
  110. (0.9ms) COMMIT
  111. (0.2ms) BEGIN
  112. SQL (0.4ms) UPDATE "auth_tokens" SET "expire_at" = $1, "updated_at" = $2 WHERE "auth_tokens"."id" = $3 [["expire_at", "2018-09-26 16:15:03.454130"], ["updated_at", "2018-08-27 16:15:03.454878"], ["id", "a24e502a-f02d-4964-89f8-ec5e654821fa"]]
  113. (0.7ms) COMMIT
  114. Comment Load (0.4ms) SELECT "comments".* FROM "comments" WHERE "comments"."id" = $1 LIMIT $2 [["id", "08117f47-8f79-4579-9924-9174e49dedf5"], ["LIMIT", 1]]
  115. Command :: identify -format '%wx%h,%[exif:orientation]' '/tmp/13c71d35f31bedf9f0c823420890b91d20180827-20-1l70s82.jpeg[0]' 2>/dev/null
  116. Command :: identify -format %m '/tmp/13c71d35f31bedf9f0c823420890b91d20180827-20-1l70s82.jpeg[0]'
  117. Command :: convert '/tmp/13c71d35f31bedf9f0c823420890b91d20180827-20-1l70s82.jpeg[0]' -auto-orient -resize "300x300>" '/tmp/9e26fe0e206d40b9d30cf0928666e9df20180827-20-1wd9j35'
  118. Command :: identify -format '%wx%h,%[exif:orientation]' '/tmp/13c71d35f31bedf9f0c823420890b91d20180827-20-1l70s82.jpeg[0]' 2>/dev/null
  119. Command :: identify -format %m '/tmp/13c71d35f31bedf9f0c823420890b91d20180827-20-1l70s82.jpeg[0]'
  120. Command :: convert '/tmp/13c71d35f31bedf9f0c823420890b91d20180827-20-1l70s82.jpeg[0]' -auto-orient -resize "150x150>" '/tmp/9e26fe0e206d40b9d30cf0928666e9df20180827-20-dgaeqx'
  121. Command :: identify -format '%wx%h,%[exif:orientation]' '/tmp/13c71d35f31bedf9f0c823420890b91d20180827-20-1l70s82.jpeg[0]' 2>/dev/null
  122. Command :: identify -format %m '/tmp/13c71d35f31bedf9f0c823420890b91d20180827-20-1l70s82.jpeg[0]'
  123. Command :: convert '/tmp/13c71d35f31bedf9f0c823420890b91d20180827-20-1l70s82.jpeg[0]' -auto-orient -resize "75x75>" '/tmp/9e26fe0e206d40b9d30cf0928666e9df20180827-20-40uon3'
  124. (0.4ms) BEGIN
  125. Command :: file -b --mime '/tmp/13c71d35f31bedf9f0c823420890b91d20180827-20-10iafz3.jpeg'
  126. SQL (0.7ms) INSERT INTO "images" ("entity_id", "entity_type", "created_at", "updated_at", "data_file_name", "data_content_type", "data_file_size", "data_updated_at", "timestamp") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["entity_id", "08117f47-8f79-4579-9924-9174e49dedf5"], ["entity_type", "Comment"], ["created_at", "2018-08-27 16:15:04.095359"], ["updated_at", "2018-08-27 16:15:04.095359"], ["data_file_name", "1535386482771.jpeg"], ["data_content_type", "image/jpeg"], ["data_file_size", 100630], ["data_updated_at", "2018-08-27 16:15:03.463485"], ["timestamp", "2018-08-27 18:14:42"]]
  127. Comment Load (0.5ms) SELECT "comments".* FROM "comments" WHERE "comments"."id" = $1 LIMIT $2 [["id", "08117f47-8f79-4579-9924-9174e49dedf5"], ["LIMIT", 1]]
  128. EscEntryMeasure Load (0.5ms) SELECT "esc_entry_measures".* FROM "esc_entry_measures" WHERE "esc_entry_measures"."deleted_at" IS NULL AND "esc_entry_measures"."id" = $1 LIMIT $2 [["id", "03466d56-dc3c-4d62-9819-534e7c0d796e"], ["LIMIT", 1]]
  129. SQL (0.5ms) INSERT INTO "revisions" ("entity_id", "entity_name", "archived", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["entity_id", "57e8e8dd-c9d2-4478-8915-30b1a19af845"], ["entity_name", "Image"], ["archived", "f"], ["created_at", "2018-08-27 16:15:04.107753"], ["updated_at", "2018-08-27 16:15:04.107753"]]
  130. (15.1ms) SELECT COUNT(*) FROM "revisions" WHERE "revisions"."entity_id" = $1 [["entity_id", "57e8e8dd-c9d2-4478-8915-30b1a19af845"]]
  131. SQL (0.6ms) UPDATE "revisions" SET "creator_account_id" = $1, "number" = $2, "created_timestamp" = $3, "updated_at" = $4 WHERE "revisions"."id" = $5 [["creator_account_id", "13c3515d-d658-4af6-af62-26bc1b186215"], ["number", 1], ["created_timestamp", "2018-08-27 16:15:04.107753"], ["updated_at", "2018-08-27 16:15:04.126098"], ["id", "76a6d736-5e4f-4df3-aa00-3dbc4af43fba"]]
  132. SQL (0.4ms) UPDATE "comments" SET "updated_at" = '2018-08-27 16:15:04.100828' WHERE "comments"."id" = $1 [["id", "08117f47-8f79-4579-9924-9174e49dedf5"]]
  133. SQL (0.4ms) UPDATE "esc_entry_measures" SET "updated_at" = '2018-08-27 16:15:04.129554' WHERE "esc_entry_measures"."id" = $1 [["id", "03466d56-dc3c-4d62-9819-534e7c0d796e"]]
  134. (1.0ms) COMMIT
  135. Rendering defaults/response.json.rabl
  136. Rendered defaults/response.json.rabl (1.5ms)
  137. Completed 200 OK in 701ms (Views: 9.6ms | ActiveRecord: 25.2ms)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement