Closed caprenter closed 6 years ago
Ah - I think this might make the script to generate output in Salesforce a bit more complex - but certainly do-able.
Let me know if this is something you need me to look at - although I think you have already been doing work on updating those scripts?
Thanks @timgdavies. I'll have a go in a Sandbox and see where I get to, then pull you in if needed.
I had a look at this today but didn't get anywhere
ok - let's catch up next week. My hunch is that it will need something a bit hacky like:
If a publisher has more than one dataset, it should sit as an array in the distributions section.
I don't think this is quite right.
As I understand it, our JSON feed is a list of datasets, each of which can have multiple distributions. In the case of 360Giving, an example of the difference would be:
At the moment I think we only have one distribution for each dataset (because we removed the CSV in cases where we had both CSV and Excel), so I think that the current JSON is correct.
However, I think there is extra work to do if we want to supply multiple formats of the same data correctly.
@timgdavies @Bjwebb Can this issue be closed?
I think so.
I think the output of the distributions is not quite right. If a publisher has more than one dataset, it should sit as an array in the distributions section.
I think the current behaviour is to make a new entry completely. This needs to be fixed in Salesforce