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
define a bunch of mappings in a spreadsheet (XLS or gsheets)
Pull those mappings into the CLI
Upload them into a collection
This feels like it's something the CLI is very capable of doing.
If the sheet just has two columns, we can just pull them as key/value pairs. Otherwise we need to take a range (or I suppose two columns). We may need to know whether the first two rows are a header and can be ignored (although it's probably harmless to include a header in the map - it's just one redundant key)
The mapping should be a single JSON object uploaded as a key to a single value
So the CLI command is like:
openfn collections set my-collection my-key --items pathOrUrlToSheet
Maybe we need extra CLI args for "parse items as spreadsheet" or "choose this range" or "ignore headers".
The text was updated successfully, but these errors were encountered:
I'd love some help with this and it's a nice stand-alone challenge - but the spec is super rough right now and there are no links to docs to get a new dev started. If you're reading this and you'd like to help, this is a great little project. Please tag me here and I'll help you get going!
I want to:
This feels like it's something the CLI is very capable of doing.
If the sheet just has two columns, we can just pull them as key/value pairs. Otherwise we need to take a range (or I suppose two columns). We may need to know whether the first two rows are a header and can be ignored (although it's probably harmless to include a header in the map - it's just one redundant key)
The mapping should be a single JSON object uploaded as a key to a single value
So the CLI command is like:
Maybe we need extra CLI args for "parse items as spreadsheet" or "choose this range" or "ignore headers".
The text was updated successfully, but these errors were encountered: