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

Fix database schema patch: api_constraints should support multiple inputs per task type

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

@vaishnavi192 がすでに取り組んでいます。

2026年3月9日 から。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
42/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python
領域
databases

調査の方向性

src/routers/openml/tasktype.py:70 から始めて、task_type_inout テーブルのスキーマと関連するデータベースマイグレーションを、issue #165 のコンテキストも含めて調査してください。複数の入力と個別の api_constraints がどのように表現されているかを確認し、その後、テストデータベースを更新してマイグレーションを追加し、workaround を削除できるようにするとともに、複数入力のタスクタイプが正しく動作するようにしてください。

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

説明

Description

There's a TODO comment indicating that api_constraints in the test database currently only supports one input per task type, requiring a database patch.

Location

src/routers/openml/tasktype.py:70

# api_constraints is for one input only in the test database (TODO: patch db)
if isinstance(task_type_input.api_constraints, str):
    constraint = json.loads(task_type_input.api_constraints)
    input_["data_type"] = constraint["data_type"]

Impact

  • Limited functionality for task types with multiple inputs
  • Database schema doesn't match expected behavior
  • Workaround code required in application layer

Expected Behavior

The database schema should properly support multiple inputs per task type with individual api_constraints for each.

Suggested Implementation

  1. Review current database schema for task_type_inout table
  2. Ensure api_constraints can store multiple entries or is properly normalized
  3. Update test database with correct schema
  4. Remove conditional workaround code once schema is fixed
  5. Add database migration script

Related

  • Issue #165 (Database Migration Meta Issue)
主要言語
Python
スター
17
フォーク
50
PR マージ指標
30日以内にマージされた PR はありません

環境構築

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

はじめの一歩

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

openml/server-api のほかの issue

openml/server-api の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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