Skip to content

[UI] Login speed#11865

Closed
SchrodingersGat wants to merge 13 commits into
inventree:masterfrom
SchrodingersGat:login-speed
Closed

[UI] Login speed#11865
SchrodingersGat wants to merge 13 commits into
inventree: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 ready!

Name Link
🔨 Latest commit 2fa13ec
🔍 Latest deploy log https://app.netlify.com/projects/inventree-web-pui-preview/deploys/6a0192d07f6d5b0008f92267
😎 Deploy Preview https://deploy-preview-11865--inventree-web-pui-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 91 (🔴 down 2 from production)
Accessibility: 81 (no change from production)
Best Practices: 100 (no change from production)
SEO: 78 (no change from production)
PWA: -
View the detailed breakdown and full score reports
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@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 (95fd997) to head (2fa13ec).

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #11865      +/-   ##
==========================================
- Coverage   91.36%   90.68%   -0.69%     
==========================================
  Files         974      974              
  Lines       50528    50539      +11     
==========================================
- Hits        46167    45829     -338     
- Misses       4361     4710     +349     
Flag Coverage Δ
backend 88.43% <85.29%> (-0.76%) ⬇️

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

Components Coverage Δ
Backend Apps 91.67% <ø> (-0.03%) ⬇️
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.

@SchrodingersGat
Copy link
Copy Markdown
Member Author

Closing this, mostly replaced by #11896

Might revisit server-side caching later

@SchrodingersGat SchrodingersGat deleted the login-speed branch May 11, 2026 08:29
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