The schema does not say whether a type has a preview template, so the admin mints a token to learn it
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 54/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- csharp, openapi
- Ambito
- api, backend-api-design
Direzione di ricerca
Start by tracing the Management API's GET /schema response and how it derives the existing localizable and searchable fields. Check how PreviewSettings identifies templates and how permission checks affect preview token minting; acceptance requires previewable to reflect setting changes and return false when the caller lacks permission. Then update the OpenAPI document and both generated clients, and verify the response and client schemas.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Problem
The admin cannot tell whether a content type has a preview template without minting a preview token. The templates are a setting of the site (PreviewSettings), and GET /schema says nothing about them, so the content form mints a token on every read and every save of any type to learn it (#3403, from the review of #3401). A preview token cannot be revoked, so each of these mints is a credential nobody asked for.
Proposal
Say on each type of the Management API's GET /schema whether the site has a preview template for it, as a boolean named previewable, in the style of localizable and searchable, which the admin already reads (#3437), narrowed as the rest of the answer is (a caller who may not mint a preview token for the type gets false). It adds to an answer and changes no model. The OpenAPI document and the generated clients take the member.
Until it is merged the admin mints only when the preview pane opens, for any type, and reads the member when it is there (#3403).
Acceptance
-
GET /schemasays for each type whether the site has a preview template for it, and follows a change of the setting - A caller who may not mint a preview token for the type reads
false - The OpenAPI document and the two clients have the member
For workstation B (#3356). Asked for by #3403.
- Lingua principale
- C#
- Stelle
- 567
- Fork
- 107
- Merge medio
- 1h 19m
- PR unite (30g)
- 353
Preparare l'ambiente
- Include un Dockerfile o un 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 fluentcms/FluentCMS
-
area:localization plugin type:bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
area:storage type:bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
I maintainer di solito rispondono entro 1 giorno
-
area:testing type:bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
area:api area:publishing type:feature
Difficoltà 4/5 3-5 giorni Idoneità per principianti 55/100
fluentcms/FluentCMS#3473 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
area:storage plugin type:bug
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di fluentcms/FluentCMS
Issue simili
-
fix(ocr): compile the Tesseract-free pipeline with Tokio runtimeForse già presa @Goldziher l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
priority:P2
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
lompotc silently drops Java/C# class members past 128 instead of erroring, as its header claimsApertabug sev-5 vm
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
-
area:jobads-cv bug FE mvp P3
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
klasolsson81/jobbliggaren#2271 ·
I maintainer di solito rispondono entro 1 giorno