Skip to content

[FR] Safe loading of plugins #2308

Closed

Description

@SchrodingersGat

@matmair this one is not vital to fix for #2074 - another one for later on.

Ideally, a 'broken' plugin (e.g. the unfinished shopify one) should not bring down the InvenTree instance. Perhaps, it might be possible to "safe load" each plugin and if an error is detected, it is shown in the plugin list as "not loaded due to error", with error information available.

I am not sure of the mechanics of this one, might be difficult to achieve.

Activity

  1. added
    enhancement
    plugin
    on Nov 13, 2021
  2. matmair commented on Nov 13, 2021

    @matmair
    Member

    @matmair this one is not vital to fix for #2074 - another one for later on.

    Ideally, a 'broken' plugin (e.g. the unfinished shopify one) should not bring down the InvenTree instance. Perhaps, it might be possible to "safe load" each plugin and if an error is detected, it is shown in the plugin list as "not loaded due to error", with error information available.

    I am not sure of the mechanics of this one, might be difficult to achieve.

    This is done for some things like navigation or settings but nearly impossible for the AppMixin. It is very difficult to catch buggy apps - I would have to research that a lot.

  3. matmair commented on Nov 13, 2021

    @matmair
    Member

    @SchrodingersGat is this blocking?

  4. SchrodingersGat commented on Nov 13, 2021

    @SchrodingersGat
    MemberAuthor

    No, not blocking. A thought for later attention

  5. added this to the 0.7.0 milestone on Nov 13, 2021
  6. modified the milestones: 0.7.0, 0.5.4, 0.6.0 on Nov 20, 2021
  7. added a commit that references this issue on Nov 20, 2021
    39648e5
  8. self-assigned this
    on Nov 22, 2021
  9. 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

enhancementplugin

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions