Enable writing data directly from the stream page
Problem to solve and solution
It should be possible to write data from the stream page in the terminal. That would be useful for ad-hoc or curated streams.
Proposed solution and changes
- There's stubs of code for this already, see
web/pages/stream.tsx
web/components/stream/WriteStream.tsx
web/apollo/local-schemas/records.ts
- Ideally, we auto-generate a form based on the schema (with an option to enter as json)
- It should also support file upload (csv, json, excel)
- Consider generating interesting sample placeholders (for fun, engagement and to instruct of expected data type)
Risks and challenges
- People should beware that data is not easily deleted (although it can be overriden)
- Make it very clear to people what the unique key is, so they make sure to keep it unique
Edited by Benjamin Egelund-Müller