datasets
extended metadata does not match .../datasets count
#745
Labels
datasets
extended metadata does not match .../datasets count
#745
If you request extended metadata for a project, a
datasets
property is returned. However, it looks like that doesn't exclude datasets from form drafts. The …/datasets endpoint does exclude those datasets, which means that the two endpoints disagree on the number of datasets. That's an issue for Frontend because Frontend uses thedatasets
property to decide whether to render the Datasets tab. Right now, the following sequence is possible:datasets
property on the project to match the number of datasets returned by .../datasets, which is 0, causing it to realize that the user shouldn't be on the page after all.I'm not sure that every aspect of how Frontend works there is ideal, but I do think that we should try to get those two counts in sync.
The text was updated successfully, but these errors were encountered: