mirror of https://github.com/buster-so/buster.git
remove weird check that was happening
This commit is contained in:
parent
be5df99b08
commit
f70338ba1f
|
@ -595,23 +595,6 @@ pub async fn process_metric_file(
|
|||
return Err("No dataset IDs provided".to_string());
|
||||
}
|
||||
|
||||
// Validate dataset IDs
|
||||
let missing_ids = match validate_metric_ids(dataset_ids).await {
|
||||
Ok(ids) => ids,
|
||||
Err(e) => return Err(format!("Error validating dataset IDs: {}", e)),
|
||||
};
|
||||
|
||||
if !missing_ids.is_empty() {
|
||||
return Err(format!(
|
||||
"Invalid dataset IDs: {}",
|
||||
missing_ids
|
||||
.iter()
|
||||
.map(|id| id.to_string())
|
||||
.collect::<Vec<String>>()
|
||||
.join(", ")
|
||||
));
|
||||
}
|
||||
|
||||
// Use the first dataset ID for SQL validation
|
||||
let dataset_id = dataset_ids[0];
|
||||
|
||||
|
@ -621,12 +604,6 @@ pub async fn process_metric_file(
|
|||
Err(e) => return Err(format!("Invalid SQL query: {}", e)),
|
||||
};
|
||||
|
||||
// Get current user's organization
|
||||
let mut conn = match get_pg_pool().get().await {
|
||||
Ok(conn) => conn,
|
||||
Err(e) => return Err(format!("Database connection error: {}", e)),
|
||||
};
|
||||
|
||||
let organization_id = match get_user_organization_id(user_id).await {
|
||||
Ok(Some(org_id)) => org_id,
|
||||
Ok(None) => return Err("User does not belong to any organization".to_string()),
|
||||
|
|
Loading…
Reference in New Issue