Reinstitute common embed definitions

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
python

調査の方向性

まず、PR #172 でロールバックされた変更と、issue で参照されている既存の completion-criteria/mastery-criteria 構造を確認します。共通の embed スキーマがどこで定義されているか、また frontend と backend の両方のコンシューマーがそれらにどのようにアクセスしているかを特定します。完了の条件は、共有定義が UUID 以外もカバーし、jsonschema がインストールされていない場合でも安全であることです。

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

説明

P2 - normal

❌ This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.

Current behavior

We rolled back separating some common schema definitions (solely a UUID definition) into a separate file because it was not supporting both frontend and backend usage.

Desired behavior

Separate out some common embed definitions, including more than just the previous UUID definition, and structure it similarly to how completion criteria uses mastery criteria, such that we can utilize the schemas on both the frontend and backend.

  • Since le-utils does not have a hard requirement on jsonschema itself, any usage should be overly defensive on it not being installed

Value add

  • DRY

Possible tradeoffs

  • Complexity of separating schema definitions into more than 2 files
主要言語
Python
スター
7
フォーク
38
平均マージ
1日 3時間
マージ済み PR(30日)
7

環境構築

はじめの一歩

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

learningequality/le-utils のほかの issue

learningequality/le-utils の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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