Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Factory reset accepts reseed: true but cannot re-seed

オープン
#205 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 4 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
70/100
issue の種類
リファクタリング
明瞭さ
明確に書かれている
活発さ
静か
技術スタック
typescript
領域
api, backend, database

調査の方向性

まず、issue に記載されている seed スクリプトと POST /api/admin/reset ルートを見つけます。seed スクリプトを呼び出し可能なエントリポイント seed(prisma) を中心にリファクタリングし、CLI エントリポイントは維持します。次に、reset ルートから reseed: true の場合にそれを呼び出すようにし、レスポンスで手動の再 seed が必要だと報告されなくなったことを確認します。

索引モデルが issue の本文から書いたものです。

説明

area: product roadmap roadmap: later

POST /api/admin/reset accepts a reseed flag but cannot honour it:

    if (reseed) {
        // The seed script uses a top-level async IIFE with its own PrismaClient,
        // so it cannot be cleanly imported. Manual re-seed is required.
        reseeded = false;
    }

It returns note: 'Manual re-seed required. Run: npx prisma db seed'.

Why it matters

Minor, but the API accepts a parameter it silently declines to act on. The caller has to read the response note to discover the reset left an empty database.

Fix

Refactor the seed script to export a callable seed(prisma) function, keeping the IIFE only as the CLI entry point, then call it from the reset route. That makes reseed: true mean what it says.

主要言語
TypeScript
スター
10
フォーク
4
平均マージ
4日 2時間
マージ済み PR(30日)
7

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

CopilotKit/outpost のほかの issue

CopilotKit/outpost の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。