Make the feature experimental

This commit is contained in:
Kerollmops
2025-02-10 15:02:03 +01:00
parent 491d115c3c
commit 7d0d8f4445
7 changed files with 49 additions and 9 deletions

View File

@ -105,6 +105,19 @@ impl RoFeatures {
.into())
}
}
pub fn check_get_task_documents_route(&self) -> Result<()> {
if self.runtime.get_task_documents_route {
Ok(())
} else {
Err(FeatureNotEnabledError {
disabled_action: "Getting the documents of an enqueued task",
feature: "get task documents route",
issue_link: "https://github.com/orgs/meilisearch/discussions/808",
}
.into())
}
}
}
impl FeatureData {