Azure / Azure/data-api-builder
[CLI]: `dab update` Cache Settings
- Vorherrschende Sprache
- C#
- Sterne
- 1.5k
- Forks
- 370
- Ø Merge
- 3 T. 22 Std.
- Gemergte PRs (30 T.)
- 9
Beschreibung
Add capability to modify global and entity level cache settings within the CLI.
cache properties currently take the form:
```json
"cache": {
"ttl-seconds": 12,
"enabled": true
}
```
- `ttl-seconds` defaults to `5`
- `enabled` defaults to `false`
The model file for cache options has a hidden/non-json exposed property called `isUserDefined`. This property automatically captures whether the user explicitly sets `ttl-seconds`. If the user doesn't explicitly set a value, DAB uses the configured global cache `ttl-seconds` or if global settings aren't explicitly set, uses 5 seoconds. -> for CLI, if user doesn't explicitly set `ttl-seconds` DO NOT assume a default value and set. Just pass null.
When user does not define `ttl-seconds` the property `ttl-seconds` should NOT be written to the output JSON file. That is the behavior now, and shouldn't change.
Beitragsleitfaden
Rechercherichtung
Finde den CLI-Einstiegspunkt und die Implementierung von `dab update`, und verfolge anschließend, wie globale und Entitäts-Cache-Einstellungen modelliert und serialisiert werden. Überprüfe das Verhalten für `ttl-seconds`, `enabled` und ausgelassene Werte; als erledigt gilt die Aufgabe, wenn explizite Werte aktualisiert werden können, während ein ausgelassenes `ttl-seconds` als null übergeben wird und in der Ausgabe-JSON weiterhin fehlt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- csharp
- Bereich
- cli
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 42/100