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
Two different concepts are blurred together in Content Tree, and I think they should be teased apart.
I’m calling them "document form" and "transit form". Definitions:
Document form :: The full ContentTree used to render a document, with all the external fields such as image.picture satisfied.
Transit form :: The sparse ContentTree used when the ContentTree is in transit. All external fields are null or undefined.
Spark creates a Document form ContentTree for Preview, sends to Spark API
Spark API converts that to the Transit form for Content API
Content API stores & sends in Transit form
Customer Products Content Pipeline API receives Transit form, fetches externals
Customer Products Content Pipeline UI receives Transit form and external, builds Document form before render
You always have one or the other, never any mix. image.picture is marked “optional” in ContentTree but it’s not optional! It must always be nullish in Transit form, and must always be a Picture in Document form.
Do you have any ideas on how to express this? Does it need to be expressed (i think yes)?
This discussion was converted from issue #29 on March 10, 2023 10:19.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Two different concepts are blurred together in Content Tree, and I think they should be teased apart.
I’m calling them "document form" and "transit form". Definitions:
image.picture
satisfied.null
orundefined
.You always have one or the other, never any mix.
image.picture
is marked “optional” in ContentTree but it’s not optional! It must always benullish
in Transit form, and must always be a Picture in Document form.Do you have any ideas on how to express this? Does it need to be expressed (i think yes)?
Beta Was this translation helpful? Give feedback.
All reactions