Create a QuantityValue from a string as supported by the UI

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
38/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
java, php
領域
api, backend

調査の方向性

Start by comparing the UI syntax described in the issue, including 4~, with the referenced PHP parsing code in DataValues/Number’s ValueParsers directory. Identify where Wikidata-Toolkit constructs QuantityValues and what tests cover that behavior; done means a string can produce a QuantityValue with the inferred amount and bounds. The issue names no WDTK files or tests, so locating those entry points will take project familiarity.

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

説明

enhancement

The Wikibase UI exposes just two things to users when creating a QuantityValue: the amount and the unit. The lower and upper bounds are inferred from the amount using various syntactic constructs. For instance, 4~ is parsed into "amount 4, lower bound 3.5, upper bound 4.5".

It would be great if wdtk supported the same syntax to construct QuantityValues, just from a string. That would involve migrating the PHP parsing code from https://github.com/DataValues/Number/tree/d0ec661c7b3fa49b5be39638d745256e2f8bc141/src/ValueParsers … What an exciting task!

主要言語
Java
スター
412
フォーク
116
平均マージ
3日 23時間
マージ済み PR(30日)
2

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

Wikidata-Toolkit/Wikidata-Toolkit のほかの issue

Wikidata-Toolkit/Wikidata-Toolkit の issue をすべて見る

似ている issue

Java の issue をもっと見る

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

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