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

クイズ推薦、生成機能の修正 #80

Merged
merged 8 commits into from
Sep 23, 2024
Merged

Conversation

Z00One
Copy link
Member

@Z00One Z00One commented Sep 23, 2024

🔍 このPRで解決したい問題は何ですか?

実装した機能や解決した課題、PRを開くきっかけや目的をReviewerが理解しやすいように書いてください。
バックログのリンク、ダイアグラム、Figmaなどの関連ドキュメントを添付するとより良いです。

  • 複数のクイズ推薦、生成できるように機能修正

✨ このPRで主に変わったことは何ですか?

問題を解決しながら、主な変更点を書いてください。

  • クイズに関するモジュールのサービスコード

🔖 主な変更点以外に追加で変更された部分はありますか?

ない場合は「なし」と記載してください。

  • dto

🙏🏻 Reviewerに特に見ていただきたい部分はありますか?

開発過程で他の方の意見が気になったり、クロスチェックが必要だと感じたコードがあれば教えてください。

🩺 このPRでテストや検証が必要な部分はありますか?

テストが必要な項目やテストコードが追加されたら一緒に書いてください。

📚 関連するIssueやJira、ドキュメント

このPRが解決しようとしている問題に関連するIssueやドキュメント、Jiraがあればリンクを記載してください。Jiraの場合タイトルの形で添付してください。

🖥 作動する様子

スクリーンショットや録画したビデオ、またはgifを追加して、Reviewerが変更点を理解するのに役立ててください。

📌 PRを行う際の注意点

  • Reviewerはコードレビュー時に良いコードの方向性を示しますが、コード修正を強制することはありません。
  • Reviewerは良いコードを見つけた場合、賞賛と励ましを惜しみません。
  • レビューは特別なケースでない限り、Reviewerに指定された時点から3日以内に行ってください。
  • コメント作成時にPrefixにP1、P2、P3を書いていただくと、Assigneeがより明確にコメントに対して対応することができます。
    • P1 : 必ず反映してください (Request Changes) - 問題が発生したり、脆弱性が発見されたケースなど。
    • P2 : 反映を積極的に検討していただければと思います (コメント)。
    • P3 : こんな方法もあるんじゃないかな~などの些細な意見です (Chore)。

- Updated variable names in the quiz controller spec file to match the new naming conventions
- Renamed CreateUpdateQuizDto to CreateQuizzesDto and UpdateQuizDto to CreateUpdateQuizDto
- Updated function parameters and return values accordingly
- Updated test cases to reflect the changes made in the controller
Add IsNotEmpty validation decorators to the Answer, Commentary, and QuizContent classes in create-update.dto.ts to ensure that required fields are not empty. Also, added ArrayNotEmpty validation decorator to the content property in CreateQuizzesDto class.
- Added QuizContent interface to define the structure of quiz content
- Updated getQuizzes method to return an array of QuizContent objects
- Updated prompt template to include multiple-choice quiz structure
- Updated ChatOpenAI temperature to 0.85 for better responses
- Updated method parameters in the update and create methods of the QuizService class
- Refactored logic to handle multiple QuizContent objects in the create method
- Improved error handling and data processing in the getQuizzesByLLM method
…s at once

Updated the create method in the QuizRepository to accept an array of QuizCreateManyInput objects, allowing for the creation of multiple quizzes in a single call.
- Changed CreateUpdateQuizDto to CreateQuizzesDto and UpdateQuizDto for consistency.
- Updated the method name from getQuizByLLM to getQuizzesByLLM for better clarity.
- Adjusted the response types in the API response decorators accordingly.
The import statement for CreateUpdateQuizDto in quiz-bank.controller.spec.ts was updated to use UpdateQuizDto for consistency
@Z00One Z00One added ✨ Feature 기능 개발 ✅ Test test 관련(storybook, jest...) 🔨 Refactor 코드 리팩토링 📬 API 서버 API 통신 🆗 safe CI workflow 동작 관련 labels Sep 23, 2024
@Z00One Z00One merged commit 258563d into YJU-OKURA:main Sep 23, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📬 API 서버 API 통신 ✨ Feature 기능 개발 🔨 Refactor 코드 리팩토링 🆗 safe CI workflow 동작 관련 ✅ Test test 관련(storybook, jest...)
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants