Skip to content

[UI] Login speed#11865

Draft
SchrodingersGat wants to merge 9 commits intoinventree:masterfrom
SchrodingersGat:login-speed
Draft

[UI] Login speed#11865
SchrodingersGat wants to merge 9 commits intoinventree:masterfrom
SchrodingersGat:login-speed

Conversation

@SchrodingersGat
Copy link
Copy Markdown
Member

Improvements to web UI, in particular page loading speed.

Opening multiple tabs simultaneously can lead to some tabs timing out, or slow server response times.

  • Cache expensive (but static) server-side requests
  • Improve asset loading

@netlify
Copy link
Copy Markdown

netlify Bot commented May 4, 2026

Deploy Preview for inventree-web-pui-preview canceled.

Name Link
🔨 Latest commit 580629c
🔍 Latest deploy log https://app.netlify.com/projects/inventree-web-pui-preview/deploys/69f8a8d83c7dce00087a5ae0

@SchrodingersGat SchrodingersGat added this to the 1.4.0 milestone May 4, 2026
Comment thread src/backend/InvenTree/InvenTree/api.py Outdated
Comment on lines 57 to 58
@method_decorator(cache_page(60 * 15), name='dispatch')
class LicenseView(APIView):
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why cache this? this should not be loaded in normal operations


permission_classes = [InvenTree.permissions.IsAuthenticatedOrReadScope]

def read_license_file(self, path: Path) -> list:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pretty sure this is needed for tests

@SchrodingersGat SchrodingersGat marked this pull request as draft May 4, 2026 14:34
@codecov
Copy link
Copy Markdown

codecov Bot commented May 4, 2026

Codecov Report

❌ Patch coverage is 85.29412% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 90.68%. Comparing base (118bc63) to head (580629c).
⚠️ Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #11865      +/-   ##
==========================================
- Coverage   91.37%   90.68%   -0.69%     
==========================================
  Files         971      971              
  Lines       50364    50419      +55     
==========================================
- Hits        46020    45724     -296     
- Misses       4344     4695     +351     
Flag Coverage Δ
backend 88.44% <85.29%> (-0.77%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
Backend Apps 91.68% <ø> (-0.02%) ⬇️
Backend General 93.21% <100.00%> (-0.20%) ⬇️
Frontend ∅ <ø> (∅)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants