Dashboard request data field is sometimes disabled with no example
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- Mezza giornata
- Idoneità per principianti
- 70/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- C#
- Stelle
- 0
- Fork
- 2
- Merge medio
- 1h 8m
- PR unite (30g)
- 24
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di TickerNet/TickerNet
-
.NET bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno
-
.NET enhancement good first issue roadmap
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Document PathBase inside the dashboard branch and WebDAV on IISForse già presa @harryhawwy69 l’ha presa oggi. Apertadocumentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 40/100
I maintainer di solito rispondono entro 1 giorno
-
TickerFunctionProvider's registry is publicly writableForse già presa @harryhawwy69 l’ha presa oggi. Aperta.NET bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
I maintainer di solito rispondono entro 1 giorno
-
Cron editor accepts 7 for Sunday, then saving fails with a generic errorForse già presa @harryhawwy69 l’ha presa oggi. Apertabug good first issue javascript
Difficoltà 3/5 1-2 giorni Idoneità per principianti 38/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di TickerNet/TickerNet
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
dotnet-outdated/dotnet-outdated#871 ·
I maintainer di solito rispondono entro 1 giorno
-
triage/untriaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
unoplatform/uno#26676 ·
I maintainer di solito rispondono entro 1 giorno
-
[问题] 导出文件时,提示后面还有1243390911步Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
jhaizhou-ops/S2Arm#2177 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
area-CodeGen-coreclr untriaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
dotnet/runtime#138181 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
CO spearhead is too loudApertaS: Untriaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
I maintainer di solito rispondono entro 2 giorni