You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/internal/resources-framework.md
+19-8Lines changed: 19 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -127,7 +127,7 @@ long-term goal. This page documents what exists now.
127
127
|**Descriptor**| Schema (`TypeUri`) + selector name/aliases identifying a type for routing/presentation; domain type `ResourceTypeDescriptor`, carried in `dill` as `ResourceDispatcherMeta`. |
128
128
|**Manifest**| The user-authored wire document (`$schema`/`headers`/`spec`) in YAML or JSON. |
129
129
|**Spec**| The desired-state portion authored by the user; stored as `serde_json::Value`. |
130
-
|**Status**| Server-owned observed state (`ResourceStatus`: `phase`, optional `observedGeneration`/`reconciledAt`/`conditions`). `conditions` is a `TypeRef → JSON` map. `generation` lives in **headers**, not status. |
130
+
|**Status**| Server-owned observed state (`ResourceStatus`: `phase`, optional `observedGeneration`/`reconciledAt`/`conditions`). `conditions` is a `TypeRef → JSON` map. `generation` lives in **headers**, not status. On a `Resource` (domain/GraphQL), `status` is always present — a resource with no reconciliation yet gets a synthesized `Pending` status with no conditions. The `Option` lives only in the persisted `ResourceSnapshot` row (`None` before the first write completes). |
131
131
|**Snapshot**| The persisted materialized form of a resource (`ResourceSnapshot`). |
132
132
|**Phase**| Lifecycle stage: `Pending`, `Reconciling`, `Ready`, `Failed` (ODF RFC-018 `ResourcePhase`; see [§13 state machine](#lifecycle-state-machine)). |
133
133
|**Condition**| A status signal keyed by a condition schema URI. Built-ins: `Accepted`, `Ready`, `Reconciling`; each value has `status`, `reason`, optional `message`, `lastTransitionTime`. |
Identifies the controlling entity, a bounded context that this resource belongs to, and the version. Url should follow the pattern `{base-url}/{context}/{version}/{name}.json` e.g. `https://opendatafabric.org/schemas/dataset/v1/Dataset.json`.
3873
+
"""
3864
3874
schema: TypeUri!
3875
+
"""
3876
+
Container for identity and ownership information of a resource.
3877
+
"""
3865
3878
headers: ResourceHeaders!
3879
+
"""
3880
+
Specifies the desired state of a resource.
3881
+
"""
3866
3882
spec: JSON!
3867
-
status: ResourceStatus
3883
+
"""
3884
+
Resource lifecycle and reconciliation information.
0 commit comments