You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datafusion.apache.org by mg...@apache.org on 2026/07/16 12:25:21 UTC

(datafusion-ballista) branch redirect-root-to-nightlies updated: Own the parsed query parameter values

This is an automated email from the ASF dual-hosted git repository.

martin-g pushed a commit to branch redirect-root-to-nightlies
in repository https://gitbox.apache.org/repos/asf/datafusion-ballista.git


The following commit(s) were added to refs/heads/redirect-root-to-nightlies by this push:
     new 312012306 Own the parsed query parameter values
312012306 is described below

commit 312012306de8725978ea249b4c2438aebdc11726
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
AuthorDate: Thu Jul 16 15:24:58 2026 +0300

    Own the parsed query parameter values
---
 ballista-cli/src/tui/infrastructure/config.rs | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/ballista-cli/src/tui/infrastructure/config.rs b/ballista-cli/src/tui/infrastructure/config.rs
index ab2d4b8ee..ffba3dbb4 100644
--- a/ballista-cli/src/tui/infrastructure/config.rs
+++ b/ballista-cli/src/tui/infrastructure/config.rs
@@ -114,9 +114,9 @@ mod web {
         pub(super) fn parse() -> File<FileSourceString, FileFormat> {
             let mut data_reload_interval_ms = 2000;
             let mut repaint_interval_ms = 50;
-            let mut scheduler_url = "http://localhost:50050";
+            let mut scheduler_url = String::from("http://localhost:50050");
             let mut http_timeout_ms = 2000;
-            let mut theme_name = "dark";
+            let mut theme_name = String::from("dark");
             let mut theme_app_background_bg = String::from("black");
 
             let query_string = Self::decode_request();
@@ -132,14 +132,17 @@ mod web {
                             repaint_interval_ms = value.parse::<u64>().unwrap_or(50)
                         }
                         "ballista_scheduler_url" => {
-                            scheduler_url = url_escape::decode(value)
+                            scheduler_url = url_escape::decode(value).to_string()
                         }
                         "ballista_http_timeout" => {
                             http_timeout_ms = value.parse::<u64>().unwrap_or(2000)
                         }
-                        "ballista_theme_name" => theme_name = url_escape::decode(value),
+                        "ballista_theme_name" => {
+                            theme_name = url_escape::decode(value).to_string()
+                        }
                         "ballista_theme_overrides_app_background_bg" => {
-                            theme_app_background_bg = url_escape::decode(value);
+                            theme_app_background_bg =
+                                url_escape::decode(value).to_string();
                         }
                         _ => {}
                     }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datafusion.apache.org
For additional commands, e-mail: commits-help@datafusion.apache.org