bootcamp
bootcamp copied to clipboard
question-edit.vue, question-page.vueをVueMounterに対応させた
Issue
- #5135
概要
question-edit.vue, question-page.vueをVueMounterに対応させる
変更確認方法
- ブランチ
feature/question-edit-and-page-be-adapted-VueMounter
をローカルに取り込む -
bin/rails s
でローカル環境を立ち上げる - ログイン
- http://localhost:3000/questions?target=not_solved にアクセスする
- Q&A以下の質問ページが出力されていることを確認
- 質問のどれかを押下する
- 「内容編集」を押下する
- 編集可能な画面が出力されることを確認
変更前
見た目上の変化はありません。
@fuwa-syugyo 初めまして、お世話になります。堀越です🙇♂️ もし可能でしたら、お手隙の際にレビューお願いします。
@yuki-snow1823 レビュー依頼ありがとうございます! 念の為2点確認させていただきたいです。
-
変更確認方法の
7. 「内容編集」を押下する
について、押下するボタンは「内容修正」でしょうか? -
Q&A一覧画面 (http://localhost:3000/questions?target=not_solved) で管理人&メンターのアイコンが表示されていますでしょうか? 私の環境では画像のように表示されてしまいます。。
Q&A一覧画面だけでなく、ダッシュボードなどでもアイコンが表示されていないので私の環境の可能性もあります。(その場合はすみません。。) 別ブランチでは通常通りアイコンが表示されていました。
お手数ですが、上記ご確認をお願いいたします!
@fuwa-syugyo 迅速なご確認ありがとうございます!本日チェックしてみます!
@fuwa-syugyo 調査結果のご報告です。
-
に関して 左様です!そちらのボタンですね。
-
に関して 作業をしたブランチで確認したところ、自分の環境では出力できておりました。🐶
確かCIのテストも一度アイコンで落ちたのですが、再実行するとPASSできたのでキャッシュなど可能であれば削除or違うブラウザで起動してみていただくと、直るかもしれません
@yuki-snow1823
ご確認ありがとうございます!
1.については承知いたしました。
2.につきましてはブラウザを変更してみましたが、相変わらずアイコンが表示されないようです。。
もしかしたら他の方に見てもらう、の方が良いかもしれません。申し訳ないです。。
アイコンが表示されない以外は動作・見た目共に問題ないと思います。
@fuwa-syugyo 再度ご確認ありがとうございます! エラーメッセージや何か警告など出ていますでしょうか?
他の方にも確認いただいてみようと思います!
@pachikuriii お疲れ様です🙏
こちらのプルリクなのですが、自分の環境では問題なく動作し、今レビューいただいた @fuwa-syugyo さんの環境では思った動作になっていない状況です。
具体的には http://localhost:3000/questions?target=not_solved にアクセスいただいた時に、メンターさんのアイコンが表示されない状況です。
一度ご確認をいただいてもよろしいでしょうか( __)
@yuki-snow1823 堀越さん、こんにちは! チェックのご依頼ありがとうございます〜!🙏
わたしの環境(Chromeのシークレットモード)でアクセスしてみたところ、管理人&メンターのアイコンの表示が確認できました。Docsやお知らせページでも表示は確認できています。Chromeのデベロッパーツールも見ましたがエラー/警告は出ていなかったです🌿下記のように表示されています。
-
Q&A
-
ダッシュボード
@pachikuriii ご確認&スクリーンショットありがとうございます!
左様でしたら、 一度 @komagata さんにレビューをしていただこうと思います(__)
@komagata お疲れ様です。本プルリクエストに関して、私の環境では正常に動作しているのですが他の方の環境では正常に動作できている場合と、動作していない場合があるようです。
具体的には http://localhost:3000/questions?target=not_solved にアクセスいただいた際に、メンターさんのアイコンが表示される/されない場合があるようです。
環境に依存する問題の可能性があるのですが、一度レビューをしてご意見をいただいてもよろしいでしょうか。
@yuki-snow1823 返信が遅くなり申し訳ありません。。
エラーメッセージや何か警告など出ていますでしょうか?
こちらですが、Q&Aページに遷移した際に、メンターのアイコン(今回は駒形さんのアイコン)を呼び出すときだけちょっと他と違う感じのログになっていました。 あとは404エラーが出ているようです。(下図です)

@fuwa-syugyo 承知しました!自分の方で調査してみますので、エラーメッセージをテキストでコピペいただいても良いでしょうか🙏
また、検証のURLとしては localhost:3000 であっていますでしょうか?
@yuki-snow1823
確認しましたが、127ではなくhttp://localhost:3000/questions?target=not_solved にアクセスしており、その上でアイコンが表示されていませんでした。
あと、表示されていないのはメンターのアイコンではなく、デフォルト以外のアイコンでした。すみません。
テキストで状況を伝えるのにも限界があると思うので、もしよろしければペアプロはいかがでしょうか?
@yuki-snow1823 すれ違ってしまいました。。すみません。。 サイドバーのQ&Aボタンを押して遷移したときのログをお送りします。
Started GET "/questions?target=not_solved" for ::1 at 2022-09-06 16:29:26 +0900
Processing by QuestionsController#index as HTML
Parameters: {"target"=>"not_solved"}
User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 991528156], ["LIMIT", 1]]
↳ app/controllers/application_controller.rb:30:in `init_user'
ActsAsTaggableOn::Tag Load (0.8ms) SELECT "tags".* FROM "tags" WHERE "tags"."name" IS NULL LIMIT $1 [["LIMIT", 1]]
↳ app/controllers/questions_controller.rb:22:in `index'
Rendering layout layouts/application.html.slim
Rendering questions/index.html.slim within layouts/application
Course Load (0.9ms) SELECT "courses".* FROM "courses" WHERE "courses"."id" = $1 LIMIT $2 [["id", 829913840], ["LIMIT", 1]]
↳ app/models/user.rb:615:in `practices'
Practice Load (2.6ms) SELECT "practices".* FROM "practices" INNER JOIN "categories_practices" ON "practices"."id" = "categories_practices"."practice_id" INNER JOIN "categories" ON "categories_practices"."category_id" = "categories"."id" INNER JOIN "courses_categories" ON "categories"."id" = "courses_categories"."category_id" WHERE "courses_categories"."course_id" = $1 ORDER BY "categories_practices"."position" ASC, "courses_categories"."position" ASC, courses_categories.position, practices.position [["course_id", 829913840]]
↳ app/views/questions/index.html.slim:21
(16.0ms) SELECT COUNT(*) FROM "questions" WHERE "questions"."id" NOT IN (SELECT "answers"."question_id" FROM "answers" WHERE "answers"."type" = $1) AND "questions"."wip" = $2 [["type", "CorrectAnswer"], ["wip", false]]
↳ app/views/questions/_tabs.html.slim:7
Rendered questions/_tabs.html.slim (Duration: 18.0ms | Allocations: 1213)
ActsAsTaggableOn::Tag Exists? (1.6ms) SELECT 1 AS one FROM "tags" JOIN (SELECT "taggings"."tag_id" FROM "taggings" WHERE (taggings.taggable_type = 'Question') AND (taggings.taggable_id IN(SELECT "questions"."id" FROM "questions" WHERE "questions"."id" NOT IN (SELECT "answers"."question_id" FROM "answers" WHERE "answers"."type" = 'CorrectAnswer') AND "questions"."wip" = FALSE)) GROUP BY "taggings"."tag_id") AS taggings ON taggings.tag_id = tags.id LIMIT $1 [["LIMIT", 1]]
↳ app/views/questions/index.html.slim:41
ActsAsTaggableOn::Tag Load (1.6ms) SELECT tags.* FROM "tags" JOIN (SELECT "taggings"."tag_id" FROM "taggings" WHERE (taggings.taggable_type = 'Question') AND (taggings.taggable_id IN(SELECT "questions"."id" FROM "questions")) GROUP BY "taggings"."tag_id") AS taggings ON taggings.tag_id = tags.id
↳ app/views/questions/index.html.slim:49
Rendered questions/index.html.slim within layouts/application (Duration: 36.8ms | Allocations: 11674)
Rendered application/_google_tag_manager_head.html.erb (Duration: 0.1ms | Allocations: 40)
Rendered application/_pwa.html.slim (Duration: 0.1ms | Allocations: 40)
Rendered application/_favicons.html.erb (Duration: 0.1ms | Allocations: 63)
ActiveStorage::Attachment Load (0.9ms) SELECT "active_storage_attachments".* FROM "active_storage_attachments" WHERE "active_storage_attachments"."record_id" = $1 AND "active_storage_attachments"."record_type" = $2 AND "active_storage_attachments"."name" = $3 LIMIT $4 [["record_id", 991528156], ["record_type", "User"], ["name", "avatar"], ["LIMIT", 1]]
↳ app/models/user.rb:543:in `avatar_url'
Rendered application/_current_user.html.erb (Duration: 3.0ms | Allocations: 1549)
Rendered application/_available_emojis.html.erb (Duration: 0.2ms | Allocations: 341)
Rendered application/_stripe.html.erb (Duration: 0.1ms | Allocations: 41)
Rendered head/_fontawsome.html.slim (Duration: 0.1ms | Allocations: 40)
Rendered application/_google_tag_manager_body.html.erb (Duration: 0.1ms | Allocations: 40)
Practice Load (1.2ms) SELECT "practices".* FROM "practices" INNER JOIN "learnings" ON "practices"."id" = "learnings"."practice_id" WHERE "learnings"."user_id" = $1 AND "learnings"."status" = $2 [["user_id", 991528156], ["status", 1]]
↳ app/models/user.rb:645:in `category_active_or_unstarted_practice'
CACHE Practice Load (0.0ms) SELECT "practices".* FROM "practices" INNER JOIN "categories_practices" ON "practices"."id" = "categories_practices"."practice_id" INNER JOIN "categories" ON "categories_practices"."category_id" = "categories"."id" INNER JOIN "courses_categories" ON "categories"."id" = "courses_categories"."category_id" WHERE "courses_categories"."course_id" = $1 ORDER BY "categories_practices"."position" ASC, "courses_categories"."position" ASC, courses_categories.position, practices.position [["course_id", 829913840]]
↳ app/models/user.rb:679:in `unstarted_practices'
Practice Load (2.7ms) SELECT "practices".* FROM "practices" INNER JOIN "categories_practices" ON "practices"."id" = "categories_practices"."practice_id" INNER JOIN "categories" ON "categories_practices"."category_id" = "categories"."id" INNER JOIN "courses_categories" ON "categories"."id" = "courses_categories"."category_id" INNER JOIN "learnings" ON "learnings"."practice_id" = "practices"."id" WHERE "courses_categories"."course_id" = $1 AND "learnings"."user_id" = $2 AND ("learnings"."status" = $3 OR "learnings"."status" = $4 OR "learnings"."status" = $5) ORDER BY "categories_practices"."position" ASC, "courses_categories"."position" ASC, courses_categories.position, practices.position [["course_id", 829913840], ["user_id", 991528156], ["status", 1], ["status", 2], ["status", 3]]
↳ app/models/user.rb:679:in `unstarted_practices'
CACHE Practice Load (0.0ms) SELECT "practices".* FROM "practices" INNER JOIN "categories_practices" ON "practices"."id" = "categories_practices"."practice_id" INNER JOIN "categories" ON "categories_practices"."category_id" = "categories"."id" INNER JOIN "courses_categories" ON "categories"."id" = "courses_categories"."category_id" WHERE "courses_categories"."course_id" = $1 ORDER BY "categories_practices"."position" ASC, "courses_categories"."position" ASC, courses_categories.position, practices.position [["course_id", 829913840]]
↳ app/models/user.rb:679:in `unstarted_practices'
CACHE Practice Load (0.0ms) SELECT "practices".* FROM "practices" INNER JOIN "categories_practices" ON "practices"."id" = "categories_practices"."practice_id" INNER JOIN "categories" ON "categories_practices"."category_id" = "categories"."id" INNER JOIN "courses_categories" ON "categories"."id" = "courses_categories"."category_id" INNER JOIN "learnings" ON "learnings"."practice_id" = "practices"."id" WHERE "courses_categories"."course_id" = $1 AND "learnings"."user_id" = $2 AND ("learnings"."status" = $3 OR "learnings"."status" = $4 OR "learnings"."status" = $5) ORDER BY "categories_practices"."position" ASC, "courses_categories"."position" ASC, courses_categories.position, practices.position [["course_id", 829913840], ["user_id", 991528156], ["status", 1], ["status", 2], ["status", 3]]
↳ app/models/user.rb:679:in `unstarted_practices'
Category Load (1.0ms) SELECT "categories".* FROM "categories" INNER JOIN "categories_practices" ON "categories"."id" = "categories_practices"."category_id" WHERE "categories_practices"."practice_id" = $1 ORDER BY "categories_practices"."position" ASC LIMIT $2 [["practice_id", 1019809339], ["LIMIT", 1]]
↳ app/models/user.rb:690:in `category_having_unstarted_practice'
CACHE Practice Load (0.0ms) SELECT "practices".* FROM "practices" INNER JOIN "categories_practices" ON "practices"."id" = "categories_practices"."practice_id" INNER JOIN "categories" ON "categories_practices"."category_id" = "categories"."id" INNER JOIN "courses_categories" ON "categories"."id" = "courses_categories"."category_id" WHERE "courses_categories"."course_id" = $1 ORDER BY "categories_practices"."position" ASC, "courses_categories"."position" ASC, courses_categories.position, practices.position [["course_id", 829913840]]
↳ app/models/user.rb:679:in `unstarted_practices'
CACHE Practice Load (0.0ms) SELECT "practices".* FROM "practices" INNER JOIN "categories_practices" ON "practices"."id" = "categories_practices"."practice_id" INNER JOIN "categories" ON "categories_practices"."category_id" = "categories"."id" INNER JOIN "courses_categories" ON "categories"."id" = "courses_categories"."category_id" INNER JOIN "learnings" ON "learnings"."practice_id" = "practices"."id" WHERE "courses_categories"."course_id" = $1 AND "learnings"."user_id" = $2 AND ("learnings"."status" = $3 OR "learnings"."status" = $4 OR "learnings"."status" = $5) ORDER BY "categories_practices"."position" ASC, "courses_categories"."position" ASC, courses_categories.position, practices.position [["course_id", 829913840], ["user_id", 991528156], ["status", 1], ["status", 2], ["status", 3]]
↳ app/models/user.rb:679:in `unstarted_practices'
CACHE Practice Load (0.0ms) SELECT "practices".* FROM "practices" INNER JOIN "categories_practices" ON "practices"."id" = "categories_practices"."practice_id" INNER JOIN "categories" ON "categories_practices"."category_id" = "categories"."id" INNER JOIN "courses_categories" ON "categories"."id" = "courses_categories"."category_id" WHERE "courses_categories"."course_id" = $1 ORDER BY "categories_practices"."position" ASC, "courses_categories"."position" ASC, courses_categories.position, practices.position [["course_id", 829913840]]
↳ app/models/user.rb:679:in `unstarted_practices'
CACHE Practice Load (0.0ms) SELECT "practices".* FROM "practices" INNER JOIN "categories_practices" ON "practices"."id" = "categories_practices"."practice_id" INNER JOIN "categories" ON "categories_practices"."category_id" = "categories"."id" INNER JOIN "courses_categories" ON "categories"."id" = "courses_categories"."category_id" INNER JOIN "learnings" ON "learnings"."practice_id" = "practices"."id" WHERE "courses_categories"."course_id" = $1 AND "learnings"."user_id" = $2 AND ("learnings"."status" = $3 OR "learnings"."status" = $4 OR "learnings"."status" = $5) ORDER BY "categories_practices"."position" ASC, "courses_categories"."position" ASC, courses_categories.position, practices.position [["course_id", 829913840], ["user_id", 991528156], ["status", 1], ["status", 2], ["status", 3]]
↳ app/models/user.rb:679:in `unstarted_practices'
CACHE Category Load (0.0ms) SELECT "categories".* FROM "categories" INNER JOIN "categories_practices" ON "categories"."id" = "categories_practices"."category_id" WHERE "categories_practices"."practice_id" = $1 ORDER BY "categories_practices"."position" ASC LIMIT $2 [["practice_id", 1019809339], ["LIMIT", 1]]
↳ app/models/user.rb:690:in `category_having_unstarted_practice'
CACHE (0.0ms) SELECT COUNT(*) FROM "questions" WHERE "questions"."id" NOT IN (SELECT "answers"."question_id" FROM "answers" WHERE "answers"."type" = $1) AND "questions"."wip" = $2 [["type", "CorrectAnswer"], ["wip", false]]
↳ app/views/application/_global_nav.slim:41
CACHE (0.0ms) SELECT COUNT(*) FROM "questions" WHERE "questions"."id" NOT IN (SELECT "answers"."question_id" FROM "answers" WHERE "answers"."type" = $1) AND "questions"."wip" = $2 [["type", "CorrectAnswer"], ["wip", false]]
↳ app/views/application/_global_nav.slim:43
Talk Load (1.0ms) SELECT "talks".* FROM "talks" WHERE "talks"."user_id" = $1 LIMIT $2 [["user_id", 991528156], ["LIMIT", 1]]
↳ app/views/application/_global_nav.slim:66
Rendered application/_global_nav.slim (Duration: 58.5ms | Allocations: 34280)
Rendered application/header/_header_search.html.slim (Duration: 0.3ms | Allocations: 295)
Rendered application/_user_menu.html.slim (Duration: 0.2ms | Allocations: 225)
Rendered application/header/_header_search.html.slim (Duration: 0.2ms | Allocations: 295)
Rendered shared/_modal.html.slim (Duration: 0.7ms | Allocations: 604)
Rendered application/header/_header_links.html.slim (Duration: 1.9ms | Allocations: 2062)
Rendered application/header/_header.html.slim (Duration: 3.4ms | Allocations: 3030)
Rendered application/_flash.html.slim (Duration: 0.1ms | Allocations: 64)
Rendered application/footer/_footer.html.slim (Duration: 0.6ms | Allocations: 603)
User Load (1.0ms) SELECT "users".* FROM "users" LIMIT $1 [["LIMIT", 10]]
↳ app/views/layouts/application.html.slim:41
User Load (1.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2 [["id", 991528156], ["LIMIT", 1]]
↳ app/views/layouts/application.html.slim:41
Rendered /Users/vicugnapacos/.rbenv/versions/3.1.0/lib/ruby/gems/3.1.0/gems/any_login-1.4.4/app/views/any_login/_any_login.html.erb (Duration: 8.3ms | Allocations: 4723)
Rendered layout layouts/application.html.slim (Duration: 141.7ms | Allocations: 84385)
User Update All (2.7ms) UPDATE "users" SET "last_activity_at" = $1 WHERE "users"."id" = $2 [["last_activity_at", "2022-09-06 07:29:26.822183"], ["id", 991528156]]
Completed 200 OK in 152ms (Views: 111.0ms | ActiveRecord: 35.7ms | Allocations: 88246)
Started GET "/api/notifications.json?status=unread" for ::1 at 2022-09-06 16:29:27 +0900
Processing by API::NotificationsController#index as JSON
Parameters: {"status"=>"unread"}
User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 991528156], ["LIMIT", 1]]
↳ app/controllers/application_controller.rb:30:in `init_user'
Rendering api/notifications/index.json.jbuilder
Notification Load (1.4ms) SELECT "notifications".* FROM (SELECT DISTINCT ON (link) * FROM "notifications" WHERE "notifications"."user_id" = $1 AND "notifications"."read" = $2 ORDER BY "notifications"."link" ASC, "notifications"."created_at" DESC, "notifications"."id" DESC LIMIT $3) notifications ORDER BY "notifications"."created_at" DESC [["user_id", 991528156], ["read", false], ["LIMIT", 99]]
↳ app/views/api/notifications/index.json.jbuilder:2
Started GET "/api/questions.json?target=not_solved&page=1" for ::1 at 2022-09-06 16:29:27 +0900
Processing by API::QuestionsController#index as JSON
Parameters: {"target"=>"not_solved", "page"=>"1"}
User Load (1.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 [["id", 459775584]]
User Load (1.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 991528156], ["LIMIT", 1]]
↳ app/views/api/notifications/index.json.jbuilder:2
↳ app/controllers/application_controller.rb:30:in `init_user'
Rendering api/questions/index.json.jbuilder
ActiveStorage::Attachment Load (0.9ms) SELECT "active_storage_attachments".* FROM "active_storage_attachments" WHERE "active_storage_attachments"."record_type" = $1 AND "active_storage_attachments"."name" = $2 AND "active_storage_attachments"."record_id" = $3 [["record_type", "User"], ["name", "avatar"], ["record_id", 459775584]]
Question Load (1.8ms) SELECT "questions".* FROM "questions" WHERE "questions"."id" NOT IN (SELECT "answers"."question_id" FROM "answers" WHERE "answers"."type" = $1) AND "questions"."wip" = $2 ORDER BY "questions"."updated_at" DESC, "questions"."id" DESC LIMIT $3 OFFSET $4 [["type", "CorrectAnswer"], ["wip", false], ["LIMIT", 25], ["OFFSET", 0]]
↳ app/views/api/notifications/index.json.jbuilder:2
↳ app/views/api/questions/index.json.jbuilder:1
ActiveStorage::Blob Load (4.6ms) SELECT "active_storage_blobs".* FROM "active_storage_blobs" WHERE "active_storage_blobs"."id" = $1 [["id", 1]]
User Load (2.6ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ($1, $2, $3) [["id", 991528156], ["id", 253826460], ["id", 459775584]]
↳ app/views/api/notifications/index.json.jbuilder:2
↳ app/views/api/questions/index.json.jbuilder:1
ActiveStorage::VariantRecord Load (2.3ms) SELECT "active_storage_variant_records".* FROM "active_storage_variant_records" WHERE "active_storage_variant_records"."blob_id" = $1 AND "active_storage_variant_records"."variation_digest" = $2 LIMIT $3 [["blob_id", 1], ["variation_digest", "JO2GMsBpNz8fyJD0VI9jyWmfQoA="], ["LIMIT", 1]]
ActiveStorage::Attachment Load (2.0ms) SELECT "active_storage_attachments".* FROM "active_storage_attachments" WHERE "active_storage_attachments"."record_type" = $1 AND "active_storage_attachments"."name" = $2 AND "active_storage_attachments"."record_id" IN ($3, $4, $5) [["record_type", "User"], ["name", "avatar"], ["record_id", 991528156], ["record_id", 253826460], ["record_id", 459775584]]
↳ app/models/user.rb:544:in `avatar_url'
↳ app/views/api/questions/index.json.jbuilder:1
ActiveStorage::Attachment Load (2.4ms) SELECT "active_storage_attachments".* FROM "active_storage_attachments" WHERE "active_storage_attachments"."record_id" = $1 AND "active_storage_attachments"."record_type" = $2 AND "active_storage_attachments"."name" = $3 LIMIT $4 [["record_id", 1], ["record_type", "ActiveStorage::VariantRecord"], ["name", "image"], ["LIMIT", 1]]
ActiveStorage::Blob Load (2.7ms) SELECT "active_storage_blobs".* FROM "active_storage_blobs" WHERE "active_storage_blobs"."id" = $1 [["id", 1]]
↳ app/models/user.rb:544:in `avatar_url'
↳ app/views/api/questions/index.json.jbuilder:1
ActiveStorage::Blob Load (17.2ms) SELECT "active_storage_blobs".* FROM "active_storage_blobs" WHERE "active_storage_blobs"."id" = $1 LIMIT $2 [["id", 35], ["LIMIT", 1]]
Practice Load (2.1ms) SELECT "practices".* FROM "practices" WHERE "practices"."id" = $1 [["id", 315059988]]
↳ app/models/user.rb:544:in `avatar_url'
↳ app/views/api/questions/index.json.jbuilder:1
Disk Storage (0.4ms) Generated URL for file at key: agftqtcsok6347xqavh5jquvu8qa (http://localhost:3000/rails/active_storage/disk/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdDVG9JYTJWNVNTSWhZV2RtZEhGMFkzTnZhell6TkRkNGNXRjJhRFZxY1hWMmRUaHhZUVk2QmtWVU9oQmthWE53YjNOcGRHbHZia2tpUTJsdWJHbHVaVHNnWm1sc1pXNWhiV1U5SW10dmJXRm5ZWFJoTG5CdVp5STdJR1pwYkdWdVlXMWxLajFWVkVZdE9DY25hMjl0WVdkaGRHRXVjRzVuQmpzR1ZEb1JZMjl1ZEdWdWRGOTBlWEJsU1NJT2FXMWhaMlV2Y0c1bkJqc0dWRG9SYzJWeWRtbGpaVjl1WVcxbE9ncHNiMk5oYkE9PSIsImV4cCI6IjIwMjItMDktMTNUMDc6Mjk6MjcuNDEyWiIsInB1ciI6ImJsb2Jfa2V5In19--c31ee65b98567f9c27718e20a642f5591e1e2c30/komagata.png)
Rendered api/users/_user.json.jbuilder (Duration: 38.4ms | Allocations: 11504)
Answer Load (2.5ms) SELECT "answers".* FROM "answers" WHERE "answers"."question_id" IN ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24, $25) [["question_id", 1037106415], ["question_id", 1037106414], ["question_id", 1011540508], ["question_id", 997052767], ["question_id", 985479415], ["question_id", 964407311], ["question_id", 905752117], ["question_id", 904842954], ["question_id", 856388832], ["question_id", 848390702], ["question_id", 847448785], ["question_id", 754319241], ["question_id", 753377142], ["question_id", 735235278], ["question_id", 731397010], ["question_id", 730487661], ["question_id", 700755356], ["question_id", 626119515], ["question_id", 618245462], ["question_id", 617336239], ["question_id", 599025999], ["question_id", 577011943], ["question_id", 516136203], ["question_id", 480185095], ["question_id", 479030270]]
↳ app/views/api/questions/index.json.jbuilder:1
(5.8ms) SELECT COUNT(*) FROM (SELECT DISTINCT ON (link) * FROM "notifications" WHERE "notifications"."user_id" = $1 AND "notifications"."read" = $2 ORDER BY "notifications"."link" ASC, "notifications"."created_at" DESC, "notifications"."id" DESC LIMIT $3) notifications [["user_id", 991528156], ["read", false], ["LIMIT", 99]]
↳ app/views/api/notifications/index.json.jbuilder:14
Rendered api/notifications/index.json.jbuilder (Duration: 92.4ms | Allocations: 32523)
ActsAsTaggableOn::Tagging Load (2.6ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = $1 AND "taggings"."context" = $2 AND "taggings"."taggable_id" IN ($3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24, $25, $26, $27) [["taggable_type", "Question"], ["context", "tags"], ["taggable_id", 1037106415], ["taggable_id", 1037106414], ["taggable_id", 1011540508], ["taggable_id", 997052767], ["taggable_id", 985479415], ["taggable_id", 964407311], ["taggable_id", 905752117], ["taggable_id", 904842954], ["taggable_id", 856388832], ["taggable_id", 848390702], ["taggable_id", 847448785], ["taggable_id", 754319241], ["taggable_id", 753377142], ["taggable_id", 735235278], ["taggable_id", 731397010], ["taggable_id", 730487661], ["taggable_id", 700755356], ["taggable_id", 626119515], ["taggable_id", 618245462], ["taggable_id", 617336239], ["taggable_id", 599025999], ["taggable_id", 577011943], ["taggable_id", 516136203], ["taggable_id", 480185095], ["taggable_id", 479030270]]
↳ app/views/api/questions/index.json.jbuilder:1
User Update All (5.0ms) UPDATE "users" SET "last_activity_at" = $1 WHERE "users"."id" = $2 [["last_activity_at", "2022-09-06 07:29:27.431159"], ["id", 991528156]]
CorrectAnswer Load (2.1ms) SELECT "answers".* FROM "answers" WHERE "answers"."type" = $1 AND "answers"."question_id" IN ($2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24, $25, $26) [["type", "CorrectAnswer"], ["question_id", 1037106415], ["question_id", 1037106414], ["question_id", 1011540508], ["question_id", 997052767], ["question_id", 985479415], ["question_id", 964407311], ["question_id", 905752117], ["question_id", 904842954], ["question_id", 856388832], ["question_id", 848390702], ["question_id", 847448785], ["question_id", 754319241], ["question_id", 753377142], ["question_id", 735235278], ["question_id", 731397010], ["question_id", 730487661], ["question_id", 700755356], ["question_id", 626119515], ["question_id", 618245462], ["question_id", 617336239], ["question_id", 599025999], ["question_id", 577011943], ["question_id", 516136203], ["question_id", 480185095], ["question_id", 479030270]]
Completed 200 OK in 106ms (Views: 58.9ms | ActiveRecord: 41.6ms | Allocations: 39043)
↳ app/views/api/questions/index.json.jbuilder:1
Rendered api/users/_user.json.jbuilder (Duration: 0.7ms | Allocations: 1146)
Rendered api/questions/_question.json.jbuilder (Duration: 2.9ms | Allocations: 2053)
Rendered api/users/_user.json.jbuilder (Duration: 0.5ms | Allocations: 996)
Rendered api/questions/_question.json.jbuilder (Duration: 2.1ms | Allocations: 1859)
Rendered api/users/_user.json.jbuilder (Duration: 0.4ms | Allocations: 938)
Rendered api/questions/_question.json.jbuilder (Duration: 5.2ms | Allocations: 1783)
ActiveStorage::VariantRecord Load (1.4ms) SELECT "active_storage_variant_records".* FROM "active_storage_variant_records" WHERE "active_storage_variant_records"."blob_id" = $1 AND "active_storage_variant_records"."variation_digest" = $2 LIMIT $3 [["blob_id", 1], ["variation_digest", "JO2GMsBpNz8fyJD0VI9jyWmfQoA="], ["LIMIT", 1]]
↳ app/models/user.rb:544:in `avatar_url'
ActiveStorage::Attachment Load (1.5ms) SELECT "active_storage_attachments".* FROM "active_storage_attachments" WHERE "active_storage_attachments"."record_id" = $1 AND "active_storage_attachments"."record_type" = $2 AND "active_storage_attachments"."name" = $3 LIMIT $4 [["record_id", 1], ["record_type", "ActiveStorage::VariantRecord"], ["name", "image"], ["LIMIT", 1]]
↳ app/models/user.rb:544:in `avatar_url'
ActiveStorage::Blob Load (1.1ms) SELECT "active_storage_blobs".* FROM "active_storage_blobs" WHERE "active_storage_blobs"."id" = $1 LIMIT $2 [["id", 35], ["LIMIT", 1]]
↳ app/models/user.rb:544:in `avatar_url'
Disk Storage (0.4ms) Generated URL for file at key: agftqtcsok6347xqavh5jquvu8qa (http://localhost:3000/rails/active_storage/disk/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdDVG9JYTJWNVNTSWhZV2RtZEhGMFkzTnZhell6TkRkNGNXRjJhRFZxY1hWMmRUaHhZUVk2QmtWVU9oQmthWE53YjNOcGRHbHZia2tpUTJsdWJHbHVaVHNnWm1sc1pXNWhiV1U5SW10dmJXRm5ZWFJoTG5CdVp5STdJR1pwYkdWdVlXMWxLajFWVkVZdE9DY25hMjl0WVdkaGRHRXVjRzVuQmpzR1ZEb1JZMjl1ZEdWdWRGOTBlWEJsU1NJT2FXMWhaMlV2Y0c1bkJqc0dWRG9SYzJWeWRtbGpaVjl1WVcxbE9ncHNiMk5oYkE9PSIsImV4cCI6IjIwMjItMDktMTNUMDc6Mjk6MjcuNDY3WiIsInB1ciI6ImJsb2Jfa2V5In19--7a502a4f039edf8fa2abbc0ae91b8b67427b9436/komagata.png)
Rendered api/users/_user.json.jbuilder (Duration: 13.1ms | Allocations: 6614)
Rendered api/questions/_question.json.jbuilder (Duration: 14.3ms | Allocations: 7450)
Rendered api/users/_user.json.jbuilder (Duration: 0.6ms | Allocations: 939)
Rendered api/questions/_question.json.jbuilder (Duration: 1.7ms | Allocations: 1757)
Rendered api/users/_user.json.jbuilder (Duration: 1.2ms | Allocations: 938)
Rendered api/questions/_question.json.jbuilder (Duration: 2.3ms | Allocations: 1755)
Rendered api/users/_user.json.jbuilder (Duration: 0.8ms | Allocations: 938)
Rendered api/questions/_question.json.jbuilder (Duration: 1.8ms | Allocations: 1755)
Rendered api/users/_user.json.jbuilder (Duration: 0.5ms | Allocations: 938)
Rendered api/questions/_question.json.jbuilder (Duration: 1.7ms | Allocations: 1755)
Rendered api/users/_user.json.jbuilder (Duration: 0.7ms | Allocations: 938)
Rendered api/questions/_question.json.jbuilder (Duration: 2.5ms | Allocations: 1755)
Rendered api/users/_user.json.jbuilder (Duration: 0.6ms | Allocations: 938)
Rendered api/questions/_question.json.jbuilder (Duration: 1.9ms | Allocations: 1755)
Rendered api/users/_user.json.jbuilder (Duration: 0.5ms | Allocations: 938)
Rendered api/questions/_question.json.jbuilder (Duration: 2.1ms | Allocations: 1755)
Rendered api/users/_user.json.jbuilder (Duration: 0.8ms | Allocations: 938)
Rendered api/questions/_question.json.jbuilder (Duration: 2.0ms | Allocations: 1755)
Rendered api/users/_user.json.jbuilder (Duration: 0.9ms | Allocations: 938)
Rendered api/questions/_question.json.jbuilder (Duration: 2.5ms | Allocations: 1755)
Rendered api/users/_user.json.jbuilder (Duration: 0.9ms | Allocations: 932)
Rendered api/questions/_question.json.jbuilder (Duration: 2.2ms | Allocations: 1749)
Rendered api/users/_user.json.jbuilder (Duration: 0.7ms | Allocations: 938)
Rendered api/questions/_question.json.jbuilder (Duration: 1.7ms | Allocations: 1755)
Rendered api/users/_user.json.jbuilder (Duration: 0.4ms | Allocations: 938)
Rendered api/questions/_question.json.jbuilder (Duration: 1.6ms | Allocations: 1755)
Rendered api/users/_user.json.jbuilder (Duration: 0.4ms | Allocations: 938)
Rendered api/questions/_question.json.jbuilder (Duration: 1.6ms | Allocations: 1755)
Rendered api/users/_user.json.jbuilder (Duration: 0.4ms | Allocations: 938)
Rendered api/questions/_question.json.jbuilder (Duration: 1.3ms | Allocations: 1755)
Rendered api/users/_user.json.jbuilder (Duration: 0.4ms | Allocations: 938)
Rendered api/questions/_question.json.jbuilder (Duration: 1.6ms | Allocations: 1755)
Rendered api/users/_user.json.jbuilder (Duration: 0.6ms | Allocations: 938)
Rendered api/questions/_question.json.jbuilder (Duration: 1.6ms | Allocations: 1755)
Rendered api/users/_user.json.jbuilder (Duration: 0.6ms | Allocations: 938)
Rendered api/questions/_question.json.jbuilder (Duration: 1.6ms | Allocations: 1755)
CACHE ActiveStorage::VariantRecord Load (0.0ms) SELECT "active_storage_variant_records".* FROM "active_storage_variant_records" WHERE "active_storage_variant_records"."blob_id" = $1 AND "active_storage_variant_records"."variation_digest" = $2 LIMIT $3 [["blob_id", 1], ["variation_digest", "JO2GMsBpNz8fyJD0VI9jyWmfQoA="], ["LIMIT", 1]]
↳ app/models/user.rb:544:in `avatar_url'
CACHE ActiveStorage::Attachment Load (0.0ms) SELECT "active_storage_attachments".* FROM "active_storage_attachments" WHERE "active_storage_attachments"."record_id" = $1 AND "active_storage_attachments"."record_type" = $2 AND "active_storage_attachments"."name" = $3 LIMIT $4 [["record_id", 1], ["record_type", "ActiveStorage::VariantRecord"], ["name", "image"], ["LIMIT", 1]]
↳ app/models/user.rb:544:in `avatar_url'
CACHE ActiveStorage::Blob Load (0.0ms) SELECT "active_storage_blobs".* FROM "active_storage_blobs" WHERE "active_storage_blobs"."id" = $1 LIMIT $2 [["id", 35], ["LIMIT", 1]]
↳ app/models/user.rb:544:in `avatar_url'
Disk Storage (0.5ms) Generated URL for file at key: agftqtcsok6347xqavh5jquvu8qa (http://localhost:3000/rails/active_storage/disk/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdDVG9JYTJWNVNTSWhZV2RtZEhGMFkzTnZhell6TkRkNGNXRjJhRFZxY1hWMmRUaHhZUVk2QmtWVU9oQmthWE53YjNOcGRHbHZia2tpUTJsdWJHbHVaVHNnWm1sc1pXNWhiV1U5SW10dmJXRm5ZWFJoTG5CdVp5STdJR1pwYkdWdVlXMWxLajFWVkVZdE9DY25hMjl0WVdkaGRHRXVjRzVuQmpzR1ZEb1JZMjl1ZEdWdWRGOTBlWEJsU1NJT2FXMWhaMlV2Y0c1bkJqc0dWRG9SYzJWeWRtbGpaVjl1WVcxbE9ncHNiMk5oYkE9PSIsImV4cCI6IjIwMjItMDktMTNUMDc6Mjk6MjcuNTEzWiIsInB1ciI6ImJsb2Jfa2V5In19--6dcd8ff63804ac4f3080bb2aaf89f3ad6589826e/komagata.png)
Rendered api/users/_user.json.jbuilder (Duration: 10.1ms | Allocations: 4970)
Rendered api/questions/_question.json.jbuilder (Duration: 11.4ms | Allocations: 5787)
Rendered api/users/_user.json.jbuilder (Duration: 0.4ms | Allocations: 938)
Rendered api/questions/_question.json.jbuilder (Duration: 1.5ms | Allocations: 1756)
Rendered api/users/_user.json.jbuilder (Duration: 0.4ms | Allocations: 938)
Rendered api/questions/_question.json.jbuilder (Duration: 1.8ms | Allocations: 1755)
Rendered api/users/_user.json.jbuilder (Duration: 0.7ms | Allocations: 938)
Rendered api/questions/_question.json.jbuilder (Duration: 1.9ms | Allocations: 1755)
(1.0ms) SELECT COUNT(*) FROM "questions" WHERE "questions"."id" NOT IN (SELECT "answers"."question_id" FROM "answers" WHERE "answers"."type" = $1) AND "questions"."wip" = $2 [["type", "CorrectAnswer"], ["wip", false]]
↳ app/views/api/questions/index.json.jbuilder:5
Rendered api/questions/index.json.jbuilder (Duration: 163.6ms | Allocations: 95353)
User Update All (0.9ms) UPDATE "users" SET "last_activity_at" = $1 WHERE "users"."id" = $2 [["last_activity_at", "2022-09-06 07:29:27.526176"], ["id", 991528156]]
Completed 200 OK in 182ms (Views: 141.6ms | ActiveRecord: 26.0ms | Allocations: 99667)
Started GET "/rails/active_storage/disk/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdDVG9JYTJWNVNTSWhZV2RtZEhGMFkzTnZhell6TkRkNGNXRjJhRFZxY1hWMmRUaHhZUVk2QmtWVU9oQmthWE53YjNOcGRHbHZia2tpUTJsdWJHbHVaVHNnWm1sc1pXNWhiV1U5SW10dmJXRm5ZWFJoTG5CdVp5STdJR1pwYkdWdVlXMWxLajFWVkVZdE9DY25hMjl0WVdkaGRHRXVjRzVuQmpzR1ZEb1JZMjl1ZEdWdWRGOTBlWEJsU1NJT2FXMWhaMlV2Y0c1bkJqc0dWRG9SYzJWeWRtbGpaVjl1WVcxbE9ncHNiMk5oYkE9PSIsImV4cCI6IjIwMjItMDktMTNUMDc6Mjk6MjcuNDEyWiIsInB1ciI6ImJsb2Jfa2V5In19--c31ee65b98567f9c27718e20a642f5591e1e2c30/komagata.png" for ::1 at 2022-09-06 16:29:27 +0900
Processing by ActiveStorage::DiskController#show as PNG
Parameters: {"encoded_key"=>"[FILTERED]", "filename"=>"komagata"}
User Load (0.9ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 991528156], ["LIMIT", 1]]
User Update All (5.9ms) UPDATE "users" SET "last_activity_at" = $1 WHERE "users"."id" = $2 [["last_activity_at", "2022-09-06 07:29:27.570802"], ["id", 991528156]]
Completed 404 Not Found in 12ms (ActiveRecord: 6.8ms | Allocations: 3939)
Started GET "/rails/active_storage/disk/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdDVG9JYTJWNVNTSWhZV2RtZEhGMFkzTnZhell6TkRkNGNXRjJhRFZxY1hWMmRUaHhZUVk2QmtWVU9oQmthWE53YjNOcGRHbHZia2tpUTJsdWJHbHVaVHNnWm1sc1pXNWhiV1U5SW10dmJXRm5ZWFJoTG5CdVp5STdJR1pwYkdWdVlXMWxLajFWVkVZdE9DY25hMjl0WVdkaGRHRXVjRzVuQmpzR1ZEb1JZMjl1ZEdWdWRGOTBlWEJsU1NJT2FXMWhaMlV2Y0c1bkJqc0dWRG9SYzJWeWRtbGpaVjl1WVcxbE9ncHNiMk5oYkE9PSIsImV4cCI6IjIwMjItMDktMTNUMDc6Mjk6MjcuNDY3WiIsInB1ciI6ImJsb2Jfa2V5In19--7a502a4f039edf8fa2abbc0ae91b8b67427b9436/komagata.png" for ::1 at 2022-09-06 16:29:27 +0900
Started GET "/rails/active_storage/disk/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdDVG9JYTJWNVNTSWhZV2RtZEhGMFkzTnZhell6TkRkNGNXRjJhRFZxY1hWMmRUaHhZUVk2QmtWVU9oQmthWE53YjNOcGRHbHZia2tpUTJsdWJHbHVaVHNnWm1sc1pXNWhiV1U5SW10dmJXRm5ZWFJoTG5CdVp5STdJR1pwYkdWdVlXMWxLajFWVkVZdE9DY25hMjl0WVdkaGRHRXVjRzVuQmpzR1ZEb1JZMjl1ZEdWdWRGOTBlWEJsU1NJT2FXMWhaMlV2Y0c1bkJqc0dWRG9SYzJWeWRtbGpaVjl1WVcxbE9ncHNiMk5oYkE9PSIsImV4cCI6IjIwMjItMDktMTNUMDc6Mjk6MjcuNTEzWiIsInB1ciI6ImJsb2Jfa2V5In19--6dcd8ff63804ac4f3080bb2aaf89f3ad6589826e/komagata.png" for ::1 at 2022-09-06 16:29:27 +0900
Processing by ActiveStorage::DiskController#show as PNG
Parameters: {"encoded_key"=>"[FILTERED]", "filename"=>"komagata"}
Processing by ActiveStorage::DiskController#show as PNG
Parameters: {"encoded_key"=>"[FILTERED]", "filename"=>"komagata"}
User Load (1.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 991528156], ["LIMIT", 1]]
User Load (1.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 991528156], ["LIMIT", 1]]
User Update All (10.5ms) UPDATE "users" SET "last_activity_at" = $1 WHERE "users"."id" = $2 [["last_activity_at", "2022-09-06 07:29:27.610719"], ["id", 991528156]]
Completed 404 Not Found in 30ms (ActiveRecord: 12.0ms | Allocations: 8696)
User Update All (43.5ms) UPDATE "users" SET "last_activity_at" = $1 WHERE "users"."id" = $2 [["last_activity_at", "2022-09-06 07:29:27.612876"], ["id", 991528156]]
Completed 404 Not Found in 63ms (ActiveRecord: 44.8ms | Allocations: 16988)
@yuki-snow1823
rails db:reset
と bin/setup
試したところ、アイコンが表示されました!
過去に同じような現象が発生した方がいらっしゃったらしく、上記の手順を試すことを提案していただきました。 画像のアタッチメントがうまくいっていなかったことが原因だったような…だそうです。(あいまいですみません) 詳しいことはまだわからないのですが、取り急ぎ。
@fuwa-syugyo すれ違い失礼しました!またペアプロももちろん大丈夫です。 本日一旦状況調査し、またご連絡しますね。
ペアプロですが、平日10:00-18:00が主に空いております!
rails db:reset と bin/setup試したところ、アイコンが表示されました!
お!すみません!またすれ違ってしまったようですw 自分も今調査して、そもそも削除してみたらどうなるか?とか試しておりまして、dbのリセットを提案してみようと思っておりました。調査と解決ありがとうございました!
自分の推測としては、アイコン画像は変更しかできないと思いますが、なんらかの原因でkomagataさんのアイコンを削除し、リンク切れになっていたのではないかな...?など考えました。
@fuwa-syugyo もし他に問題ないようでしたらApproveお願いします!komagataさんにレビュー依頼しようと思います。
@yuki-snow1823 返信が遅くなってしまい大変申し訳ございません…! 他に問題はありませんのでApproveとさせていただきます!
@fuwa-syugyo ありがとうございます。コンフリクト解消してkomagataさんにレビュー依頼します💪
@komagata お疲れ様です。mainとの差分修正などでメンバーレビューのApprove後に少し作業をしましたが テスト全てPASSしました。レビューをお願いいたします。
@yuki-snow1823 Conflictの修正をお願いします〜
@komagata 大変お待たせいたしました。コンフリクト解消しましたので、再度ご確認をお願いします。
@komagata 完了しました!
@komagata こちらのレビューお願いします🙏