Skip to content

[DASHBOARD] Problem reloading config files #250

Description

@marcuspocus

Describe the bug

candles_connector_name = default_config.get("candles_connector_name", "kucoin")

In dashboard, with any directional controllers, we set candles connector, then upload, in .yml file, properties is saved as "candles_connector", which is used by controller when deployed. But page cannot reload saved .yml, because it search "candles_connector_name" which doesn't exist in .yml.

Should be coherent with controller, rename this user_input field to "candles_connector"

ValueError: If using all scalar values, you must pass an index
Traceback:
File "/opt/conda/envs/dashboard/lib/python3.12/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 584, in _run_script
exec(code, module.dict)
File "/home/dashboard/frontend/pages/config/macd_bb_v1/app.py", line 30, in
candles = get_candles(connector_name=inputs["candles_connector"], trading_pair=inputs["candles_trading_pair"],

Steps to reproduce bug

  1. create any directional config using dashboard ux (macd_bb_v1 for ex.)
  2. change candles_connector value (ex.: hyperliquid_perpetual)
  3. click upload
  4. try reloading saved file from same page

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions