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
メンターが未アサインの提出物にコメントしたら、担当者になったことを画面上に反映するようにした #4518
メンターが未アサインの提出物にコメントしたら、担当者になったことを画面上に反映するようにした #4518
Conversation
@niikz |
@eatplaynap |
98a1f72
to
b1eccc8
Compare
@niikz |
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.
大変お待たせしてしまいすみません〜🙇 ペアプロも見に来てくださりありがとうございました!!
コメントしましたのでお手すきの際にご確認お願いいたします!🙏
.order_for_list | ||
.page(params[:page]) | ||
@products = if params[:id].present? | ||
Product.where(id: params[:id]) |
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.
こちらの条件分岐を追加した部分がよく分からなかったので教えていただきたいです〜🙇
id
を指定するケースではshowアクションが適しているのかなと思いました。
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.
既存のjbuilderからの情報を利用するためにindex内に条件分岐の形で書いていましたが、確かに意味的にshowに書くべき内容でした!
showアクションを導入し、関連する箇所を書き換えました〜!
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.
修正後のコードもとても分かりやすくなっていて理解できました!ありがとうございます😊
@eatplaynap
お手すきの際にご確認お願いいたします〜🙏 |
b1eccc8
to
2c5189a
Compare
@niikz
|
dd11109
to
6b94252
Compare
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.
@eatplaynap
修正ありがとうございます〜!
descriptionも確認しました!私からはOKです〜🙆♀️
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です〜🙆♂️
@eatplaynap すみません、OKしてしまった後なのですが、conflictしているので解消をお願い致します〜。 |
6b94252
to
c968cd2
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です〜🙆♂️
@eatplaynap 本番環境で動作することを確認しました。 |
Issue概要
担当者のいない提出物にメンターがコメントすると担当者になるという機能がありますが、画面上では担当になったことがわからなかったので、画面上でもアサインが分かるように変更しました。
変更前
コメントを行うだけで提出物の担当者にはなっているが、画面上からは通常のコメントと違いがなく、リロードしないと「担当する」ボタンが「担当から外れる」ボタンに切り替わらない
変更後
確認方法
feature/visualize-assignment-when-mentor-commented-on-unassigned-product
をローカルに取り込むbin/setup
実行bin/rails s
でサーバーを立ち上げる