From b6d450d4842e863792f4324090fa16edeb652c4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Renault?= Date: Mon, 27 May 2024 15:59:28 +0200 Subject: [PATCH] Remove puffin experimental feature --- index-scheduler/src/features.rs | 13 ------------- meilisearch-types/src/features.rs | 1 - meilisearch/src/routes/features.rs | 15 ++------------- 3 files changed, 2 insertions(+), 27 deletions(-) diff --git a/index-scheduler/src/features.rs b/index-scheduler/src/features.rs index 3be18a3f1..ae8e6728a 100644 --- a/index-scheduler/src/features.rs +++ b/index-scheduler/src/features.rs @@ -68,19 +68,6 @@ impl RoFeatures { .into()) } } - - pub fn check_puffin(&self) -> Result<()> { - if self.runtime.export_puffin_reports { - Ok(()) - } else { - Err(FeatureNotEnabledError { - disabled_action: "Outputting Puffin reports to disk", - feature: "export puffin reports", - issue_link: "https://github.com/meilisearch/product/discussions/693", - } - .into()) - } - } } impl FeatureData { diff --git a/meilisearch-types/src/features.rs b/meilisearch-types/src/features.rs index 04a5d9d6f..dda9dee51 100644 --- a/meilisearch-types/src/features.rs +++ b/meilisearch-types/src/features.rs @@ -6,7 +6,6 @@ pub struct RuntimeTogglableFeatures { pub vector_store: bool, pub metrics: bool, pub logs_route: bool, - pub export_puffin_reports: bool, } #[derive(Default, Debug, Clone, Copy)] diff --git a/meilisearch/src/routes/features.rs b/meilisearch/src/routes/features.rs index 227b485c5..0e02309fa 100644 --- a/meilisearch/src/routes/features.rs +++ b/meilisearch/src/routes/features.rs @@ -47,8 +47,6 @@ pub struct RuntimeTogglableFeatures { pub metrics: Option, #[deserr(default)] pub logs_route: Option, - #[deserr(default)] - pub export_puffin_reports: Option, } async fn patch_features( @@ -68,21 +66,13 @@ async fn patch_features( vector_store: new_features.0.vector_store.unwrap_or(old_features.vector_store), metrics: new_features.0.metrics.unwrap_or(old_features.metrics), logs_route: new_features.0.logs_route.unwrap_or(old_features.logs_route), - export_puffin_reports: new_features - .0 - .export_puffin_reports - .unwrap_or(old_features.export_puffin_reports), }; // explicitly destructure for analytics rather than using the `Serialize` implementation, because // the it renames to camelCase, which we don't want for analytics. // **Do not** ignore fields with `..` or `_` here, because we want to add them in the future. - let meilisearch_types::features::RuntimeTogglableFeatures { - vector_store, - metrics, - logs_route, - export_puffin_reports, - } = new_features; + let meilisearch_types::features::RuntimeTogglableFeatures { vector_store, metrics, logs_route } = + new_features; analytics.publish( "Experimental features Updated".to_string(), @@ -90,7 +80,6 @@ async fn patch_features( "vector_store": vector_store, "metrics": metrics, "logs_route": logs_route, - "export_puffin_reports": export_puffin_reports, }), Some(&req), );