Dashboard request data field is sometimes disabled with no example
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- Ein halber Tag
- Anfängerfreundlichkeit
- 70/100
Rechercherichtung
Start in src/TickerNet.Utilities/TickerHelper.cs around line 19, where the request JsonSerializerOptions are built without a type info resolver. Then read JsonExampleGenerator (around lines 26-35) to see why the GetTypeInfo failure is cached, and CRUDTimeTickerDialogComponent.vue around lines 528-530 where a missing example disables the field. Write a test that reproduces the empty functionRequestType before changing the resolver and cache behaviour; done means examples generate on first use and the dialog field stays editable.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
What happens
In the dashboard's "Add time ticker" dialog, the request data field is sometimes disabled and the example is empty, and functionRequestType is empty in the functions API. It can start working later without any change.
The request JSON options (TickerHelper, src/TickerNet.Utilities/TickerHelper.cs, around line 19) default to new JsonSerializerOptions() with no type info resolver. JsonExampleGenerator (around line 26) calls GetTypeInfo, which throws until some other serialisation has set a resolver, and the failure is cached for good (around lines 28-35). The dialog then disables the field because there's no example (CRUDTimeTickerDialogComponent.vue, around lines 528-530).
Fix idea
Give the request options a resolver by default (DefaultJsonTypeInfoResolver when reflection is enabled), don't cache failures, and keep the field editable when there's no example.
Found while checking which problems that TickerQ fixed after the fork still exist in TickerNet. Fix it from this description and TickerNet's own code only: never read or copy code from TickerQ 10.5.0 or later (see CONTRIBUTING.md). Please add a test that fails before the fix.
- Vorherrschende Sprache
- C#
- Sterne
- 0
- Forks
- 2
- Ø Merge
- 1 Std. 8 Min.
- Gemergte PRs (30 T.)
- 24
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
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 TickerNet/TickerNet
-
.NET bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
Maintainer antworten meist innerhalb von 1 Tag
-
.NET enhancement good first issue roadmap
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
Document PathBase inside the dashboard branch and WebDAV on IISEvtl. vergeben @harryhawwy69 hat das heute übernommen. Offendocumentation
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 40/100
Maintainer antworten meist innerhalb von 1 Tag
-
TickerFunctionProvider's registry is publicly writableEvtl. vergeben @harryhawwy69 hat das heute übernommen. Offen.NET bug
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 45/100
Maintainer antworten meist innerhalb von 1 Tag
-
Cron editor accepts 7 for Sunday, then saving fails with a generic errorEvtl. vergeben @harryhawwy69 hat das heute übernommen. Offenbug good first issue javascript
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 38/100
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in TickerNet/TickerNet
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
dotnet-outdated/dotnet-outdated#871 ·
Maintainer antworten meist innerhalb von 1 Tag
-
triage/untriaged
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
unoplatform/uno#26676 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
jhaizhou-ops/S2Arm#2177 · 3 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
area-CodeGen-coreclr untriaged
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
dotnet/runtime#138181 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
CO spearhead is too loudOffenS: Untriaged
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
Maintainer antworten meist innerhalb von 2 Tagen