You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
enhancementThis is an suggested enhancement or new featurepluginPlugin ecosystemroadmapThis is a roadmap feature with no immediate plans for implementation
Recently I've got the need for a more feature-ful plugin system which I was planning to build. Just as I thought of designing it, I came across your ShopifyIntegrationPlugin @matmair and I'm really intrigued by it. It looks amazing!
Is there any way I can help speed up the progress on the plugin system? I can write docs, tests or even code the core or help with designing the whole thing.
The system is currently not merged but on it's way to dev so it can easily be a month or so till release.
I am still figuring out some interfaces - my main focus right now is security. By default everything will be off and each integration has to be turned on. We are missing permissions and some mechanism to force devs to respect objects permissions. To be honest - maybe I will pull out the app integration mixin and split it up more. It is just dangerous esp. if you have real company data in your instance and load a bad plugin everything might be visible to everyone.
Regarding how you can help.
If you have time please register as a dev with Shopify and try out the ShopifyIntegrationPlugin. Test out everything and please file a issue in it's repo with feedback. I will use that repo to model out a full retail integration - that should cover nearly everything.
After that take a look at the code of the plugin and docs PR and find stuff that is not documented.
Think of places we should integrate and file FRs with the label 'plugin'. I will add a lot of mixins in the near future. Most common functions should be handled by core code and have 100% coverage. If plugins have a lot of code they will be hard to maintain. In the best case they will have a few hundert LoC at most each and not depend on any external requirements.
If you can be that open maybe open an issue describing what your plugin will do, if you don't want it in the open write me a mail -> dev AT mjmair DOT com. I am still architecting out the details for the eco-system, the PR is basically a MVP.
@Guusggg the code of ShopifyIntegrationPlugin should not be used for your own implementation rn, it is very much bad code. I will clean it up for the release and license it MIT or something comparable - commercial use included.
@matmair Excellent reply! Is there anywhere I need to get the plugin-system code from to get it all working or is the ShopifyIntegrationPlugin repo the only thing that I need to add to InvenTree repo to let it run?
@matmair Excellent reply! Is there anywhere I need to get the plugin-system code from to get it all working or is the ShopifyIntegrationPlugin repo the only thing that I need to add to InvenTree repo to let it run?
You need to use the dev branch #2074 as InvenTree base and then follow the install instructions. There will be a nice "install from link" feature in the near future.
enhancementThis is an suggested enhancement or new featurepluginPlugin ecosystemroadmapThis is a roadmap feature with no immediate plans for implementation
Activity
matmair commentedon Sep 21, 2021
@SchrodingersGat could you add this to the plugin project too?
matmair commentedon Sep 23, 2021
PoC functions are developed - now unittests, refactoring, QoL improvements and docs!
matmair commentedon Sep 28, 2021
Unittests are done now. Coverage is around 95%.
Docs incoming.
Guusggg commentedon Oct 20, 2021
@matmair @SchrodingersGat
Hi guys,
Recently I've got the need for a more feature-ful plugin system which I was planning to build. Just as I thought of designing it, I came across your ShopifyIntegrationPlugin @matmair and I'm really intrigued by it. It looks amazing!
Is there any way I can help speed up the progress on the plugin system? I can write docs, tests or even code the core or help with designing the whole thing.
matmair commentedon Oct 20, 2021
@Guusggg seems like I beat you to it 😇.
The system is currently not merged but on it's way to dev so it can easily be a month or so till release.
I am still figuring out some interfaces - my main focus right now is security. By default everything will be off and each integration has to be turned on. We are missing permissions and some mechanism to force devs to respect objects permissions. To be honest - maybe I will pull out the app integration mixin and split it up more. It is just dangerous esp. if you have real company data in your instance and load a bad plugin everything might be visible to everyone.
Regarding how you can help.
matmair commentedon Oct 20, 2021
@Guusggg the code of ShopifyIntegrationPlugin should not be used for your own implementation rn, it is very much bad code. I will clean it up for the release and license it MIT or something comparable - commercial use included.
Guusggg commentedon Oct 20, 2021
@matmair Excellent reply! Is there anywhere I need to get the plugin-system code from to get it all working or is the ShopifyIntegrationPlugin repo the only thing that I need to add to InvenTree repo to let it run?
matmair commentedon Oct 20, 2021
You need to use the dev branch #2074 as InvenTree base and then follow the install instructions. There will be a nice "install from link" feature in the near future.