Skip to content

Commit

Permalink
fix: Experiment create config list (#324)
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushjain17 authored Dec 26, 2024
1 parent 61e052a commit 28e3b7c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions crates/frontend/src/pages/experiment_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,21 @@ pub fn experiment_list() -> impl IntoView {
)
},
|(current_tenant, filters, pagination_filters)| async move {
let fetch_all_filters = ListFilters {
page: None,
count: None,
all: Some(true),
};
// Perform all fetch operations concurrently
let experiments_future = fetch_experiments(
&filters,
&pagination_filters,
current_tenant.to_string(),
);
let dimensions_future =
fetch_dimensions(&pagination_filters, current_tenant.to_string());
fetch_dimensions(&fetch_all_filters, current_tenant.to_string());
let config_future =
fetch_default_config(&pagination_filters, current_tenant.to_string());
fetch_default_config(&fetch_all_filters, current_tenant.to_string());

let (experiments_result, dimensions_result, config_result) =
join!(experiments_future, dimensions_future, config_future);
Expand Down

0 comments on commit 28e3b7c

Please sign in to comment.