script-server
script-server copied to clipboard
adding constant as first param disables other params in UI
{
"name": "AAAAA",
"constant": true,
"type": "text",
"env_var": "MY_USER",
"default": "${auth.username}"
}
Aug 05 16:14:49 prod-mgmt-001 python3[29327]: 2021-08-05 16:14:49,640 [asyncio.ERROR] Future exception was never retrieved
Aug 05 16:14:49 prod-mgmt-001 python3[29327]: future: <Future finished exception=TypeError("'NoneType' object does not support item assignment",)>
Aug 05 16:14:49 prod-mgmt-001 python3[29327]: Traceback (most recent call last):
Aug 05 16:14:49 prod-mgmt-001 python3[29327]: File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
Aug 05 16:14:49 prod-mgmt-001 python3[29327]: result = self.fn(*self.args, **self.kwargs)
Aug 05 16:14:49 prod-mgmt-001 python3[29327]: File "src/web/script_config_socket.py", line 114, in _set_parameter_value
Aug 05 16:14:49 prod-mgmt-001 python3[29327]: self.config_model.set_param_value(parameter, value)
Aug 05 16:14:49 prod-mgmt-001 python3[29327]: File "src/model/script_config.py", line 93, in set_param_value
Aug 05 16:14:49 prod-mgmt-001 python3[29327]: self.parameter_values[param_name] = value
Aug 05 16:14:49 prod-mgmt-001 python3[29327]: File "src/react/properties.py", line 157, in setitem
Aug 05 16:14:49 prod-mgmt-001 python3[29327]: observer(key, old_value, item)
Aug 05 16:14:49 prod-mgmt-001 python3[29327]: File "src/model/script_config.py", line 335, in _value_changed
Aug 05 16:14:49 prod-mgmt-001 python3[29327]: self._reload()
Aug 05 16:14:49 prod-mgmt-001 python3[29327]: File "src/model/script_config.py", line 360, in _reload
Aug 05 16:14:49 prod-mgmt-001 python3[29327]: self._value_property.set(self.value)
Aug 05 16:14:49 prod-mgmt-001 python3[29327]: File "src/react/properties.py", line 25, in set
Aug 05 16:14:49 prod-mgmt-001 python3[29327]: self._set_internal(new_value)
Aug 05 16:14:49 prod-mgmt-001 python3[29327]: File "src/react/properties.py", line 36, in _set_internal
Aug 05 16:14:49 prod-mgmt-001 python3[29327]: observer(old_value, new_value)
Aug 05 16:14:49 prod-mgmt-001 python3[29327]: File "src/react/properties.py", line 48, in binder
Aug 05 16:14:49 prod-mgmt-001 python3[29327]: self._set_internal(value)
Aug 05 16:14:49 prod-mgmt-001 python3[29327]: File "src/react/properties.py", line 36, in _set_internal
Aug 05 16:14:49 prod-mgmt-001 python3[29327]: observer(old_value, new_value)
Aug 05 16:14:49 prod-mgmt-001 python3[29327]: File "src/model/script_config.py", line 80, in
Thanks for reporting!
Hi @yosefy, I believe you are using included config, are you? And constant is added there I managed to reproduce the bug by having included config
Fixed now
Yes thank you
On Sun, Aug 29, 2021, 5:06 PM Iaroslav Shepilov @.***> wrote:
Hi @yosefy https://github.com/yosefy, I believe you are using included config, are you? And constant is added there I managed to reproduce the bug by having included config
Fixed now
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/bugy/script-server/issues/479#issuecomment-907797358, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADCXF3JYTQCDU2BZT7SG33TT7I5FRANCNFSM5BUFYHRQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.