Skip to content

Add a way for JSON-RPC V2 plugins to get settings on initialization/restart #3090

Open
@cibere

Description

@cibere

Is your feature request related to a problem? Please describe.

I'm writing a python library that uses the V2 json-rpc api, and it really annoys me that although there is an initialization request that would be perfect for plugins to create a cache, plugins have to wait until the first query request is received to start building their cache, resulting in long first queries. This is because currently, the plugin's settings only seem to be sent to the plugin on query requests.

Describe the solution you'd like

I'd be ok with either of the following solutions:

  1. Add a GetSettings method to the public Flow API, so that plugins can request the settings on initialization.
  2. Include the current settings to the plugin in the initialize method's parameters (and based on how #Reload Context #3081 gets resolved, making sure its in the restart method's parameters as well)

Describe alternatives you've considered

Having the plugin read the plugin's settings file on restart, but although this would probably work as a "solution", this issue seems like it should have a better fix.

Additional context

Add any other context or screenshots about the feature request here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions