mirror of
				https://github.com/meilisearch/meilisearch.git
				synced 2025-10-30 23:46:28 +00:00 
			
		
		
		
	updated changes
This commit is contained in:
		| @@ -25,6 +25,11 @@ use crate::Opt; | ||||
| /// It also generates a `configure` function that configures the routes for the settings. | ||||
| macro_rules! make_setting_routes { | ||||
|     ($({route: $route:literal, update_verb: $update_verb:ident, value_type: $type:ty, err_type: $err_ty:ty, attr: $attr:ident, camelcase_attr: $camelcase_attr:literal, analytics: $analytics:ident},)*) => { | ||||
|         #[allow(dead_code)] | ||||
|         fn verify_settings_exhaustive() { | ||||
|             let meilisearch_types::settings::Settings { $($attr: _,)* } =  | ||||
|                 meilisearch_types::settings::Settings::<meilisearch_types::settings::Unchecked>::default(); | ||||
|         } | ||||
|  | ||||
|         $( | ||||
|             make_setting_route!($route, $update_verb, $type, $err_ty, $attr, $camelcase_attr, $analytics); | ||||
| @@ -64,12 +69,6 @@ macro_rules! make_setting_route { | ||||
|             use $crate::Opt; | ||||
|             use $crate::routes::{is_dry_run, get_task_id, SummarizedTaskView}; | ||||
|  | ||||
|             #[allow(dead_code)] | ||||
|             fn verify_setting_exists() { | ||||
|                 let meilisearch_types::settings::Settings { $attr: _, .. } = | ||||
|                     meilisearch_types::settings::Settings::<meilisearch_types::settings::Unchecked>::default(); | ||||
|             } | ||||
|  | ||||
|             pub async fn delete( | ||||
|                 index_scheduler: GuardedData< | ||||
|                     ActionPolicy<{ actions::SETTINGS_UPDATE }>, | ||||
| @@ -82,7 +81,7 @@ macro_rules! make_setting_route { | ||||
|                 let index_uid = IndexUid::try_from(index_uid.into_inner())?; | ||||
|  | ||||
|                 let new_settings = Settings { $attr: Setting::Reset.into(), ..Default::default() }; | ||||
| x | ||||
|  | ||||
|                 let allow_index_creation = | ||||
|                     index_scheduler.filters().allow_index_creation(&index_uid); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user