Skip to content

Machine properties and periodic ping - #10381

Merged
SchrodingersGat merged 16 commits into
inventree:masterfrom
wolflu05:machine-improvements
Oct 5, 2025
Merged

SchrodingersGat merged 16 commits into
inventree:masterfrom
wolflu05:machine-improvements

Conversation

@wolflu05

@wolflu05 wolflu05 commented Sep 23, 2025 •

Copy link
Copy Markdown
Member

This PR adds machine properties to the machine details page. This is useful to display e.g. model name, firmware version, printed pages, ...

image

If you want to try this out yourself, either activate the sample plugin and create a machine using its driver or if you own a zebra printer, you can try out this plugin: https://github.com/wolflu05/inventree-zebra

TODO

  • fix machine status label not showing
  • fix redis cache settings on macos
  • machine properties
  • periodic ping task
  • docs
  • tests

@netlify

netlify Bot commented Sep 23, 2025 •

Copy link
Copy Markdown

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

Name Link
🔨 Latest commit 17ed0dd
🔍 Latest deploy log https://app.netlify.com/projects/inventree-web-pui-preview/deploys/68e276a4fdbd4d00081480fa
😎 Deploy Preview https://deploy-preview-10381--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: 94 (no change 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

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

@wolflu05 wolflu05 added report Report/Label generation enhancement This is an suggested enhancement or new feature labels Sep 23, 2025
@wolflu05 wolflu05 added this to the 1.1.0 milestone Sep 23, 2025
@wolflu05 wolflu05 added the plugin Plugin ecosystem label Sep 23, 2025
@codecov

codecov Bot commented Sep 23, 2025 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 98.11321% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 87.62%. Comparing base (2e7e8d5) to head (17ed0dd).
⚠️ Report is 268 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #10381   +/-   ##
=======================================
  Coverage   87.61%   87.62%           
=======================================
  Files        1266     1266           
  Lines       56938    56980   +42     
  Branches     2054     2054           
=======================================
+ Hits        49887    49928   +41     
- Misses       6548     6549    +1     
  Partials      503      503           
Flag Coverage Δ
backend 89.35% <98.11%> (+<0.01%) ⬆️
migrations 42.57% <58.49%> (-0.06%) ⬇️

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

Components Coverage Δ
Backend Apps 91.92% <100.00%> (+<0.01%) ⬆️
Backend General 93.69% <100.00%> (ø)
Frontend 70.04% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@wolflu05 wolflu05 mentioned this pull request Sep 23, 2025
3 of 18 tasks
@wolflu05

Copy link
Copy Markdown
Member Author

This PR is ready for review

@matmair matmair left a comment

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.

Looks good as always!
Maybe you could add a line to the CHANGELOG mentioning the new feature - that think it is worth being called out

@wolflu05

Copy link
Copy Markdown
Member Author

Thanks for you quick review.

Maybe you could add a line to the CHANGELOG mentioning the new feature - that think it is worth being called out

Is that that CHANGELOG.md file in the root of the repo? How would such a entry look like, maybe you could help me here? Currently there is nothing in there. And why does it say [Unreleased - 1.0.0 ] - 2025-07-xx this doesnt seem like its being actively used?

@SchrodingersGat

Copy link
Copy Markdown
Member

@wolflu05 thanks for implementing this.

@matmair any more changes required from your review?

@matmair

matmair commented Oct 1, 2025

Copy link
Copy Markdown
Member

REviewing now; looks good overall

@matmair

matmair commented Oct 1, 2025 •

Copy link
Copy Markdown
Member

Thanks for you quick review.

Maybe you could add a line to the CHANGELOG mentioning the new feature - that think it is worth being called out

Is that that CHANGELOG.md file in the root of the repo? How would such a entry look like, maybe you could help me here? Currently there is nothing in there. And why does it say [Unreleased - 1.0.0 ] - 2025-07-xx this doesnt seem like its being actively used?

Under the Added section something like:

- Added much more detailed status information for machines to the API endpoint (including backend and frontend changes) in [#10381](https://github.com/inventree/InvenTree/pull/10381)

@wolflu05

wolflu05 commented Oct 5, 2025

Copy link
Copy Markdown
Member Author

Is there anything needed from me before merging this PR? The coverage report seems to be broken...

@matmair matmair added the full-run Always do a full QC CI run label Oct 5, 2025
@matmair

matmair commented Oct 5, 2025

Copy link
Copy Markdown
Member

@SchrodingersGat this is ready for review and merge
@wolflu05 the CI coverage issue is addressed now

@SchrodingersGat
SchrodingersGat merged commit 66a488b into inventree:master Oct 5, 2025
@SchrodingersGat

Copy link
Copy Markdown
Member

@wolflu05 thanks for the improvements here!

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

Labels

enhancement This is an suggested enhancement or new feature full-run Always do a full QC CI run plugin Plugin ecosystem report Report/Label generation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants