-
Notifications
You must be signed in to change notification settings - Fork 4
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
匿名解答の追加(openapi) #1280
匿名解答の追加(openapi) #1280
Conversation
openapiのスキーマ変更に合わせて修正しました |
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.
遅れてすみません。一点だけ追加仕様に対するテストの作成お願いします!
}, | ||
}, | ||
{ | ||
description: "update is_anonymous(false->true)", |
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.
これ、true->falseに対してエラーが発生するっていうtestが欲しいですね
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.
今の実装だと,controllerの中でリクエストが来た時に匿名→非匿名のチェックをして返していて,modelのUpdateQuestionnaireでは匿名→非匿名のチェックをやっていないと思います(なので,このテストケースはエラーなしで通るはずです)
modelの中にも匿名→非匿名のチェックを入れた方がいいですかね?
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.
あー、そっかー、であればcontrollerにおいおいテスト追加するとかで対応ですかね。(ほかのビジネスロジックもcontrollerにありそうなので)
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.
LGTMです
あとでconflict直します |
#1158 をopenapi向けに移植
middlewareが未実装です