From cd6f6c19847c04ff7218b27d81f5b6e03bf565d2 Mon Sep 17 00:00:00 2001 From: Bot Date: Thu, 21 Aug 2025 01:15:44 +0000 Subject: [PATCH 1/2] [Bot] Updated the stats --- _data/general/stats.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/_data/general/stats.yml b/_data/general/stats.yml index d98f074e..e9cd41b9 100644 --- a/_data/general/stats.yml +++ b/_data/general/stats.yml @@ -1,12 +1,12 @@ stats: - name: Docker pulls - number: 2741900 + number: 2743485 icon: fa-brands fa-docker - name: GitHub Stars - number: 5325 + number: 5330 icon: fa-solid fa-star - name: Forks - number: 1017 + number: 1021 icon: fa-solid fa-code-branch - name: Contributors number: 108 From fc946d5d6a1dac989a3161ac0bb931addfff2a85 Mon Sep 17 00:00:00 2001 From: "Asterix\\Oliver" Date: Thu, 21 Aug 2025 19:45:54 +1000 Subject: [PATCH 2/2] blog post - machine registry updates --- _posts/2025-08-21-machine-refactor.md | 34 +++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 _posts/2025-08-21-machine-refactor.md diff --git a/_posts/2025-08-21-machine-refactor.md b/_posts/2025-08-21-machine-refactor.md new file mode 100644 index 00000000..0322aaa0 --- /dev/null +++ b/_posts/2025-08-21-machine-refactor.md @@ -0,0 +1,34 @@ +--- +author: SchrodingersGat +title: Machine Plugin Refactor +--- + +## Machine Plugin Refactor + +In preparation for the upcoming 1.0.0 release, we have made some *breaking* changes to the machine registry plugin system. + +These changes require that any existing plugins which implement custom machine drivers must be updated to use the new plugin system. A new *mixin* class, `MachineDriverMixin`, has been introduced to facilitate this transition. + +Plugin developers should refer to the notes below to determine how to update their plugins. + +### References + +- [Machine Plugin Refactor PR](https://github.com/inventree/InvenTree/pull/10150) +- [MachineDriverMixin Documentation](https://docs.inventree.org/en/latest/plugins/mixins/machine/) + +### Changes + +The [linked pull request](https://github.com/inventree/InvenTree/pull/10150) makes a number of changes to both the [plugin system](https://docs.inventree.org/en/latest/plugins/) and [machine registry](https://docs.inventree.org/en/latest/plugins/machines/overview/). + +The most significant of these changes is the introduction of the [MachineDriverMixin class](https://docs.inventree.org/en/latest/plugins/mixins/machine/), which now provides a standard interface for plugins which register custom machine drivers, or custom machine types. + +Plugin developers can refer to linked pull request, in addition to the updated plugin mixin documentation, for more information on how to implement this new interface. + +The required changes to existing plugins are minimal, and should be straightforward to implement. + +### Example + +As an example, the [inventree-brother-plugin](https://github.com/inventree/inventree-brother-plugin/) has been updated to use the new `MachineDriverMixin` class. + +Refer to [this pull request](https://github.com/inventree/inventree-brother-plugin/pull/60) to see the changes made to the plugin. +