paramsPythonSetup changes are not reflected after plugin update via zip

Solved!
Ian_Chu_Te
Level 1
paramsPythonSetup changes are not reflected after plugin update via zip

When I update recipes and/or the paramsTemplate file and the update my plugin via zip file, all changes are reflected immediately.



However any changes done to the paramsPythonSetup file is not reflected at all without creating a new plugin.



How do I make the plugin reflect my paramsPythonSetup updates?

0 Kudos
1 Solution
fchataigner2
Dataiker

the code from paramsPythonSetup is used to start a Python process that your plugin setup code talks to through the DSS backend. This process is held in sessions, so they need to be reloaded or recreated to take changes to the Python code into account. Your options are :



- waiting 5min (the sessions expire after this time)



- depending on the plugin component you develop, reloading the setup page of the component may trigger the creation of a new session



There are additionally 2 methods that work as of today, but may stop working without notice since they are purely debug options:



- type the following in your browser bar and press enter



javascript:angular.element("form[name='customConfigForm']").scope().uiInteraction.sessionId = null



- use the debug shortcut (anywhere in the screen, except in a text field, obviously) : @ r c d



 

View solution in original post

1 Reply
fchataigner2
Dataiker

the code from paramsPythonSetup is used to start a Python process that your plugin setup code talks to through the DSS backend. This process is held in sessions, so they need to be reloaded or recreated to take changes to the Python code into account. Your options are :



- waiting 5min (the sessions expire after this time)



- depending on the plugin component you develop, reloading the setup page of the component may trigger the creation of a new session



There are additionally 2 methods that work as of today, but may stop working without notice since they are purely debug options:



- type the following in your browser bar and press enter



javascript:angular.element("form[name='customConfigForm']").scope().uiInteraction.sessionId = null



- use the debug shortcut (anywhere in the screen, except in a text field, obviously) : @ r c d