Error message if open date not set

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

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

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

評価

難易度
3/5
見積もり時間
半日
初心者へのやさしさ
38/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
perl
領域
backend

調査の方向性

The warning comes from a numeric lt comparison at line 131 of lib/WeBWorK/ContentGenerator/ProblemSets.pm, which receives an empty open date. Start there, then check how the Sets Manager form saves and displays that date, since it shows 12/31/69 while the edit field is blank. Done means the Assignments page no longer emits the non-numeric warning for an empty open date, and the empty value is either handled or rejected on save.

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

説明

Somehow an instructor ended up with an empty open date for one assignment (I am unsure how they reached this situation). They were seeing s cryptic error message on the Assignments page:

Argument "" isn't numeric in numeric lt (<) at /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/ProblemSets.pm line 131.

When viewing sets in the Sets Manager, the empty date was displayed as "12/31/69, 4:00 PM". But clciking to edit that set, the field was empty.

Maybe nothing can be done about this, but just in case, I thought I would report it.

主要言語
Perl
スター
164
フォーク
167
平均マージ
6日 7時間
マージ済み PR(30日)
27

環境構築

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

はじめの一歩

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

openwebwork/webwork2 のほかの issue

openwebwork/webwork2 の issue をすべて見る

似ている issue

Perl の issue をもっと見る

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

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