One daily row, tagged with the entity it belongs to.
name and entityType come from the history response itself, which matters
for more than convenience: they are the labels that response gives for these
rows. A park's current /children list gives TODAY's name, and stamping that
on a row recorded three years ago rewrites the record, because rides get
renamed. They are also already in the payload, so nothing needs to ask what
an id refers to.
Empty strings rather than undefined when the envelope omits them: a writer
should not have to branch, and "" is what lands in a CSV cell either way.
One daily row, tagged with the entity it belongs to.
nameandentityTypecome from the history response itself, which matters for more than convenience: they are the labels that response gives for these rows. A park's current/childrenlist gives TODAY's name, and stamping that on a row recorded three years ago rewrites the record, because rides get renamed. They are also already in the payload, so nothing needs to ask what an id refers to.Empty strings rather than undefined when the envelope omits them: a writer should not have to branch, and "" is what lands in a CSV cell either way.