-
Notifications
You must be signed in to change notification settings - Fork 74
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
テストデータにアイコンが小さい画像のユーザーを追加 #3660
Conversation
@Ichiyo14 |
@nga20167304 |
@Ichiyo14 |
@komagata |
https://github.com/fjordllc/bootcamp/wiki/%E3%81%B5%E3%82%8A%E3%81%8B%E3%81%88%E3%82%8A%E3%83%BB%E8%A8%88%E7%94%BB%E3%83%9F%E3%83%BC%E3%83%86%E3%82%A3%E3%83%B3%E3%82%B02021%E5%B9%B412%E6%9C%8801%E6%97%A5 |
@machida |
@ShotaTsuru |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nga20167304
ファイルの画像がrails db:seedでサンプルユーザーが作られた際に添付できておりませんので修正をお願い致します🙇♂️
userの画像添付に関してはkomagataさんやmachidaさんの画像がどのように添付されているか調査してみると判明するかと思います!
探し方としては、
- komagataさんの画像がどこに保存されているかを調べる。
- その画像がどのコードによって添付されているかを調べる。大抵の場合そのフォルダ名がパスとして使用されているので検索をかけると出てきます。
- 添付されている振る舞いがあるコードを見て自分の実装をどのようにすればいいか推測する。
のような流れで実装の方法が見つかるかと思います。
まず調査の仕方などからお伝えできればと思い段階を追って説明しておりますのでご了承くださいませ。
もし不明な点があれば再度お尋ねいただければと思います!!🙇♂️🙇♂️🙇♂️
yml内の実装は概ね大丈夫かと思います。ただ、user要素内のfeacebook urlなどは架空のものを使用したりするほうがいいかもしれません。
@ShotaTsuru |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nga20167304
ヒントの参照並びに、修正ありがとうございます!😊
開発環境でサーバーを立ち上げて再度ユーザー一覧で確認したところ、
現状courseの情報がnilとエラーが出てしまいます。
コンフリクト修正時に必要な登録情報が欠けてしまったため、アカウントにログインもできないようです。
コンフリクト解消前の情報に書き換えdb:resetすると正しくアカウントにもログインができましたので現在のuser情報とコンフリクト前のコミットのuser情報を比較して差分をなくしていただければ解消するかと思います!
bf4d559
to
8047175
Compare
@ShotaTsuru |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nga20167304
修正ありがとうございます!
間違うことは良いと思いますし、僕もよく間違えるので謝らないでください〜🙇♂️🙇♂️
動作確認が確認できました!LGTMです😊😊
補足で足すとすれば、descriptionの項目に今回に、ユーザーが何のテストユーザーなのかを説明してあると、今後使用する開発者が何のためのデータかがわかるかと思います!
項目としてマストな部分かは自分では決めかねるので、
あとはkomagataさんにレビューを依頼いただければと思います!
@komagata |
@ShotaTsuru |
@nga20167304 (CC: @ShotaTsuru ) 確かに @ShotaTsuru さんのおっしゃるように、何のためのユーザーなのかDescriptionかymlにコメントとして書いておくていいかもです! |
d8ae6be
to
f5f6d50
Compare
@komagata |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
確認しました、OKですー🙆♂️
issue: #3615
概要
テストデータに小さい画像のアイコンを登録しているユーザーを追加する
使用する画像
使用する画像が48x 48というサイズがあるので、アイコンのサイズ(88x 88)より小さいのでこの画像を使用しました。
追加後
thuynga
という名前のユーザーを追加しました。注意点
Binary file not shown.
が表示され、追加分の画像が表示されませんが、以上の画像のように確認ができます!