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

Datasets with no posted contacts should return properly structured responses through the API. #69

Open
SimonGoring opened this issue Mar 28, 2019 · 1 comment

Comments

@SimonGoring
Copy link
Contributor

This primarily affects the datasets/:dsid:/contacts endpoint, but likely affects any other contact endpoints. They should all return information with:

{contactid: null, fullname: null, lastname: null, firstname: null, url: null, email: null, address: null}.

@SimonGoring
Copy link
Contributor Author

An example is dataset 4628 (from FAUNMAP).

A full list of datasets without listed PIs can be obtained using:

SELECT ds.datasetid
FROM                     ndb.datasets  AS ds
LEFT OUTER JOIN ndb.datasetpis AS dspi ON ds.datasetid = dspi.datasetid
WHERE dspi.contactid IS NULL

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

No branches or pull requests

1 participant