Skip to content

seedファイルを作成#102

Open
manabeai wants to merge 1 commit intomofecoder:masterfrom
manabeai:feature/create-seeds
Open

seedファイルを作成#102
manabeai wants to merge 1 commit intomofecoder:masterfrom
manabeai:feature/create-seeds

Conversation

@manabeai
Copy link

seedファイルを作成。
cloud strageに保存している箇所はちゃんとできてないです

@kichi2004
Copy link
Collaborator

@manabeai ありがとうございます!
v4 開発に関する PR については v4-dev に向けていただいてもよろしいでしょうか?

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

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",
Copy link

Copilot AI Feb 17, 2026

Choose a reason for hiding this comment

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

There is a trailing whitespace after "All" on this line. Consider removing it for consistency with the rest of the code.

Suggested change
name: "All",
name: "All",

Copilot uses AI. Check for mistakes.
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