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

Usage reporting (analytics) break when no project exists #763

Closed
ktuite opened this issue Feb 8, 2023 · 1 comment · Fixed by getodk/central-frontend#836
Closed

Usage reporting (analytics) break when no project exists #763

ktuite opened this issue Feb 8, 2023 · 1 comment · Fixed by getodk/central-frontend#836
Assignees
Labels

Comments

@ktuite
Copy link
Member

ktuite commented Feb 8, 2023

Was just trying a fresh central database with no projects and went to check on the usage reporting. I remember wondering about this in some code review in the last few months. Sure enough, when there are no projects, /v1/analytics/preview returns a totally blank response (not even an empty array or dict) (bit also not an error) that frontend doesn't know how to render.

I believe the analytics were added before the default project was removed.

@ktuite ktuite self-assigned this Jul 11, 2023
@github-project-automation github-project-automation bot moved this to 🕒 backlog in ODK Central Jul 11, 2023
@ktuite
Copy link
Member Author

ktuite commented Jul 12, 2023

The response looks better than it did before, but frontend can't handle projects being an empty array.

Screen Shot 2023-07-11 at 5 09 28 PM

I'm planning to add a test to backend and I can make a quick update to frontend, too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: ✅ done
Development

Successfully merging a pull request may close this issue.

2 participants