Skip to content

[3rd party integration] plugins! #2037

Closed

Description

@matmair

Define plugins for 3rd party integration:

Part of #1421

Activity

  1. added
    enhancement
    plugin
    roadmap
    on Sep 7, 2021
  2. added this to the 0.6.0 milestone on Sep 13, 2021
  3. matmair commented on Sep 21, 2021

    @matmair
    MemberAuthor

    @SchrodingersGat could you add this to the plugin project too?

  4. matmair commented on Sep 23, 2021

    @matmair
    MemberAuthor

    PoC functions are developed - now unittests, refactoring, QoL improvements and docs!

  5. self-assigned this
    on Sep 23, 2021
  6. matmair commented on Sep 28, 2021

    @matmair
    MemberAuthor

    Unittests are done now. Coverage is around 95%.
    Docs incoming.

  7. Guusggg commented on Oct 20, 2021

    @Guusggg
    Contributor

    @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.

  8. matmair commented on Oct 20, 2021

    @matmair
    MemberAuthor

    @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.

    1. 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.
    2. After that take a look at the code of the plugin and docs PR and find stuff that is not documented.
    3. 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.
    4. 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.
  9. matmair commented on Oct 20, 2021

    @matmair
    MemberAuthor

    @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.

  10. Guusggg commented on Oct 20, 2021

    @Guusggg
    Contributor

    @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?

  11. matmair commented on Oct 20, 2021

    @matmair
    MemberAuthor

    @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.

  12. Repository owner moved this from In review to Done in Pers. Overview for InvenTreeon Dec 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementpluginroadmap

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions