-
Notifications
You must be signed in to change notification settings - Fork 76
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
extended metadata does not match .../datasets count
#745
Comments
I'm going to slot this for 2023.2 unless we have time for it now. Presumably this has been an issue since 2022.3. |
sadiqkhoja
added a commit
to sadiqkhoja/central-backend
that referenced
this issue
Feb 7, 2023
Steps to reproduce:
After the fix:
|
Tested with success! |
Tested with success!**** |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: