Design Document: Built-in resources
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 35/100
- Tipo di issue
- Documentazione
- Chiarezza
- Da chiarire
- Stato di attività
- Tranquilla
- Stack tecnologico
- json
- Ambito
- documentation
Direzione di ricerca
Nell'issue non sono indicati file, test o entry point. Definisci e documenta i principi di progettazione per le risorse integrate, inclusi i requisiti elencati relativi a schema, operazione, what-if, proprietà, nullability e risorse complementari; il lavoro è considerato completato quando i principi sono registrati in un documento di progettazione concordato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
We need to define some design principles for built-in resources so we can ensure that the resources that ship with DSC follow best practices and provide first-class ergonomics to users. The built-in resources serve both as examples for resource design and will be among the most-used resources.
During the review for the 3.2 GA, I noticed a few specific design principles we should call out. The following list is non-exhaustive:
- Only define the
_existcanonical property at the top-level for a resource instance JSON Schema and only when the resource can both create and delete instances. The resource must implement the canonical property in adherence to the contract. Don't define_existfor nested instances of a*Listresource, since those instances can't participate in the engine semantics for existence. - When a resource has the
_existcanonical property it should implement theget,set,export, anddeleteoperations. - Always implement what-if support for
setanddeleteoperations. - Always return all non-write-only properties for the actual state of a resource if those property values are knowable. If the values are not knowable for a given operation, omit those properties from the return data. In JSON Schema defining a property as
nulland omitting the property are semantically distinct representations of data. Only populate a field withnullwhen that actually matches the underlying resource behavior (when the resource has a nullable property, rather than an unset or undiscoverable property value). - Always mark properties that can be passed to but not returned by the resource with the
writeOnlykeyword. - Always mark properties that can be returned by but not passed to the resource with the
readOnlykeyword. - Never add
nullas a valid value for a property in the instance JSON Schema whennullindicates that you aren't passing a value for the property. Only allownullfor properties wherenullis a valid value for that property. - When creating a
*Listresource to manage multiple instances, also be sure to create a companion resource that manages a single instance. We should direct users towards the*Listresource options only when the performance impact for single instances is too high. Those resources are much less ergonomic for result output and are somewhat obfuscated in the node graph. Using those resources necessitates tradeoffs in ergonomics for authoring vs reporting and performance vs clarity.
- Lingua principale
- Rust
- Stelle
- 536
- Fork
- 76
- Merge medio
- 1g 11h
- PR unite (30g)
- 15
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Nessun 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 PowerShell/DSC
-
Issue-Enhancement Needs Triage
Difficoltà 4/5 3-5 giorni Idoneità per principianti 30/100
PowerShell/DSC#1750 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Issue-Bug Need-Review
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
PowerShell/DSC#1749 ·
I maintainer di solito rispondono entro 1 giorno
-
Issue-Bug Need-Review
Difficoltà 3/5 1-2 giorni Idoneità per principianti 40/100
PowerShell/DSC#1748 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
"apt install dsc" will install the preview release instead of stableForse già presa @SteveL-MSFT l’ha presa 1 giorno fa. ApertaIssue-Bug Need-Review
PowerShell/DSC#1746 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Issue-Enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
PowerShell/DSC#1737 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di PowerShell/DSC
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
rescript-lang/rescript#8765 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
farion1231/cc-switch#8072 ·
I maintainer di solito rispondono entro 1 giorno
-
Python 3.15 supportForse già presa @amnesiaof l’ha presa oggi. ApertaL: python L: python:uv
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
dependabot/dependabot-core#16524 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
chroma-core/chroma#7879 ·
I maintainer di solito rispondono entro 1 giorno