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

Improvement: Integrate the number of versions into projects endpoint #365

Merged
merged 1 commit into from
Jan 4, 2023

Conversation

reglim
Copy link
Contributor

@reglim reglim commented Dec 22, 2022

Now the UI doesn't need to make that many requests just to load the number of versions.

fixes: #364

docat/docat/utils.py Outdated Show resolved Hide resolved
@reglim reglim force-pushed the improvement/364-load-versions-with-projects branch from 819bc57 to 867c3d5 Compare January 4, 2023 10:01
Now the UI doesn't need to make that many requests just to load the
number of versions.

I also adapted the get_all_projects versions to count only real folders,
not symlinks and added a test for that.

fixes: #364
@reglim reglim force-pushed the improvement/364-load-versions-with-projects branch from 867c3d5 to 87c0f1e Compare January 4, 2023 10:04
@reglim reglim merged commit e3a1e5d into main Jan 4, 2023
@reglim reglim deleted the improvement/364-load-versions-with-projects branch January 4, 2023 10:17
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

Successfully merging this pull request may close these issues.

Load version count with projects to drastically reduce number of requests
2 participants