Conversation
|
@manabeai ありがとうございます! |
There was a problem hiding this comment.
Pull request overview
This PR creates a comprehensive seed file for development and testing purposes, populating the database with sample users, contests, problems, testcases, submissions, and posts. The seed data includes various user roles (admin, writer, members), different types of contests (past, upcoming, practice), and complete problem setups with testcases. As noted in the PR description, submission file uploads to cloud storage are not fully implemented, meaning submissions are created as database records without actual code files.
Changes:
- Replaced example comments with a complete seed data implementation
- Added creation of 7 users with different roles (admin, writer, 5 regular members)
- Added 3 contests representing different scenarios (past, upcoming, practice)
- Added 3 problems with associated testcases, testcase sets, and sample submissions
- Added sample posts and contest admin assignments
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
|
||
| testcase_set_b = TestcaseSet.create!( | ||
| problem_id: problem_b.id, | ||
| name: "All", |
There was a problem hiding this comment.
There is a trailing whitespace after "All" on this line. Consider removing it for consistency with the rest of the code.
| name: "All", | |
| name: "All", |
seedファイルを作成。
cloud strageに保存している箇所はちゃんとできてないです