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

Add support for arrays of strings / plain lists #354

Open
duncandewhurst opened this issue Jun 22, 2020 · 8 comments
Open

Add support for arrays of strings / plain lists #354

duncandewhurst opened this issue Jun 22, 2020 · 8 comments

Comments

@duncandewhurst
Copy link
Contributor

As noted in the docs, arrays of strings (plain lists) are not supported.

Adding support for these would be useful for collecting OCDS data in a spreadsheet, in particular for populating parties/roles field from multiple sheets.

Example: Tenderer details entered in one sheet and suppliers details in another

Tenderers sheet

parties/0/id parties/0/roles/0
123456 tenderer

Suppliers sheet

parties/0/id parties/0/roles/0
123456 supplier

Desired output

"parties": [
  {
    "id": "123456",
    "roles": ["tenderer","supplier"]
  }
]

Would it be possible add this functionality?

@Bjwebb
Copy link
Member

Bjwebb commented Jun 25, 2020

This should be possible. But, without properly getting my head stuck back into the code, its hard for me to estimate how much work this would be.

@Bjwebb
Copy link
Member

Bjwebb commented Jun 25, 2020

@yolile
Copy link

yolile commented Aug 6, 2020

@duncandewhurst actually, I think that this is already supported, you should use ";" as separator and the --schema argument

@duncandewhurst
Copy link
Contributor Author

Does that work for merging cells from separate sheets into the same string array?

@Bjwebb
Copy link
Member

Bjwebb commented Aug 7, 2020

@duncandewhurst No, I don't think so.

@jpmckinney
Copy link
Contributor

@duncandewhurst As a workaround, could you have a parties sheet, and then the other sheets have a dropdown from which users can select one of the parties? This is probably better anyway, to avoid conflicting data across sheets.

@Bjwebb
Copy link
Member

Bjwebb commented Sep 11, 2020

I've taken a look into this, and I think it could be done in 2-3 days of my time.

@duncandewhurst
Copy link
Contributor Author

Thanks for the estimate @Bjwebb

@duncandewhurst As a workaround, could you have a parties sheet, and then the other sheets have a dropdown from which users can select one of the parties? This is probably better anyway, to avoid conflicting data across sheets.

Yes, but this was in the context of minimizing the number of sheets required to enter data to keep the template simple to understand and use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants