Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

collections: allow a collection to be set/mapped from a spreadsheet #902

Open
josephjclark opened this issue Mar 10, 2025 · 2 comments
Open
Labels
good first issue Good for newcomers

Comments

@josephjclark
Copy link
Collaborator

I want to:

  • 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".

@josephjclark josephjclark added the good first issue Good for newcomers label Mar 10, 2025
@github-project-automation github-project-automation bot moved this to New Issues in v2 Mar 10, 2025
@josephjclark
Copy link
Collaborator Author

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!

@josephjclark
Copy link
Collaborator Author

@SatyamMattoo Are you still looking for projects to contribute to?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
Status: New Issues
Development

No branches or pull requests

1 participant