Skip to content
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

Merged
merged 14 commits into from
Dec 4, 2024
Merged

Conversation

kavos113
Copy link

@kavos113 kavos113 commented Nov 5, 2024

#1158 をopenapi向けに移植
middlewareが未実装です

@kavos113 kavos113 requested a review from kaitoyama November 5, 2024 07:07
@kavos113
Copy link
Author

kavos113 commented Nov 9, 2024

openapiのスキーマ変更に合わせて修正しました

Copy link
Contributor

@kaitoyama kaitoyama left a 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)",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

これ、true->falseに対してエラーが発生するっていうtestが欲しいですね

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

今の実装だと,controllerの中でリクエストが来た時に匿名→非匿名のチェックをして返していて,modelのUpdateQuestionnaireでは匿名→非匿名のチェックをやっていないと思います(なので,このテストケースはエラーなしで通るはずです)
modelの中にも匿名→非匿名のチェックを入れた方がいいですかね?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

あー、そっかー、であればcontrollerにおいおいテスト追加するとかで対応ですかね。(ほかのビジネスロジックもcontrollerにありそうなので)

@kaitoyama kaitoyama self-requested a review December 2, 2024 12:58
Copy link
Contributor

@kaitoyama kaitoyama left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTMです

@kaitoyama
Copy link
Contributor

あとでconflict直します

@kaitoyama kaitoyama merged commit b934618 into fix/openapi Dec 4, 2024
4 of 7 checks passed
@kaitoyama kaitoyama deleted the fix/openapi-anonymous-response branch December 4, 2024 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants