When a set def file numbers a problem as 0
Maintainer antworten meist innerhalb von 4 Tagen
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Anfängerfreundlichkeit
- 35/100
Rechercherichtung
The problem-id check that accepts a leading 0 is in DB.pm around lines 2414-2419, as the issue describes. Read that block and the error message beside it, then confirm how a set def file with problem id 0 gets through. Done means the regex rejects a leading 0 and the message names the bad id, and the maintainers have agreed whether the whole import should halt. The discussion is unresolved and the issue has been idle for about three years, so ask on the issue before writing code.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
This is discussed at https://github.com/openwebwork/webwork2/pull/2194#issuecomment-1811919002, but I'm moving it to an issue. The issue is about what can happen if a set def file uses 0 as a problem id.
Some discussion on that thread is about how to salvage the situation and what new number to use for the problem numbered 0. But I suggest that if the set def file has a bad problem id anywhere, the whole thing should halt and no problem set should be created. With an informative error message about what is wrong with the set def file.
The cases of a set definition containing any invalid problem id comes from someone editing a set definition file by hand.
Possibly from other places too though. PreTeXt automatically creates set def files for all the WW exercises from a section of a book. I don't think it can create invalid problem numbers, but my point is that some automatic creation of set def files can come from external sources. PTX is one example (possibly the only one but who knows).
My suggestion would be to just edit lines 2414-2419 of DB.pm. The regex pattern could change to disallow a leading 0. And the message could be rephrased. If there is an existing set def file out in the world that uses 0 for a problem, it will now fail to import but....good?
- Vorherrschende Sprache
- Perl
- Sterne
- 164
- Forks
- 167
- Ø Merge
- 6 T. 7 Std.
- Gemergte PRs (30 T.)
- 27
Entwicklungsumgebung
- Enthält ein Dockerfile oder eine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Kein Beitragsleitfaden
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus openwebwork/webwork2
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
openwebwork/webwork2#3295 ·
Maintainer antworten meist innerhalb von 4 Tagen
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
openwebwork/webwork2#3290 ·
Maintainer antworten meist innerhalb von 4 Tagen
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 62/100
openwebwork/webwork2#2997 ·
Maintainer antworten meist innerhalb von 4 Tagen
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 56/100
openwebwork/webwork2#3276 ·
Maintainer antworten meist innerhalb von 4 Tagen
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 52/100
openwebwork/webwork2#3272 · 6 Kommentare ·
Maintainer antworten meist innerhalb von 4 Tagen
Alle Issues in openwebwork/webwork2
Ähnliche Issues
-
nftables: "Display comment in rules list?" option has no effect, comments not shown in rules listOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
Type: Bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
inverse-inc/packetfence#9707 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 67/100
RotherOSS/otobo#6457 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
The reply-to for the pro user signup emails should be the email of the user instrad of the contact@ emailEvtl. vergeben @sisodiaumang hat das heute übernommen. Offen🏭 producer platform - spam
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
openfoodfacts/openfoodfacts-server#15447 ·
Maintainer antworten meist innerhalb von 1 Tag