Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- InteractionsTextChannel#send_quiver_message({"text"=>"Hello"})
- (0.9ms) SELECT MAX("messages"."id") FROM "messages" WHERE "messages"."interaction_id" = $1 [["interaction_id", 17]]
- (0.2ms) BEGIN
- SQL (0.8ms) INSERT INTO "messages" ("kind", "text", "author_id", "receiver_id", "interaction_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["kind", "quiver"], ["text", "Hello"], ["author_id", 16], ["receiver_id", 15], ["interaction_id", 17], ["created_at", "2020-12-15 12:16:44.908827"], ["updated_at", "2020-12-15 12:16:44.908827"]]
- (1.5ms) COMMIT
- Message Load (1.0ms) SELECT "messages".* FROM "messages" WHERE ("messages"."interaction_id" = $1 AND (id > 354) AND "messages"."receiver_id" = 15 OR "messages"."interaction_id" = $2 AND (id > 354) AND "messages"."author_id" = 15) ORDER BY "messages"."created_at" ASC [["interaction_id", 17], ["interaction_id", 17]]
- User Load (1.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 16], ["LIMIT", 1]]
- Profile Load (0.5ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."user_id" = $1 LIMIT $2 [["user_id", 16], ["LIMIT", 1]]
- Rendered shared/_avatar.html.haml (7.4ms)
- Profile Load (0.5ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."user_id" = $1 LIMIT $2 [["user_id", 15], ["LIMIT", 1]]
- Rendered messages/kinds/_user.html.haml (22.5ms)
- Rendered messages/kinds/_quiver.html.haml (29.9ms)
- Rendered messages/kinds/_user.json.jb (1.8ms)
- Rendered messages/kinds/_quiver.json.jb (8.1ms)
- Interaction Load (0.8ms) SELECT "interactions".* FROM "interactions" WHERE "interactions"."id" = $1 LIMIT $2 [["id", 17], ["LIMIT", 1]]
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 15], ["LIMIT", 1]]
- Rendered interactions/text/giver/_request_accepted.html.haml (9.7ms)
- Interaction Load (0.7ms) SELECT "interactions".* FROM "interactions" WHERE "interactions"."id" = $1 LIMIT $2 [["id", 17], ["LIMIT", 1]]
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 15], ["LIMIT", 1]]
- Rendered interactions/text/giver/_request_accepted.json.jb (0.7ms)
- [ActionCable] Broadcasting to interaction_17_15: [{:type=>"message", :html=>"<!-- - cache message do -->\n<!-- - cache message do -->\n<div class='b-chat__message m_from_opposite_user'>\n<div class='avatar avatar--small js-avatar m_holder'>\n<div class='avatar__initials'>Q</div>\n</div>\n\n<div class='b-chat__message-aux'>\n<span class='b-chat__message-author'>Quiver </span>\n<span class='b-chat__message-time js-interchat-message-time'>\n15:16 15 дек.\n</span>\n</div>\n<div class='b-chat__message-content'>\n<p>Hello</p>\n\n</div>\n</div>\n", :json=>["{\"id\":355,\"sent_at\":\"15:16 15 дек.\",\"author\":{\"system\":false,\"current_user\":false,\"opposite_user\":true,\"name\":\"Quiver \",\"avatar\":null},\"content\":\"Hello\"}"], :last_message_id=>355}, {:type=>"input", :html=>"<form class='js-interchat-message-form' data-action='send_giver_message'>\n<div class='b-chat__actions-wrapper'>\n<div class='input text'>\n<textarea class='js-autosize spec-message-input' name='text' placeholder='Текст сообщения' required type='text'></textarea>\n</div>\n</div>\n<div class='b-chat__actions-wrapper'>\n<a class=\"btn frame squeezed js-interchat-action-link\" data-action=\"conclude_request\" href=\"#\">Завершить чат</a>\n<button class='btn spec-submit' type='submit'>Отправить</button>\n</div>\n</form>\n", :json=>"{\"kind\":\"text\",\"user\":\"giver\",\"step\":\"request_accepted\"}"}, {:type=>"status", :html=>"Чат открыт для общения!", :json=>"Чат открыт для общения!"}]
- InteractionsTextChannel transmitting [{"type"=>"message", "html"=>"<!-- - cache message do -->\n<!-- - cache message do -->\n<div class='b-chat__message m_from_opposite_user'>\n<div class='avatar avatar--small js-avatar m_holder'>\n<div class='avatar__initials'>Q</div>\n</div>\n\n<div class='b-chat__message-aux'>\n<span class='b-cha... (via streamed from interaction_17_15)
- Message Load (2.1ms) SELECT "messages".* FROM "messages" WHERE ("messages"."interaction_id" = $1 AND (id > 354) AND "messages"."receiver_id" = 16 OR "messages"."interaction_id" = $2 AND (id > 354) AND "messages"."author_id" = 16) ORDER BY "messages"."created_at" ASC [["interaction_id", 17], ["interaction_id", 17]]
- User Load (0.9ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 16], ["LIMIT", 1]]
- Profile Load (1.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."user_id" = $1 LIMIT $2 [["user_id", 16], ["LIMIT", 1]]
- Rendered messages/kinds/_user.html.haml (12.0ms)
- Rendered messages/kinds/_quiver.html.haml (21.8ms)
- CACHE Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."user_id" = $1 LIMIT $2 [["user_id", 16], ["LIMIT", 1]]
- Rendered messages/kinds/_user.json.jb (2.4ms)
- Rendered messages/kinds/_quiver.json.jb (7.8ms)
- Interaction Load (0.7ms) SELECT "interactions".* FROM "interactions" WHERE "interactions"."id" = $1 LIMIT $2 [["id", 17], ["LIMIT", 1]]
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 16], ["LIMIT", 1]]
- Rendered interactions/text/quiver/_request_accepted.html.haml (5.7ms)
- Interaction Load (0.7ms) SELECT "interactions".* FROM "interactions" WHERE "interactions"."id" = $1 LIMIT $2 [["id", 17], ["LIMIT", 1]]
- User Load (1.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 16], ["LIMIT", 1]]
- Rendered interactions/text/quiver/_request_accepted.json.jb (0.8ms)
- User Load (1.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 15], ["LIMIT", 1]]
- [ActionCable] Broadcasting to interaction_17_16: [{:type=>"message", :html=>"<!-- - cache message do -->\n<!-- - cache message do -->\n<div class='b-chat__message m_from_current_user'>\n\n<div class='b-chat__message-aux'>\n<span class='b-chat__message-time js-interchat-message-time'>\n15:16 15 дек.\n</span>\n</div>\n<div class='b-chat__message-content'>\n<p>Hello</p>\n\n</div>\n</div>\n", :json=>["{\"id\":355,\"sent_at\":\"15:16 15 дек.\",\"author\":{\"system\":false,\"current_user\":true,\"opposite_user\":false,\"name\":\"Quiver \",\"avatar\":null},\"content\":\"Hello\"}"], :last_message_id=>355}, {:type=>"input", :html=>"<form class='js-interchat-message-form' data-action='send_quiver_message'>\n<div class='b-chat__actions-wrapper'>\n<div class='input text'>\n<textarea class='js-autosize spec-message-input' name='text' placeholder='Текст сообщения' required type='text'></textarea>\n</div>\n</div>\n<div class='b-chat__actions-wrapper'>\n<a class=\"btn frame js-interchat-action-link\" data-action=\"sign_act_request\" href=\"#\">Завершить чат</a>\n<button class='btn spec-submit' type='submit'>Отправить</button>\n</div>\n</form>\n", :json=>"{\"kind\":\"text\",\"user\":\"quiver\",\"step\":\"request_accepted\"}"}, {:type=>"status", :html=>"Чат открыт для общения!", :json=>"Чат открыт для общения!"}]
- InteractionsTextChannel transmitting [{"type"=>"message", "html"=>"<!-- - cache message do -->\n<!-- - cache message do -->\n<div class='b-chat__message m_from_current_user'>\n\n<div class='b-chat__message-aux'>\n<span class='b-chat__message-time js-interchat-message-time'>\n15:16 15 дек.\n</span>\n</div>\n<div class='b-chat__messag... (via streamed from interaction_17_16)
Add Comment
Please, Sign In to add comment