Skip to content

Add error handling to API queries - #9253

Merged
SchrodingersGat merged 1 commit into
inventree:masterfrom
SchrodingersGat:api-error-handling
Mar 7, 2025
Merged

SchrodingersGat merged 1 commit into
inventree:masterfrom
SchrodingersGat:api-error-handling

Conversation

@SchrodingersGat

@SchrodingersGat SchrodingersGat commented Mar 7, 2025 •

Copy link
Copy Markdown
Member

Ensure correct types are returned in case of error

@SchrodingersGat SchrodingersGat added refactor User Interface Related to the frontend / User Interface labels Mar 7, 2025
@SchrodingersGat SchrodingersGat added this to the 1.0.0 milestone Mar 7, 2025
@netlify

netlify Bot commented Mar 7, 2025 •

Copy link
Copy Markdown

✅ Deploy Preview for inventree-web-pui-preview ready!

Name Link
🔨 Latest commit a4603c1
🔍 Latest deploy log https://app.netlify.com/sites/inventree-web-pui-preview/deploys/67ca5bf1060ae0000825da8c
😎 Deploy Preview https://deploy-preview-9253--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: 97 (🟢 up 1 from production)
Accessibility: 89 (no change from production)
Best Practices: 92 (no change from production)
SEO: 78 (no change from production)
PWA: -
View the detailed breakdown and full score reports

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

@SchrodingersGat SchrodingersGat added the api Relates to the API label Mar 7, 2025
@codecov

codecov Bot commented Mar 7, 2025 •

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 0% with 5 lines in your changes missing coverage. Please review.

Project coverage is 86.12%. Comparing base (2e91dc2) to head (a4603c1).
Report is 214 commits behind head on master.

Files with missing lines Patch % Lines
...Index/Settings/AccountSettings/SecurityContent.tsx 0.00% 4 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #9253      +/-   ##
==========================================
+ Coverage   86.10%   86.12%   +0.02%     
==========================================
  Files        1198     1199       +1     
  Lines       52561    52572      +11     
  Branches     2216     2216              
==========================================
+ Hits        45256    45278      +22     
+ Misses       6749     6726      -23     
- Partials      556      568      +12     
Flag Coverage Δ
pui ∅ <0.00%> (∅)

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@SchrodingersGat
SchrodingersGat merged commit 06961c6 into inventree:master Mar 7, 2025
@SchrodingersGat
SchrodingersGat deleted the api-error-handling branch March 7, 2025 03:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api Relates to the API refactor User Interface Related to the frontend / User Interface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant