From df89d74fe343f2f680ebec2d74c45eacca30128b Mon Sep 17 00:00:00 2001 From: curquiza Date: Fri, 16 Feb 2024 16:10:15 +0100 Subject: [PATCH] Remove scoreDetails exp feature --- lib/src/results/experimental_features.dart | 6 ------ lib/src/results/experimental_features.g.dart | 2 -- test/search_test.dart | 2 -- 3 files changed, 10 deletions(-) diff --git a/lib/src/results/experimental_features.dart b/lib/src/results/experimental_features.dart index 803d4c0..bc71ec6 100644 --- a/lib/src/results/experimental_features.dart +++ b/lib/src/results/experimental_features.dart @@ -13,12 +13,9 @@ part 'experimental_features.g.dart'; class ExperimentalFeatures { @JsonKey(name: 'vectorStore') final bool vectorStore; - @JsonKey(name: 'scoreDetails') - final bool scoreDetails; const ExperimentalFeatures({ required this.vectorStore, - required this.scoreDetails, }); factory ExperimentalFeatures.fromJson(Map src) { @@ -34,12 +31,9 @@ class ExperimentalFeatures { class UpdateExperimentalFeatures { @JsonKey(name: 'vectorStore') final bool? vectorStore; - @JsonKey(name: 'scoreDetails') - final bool? scoreDetails; const UpdateExperimentalFeatures({ this.vectorStore, - this.scoreDetails, }); Map toJson() => _$UpdateExperimentalFeaturesToJson(this); diff --git a/lib/src/results/experimental_features.g.dart b/lib/src/results/experimental_features.g.dart index 1ca870f..8dfcaa5 100644 --- a/lib/src/results/experimental_features.g.dart +++ b/lib/src/results/experimental_features.g.dart @@ -10,7 +10,6 @@ ExperimentalFeatures _$ExperimentalFeaturesFromJson( Map json) => ExperimentalFeatures( vectorStore: json['vectorStore'] as bool, - scoreDetails: json['scoreDetails'] as bool, ); Map _$UpdateExperimentalFeaturesToJson( @@ -24,6 +23,5 @@ Map _$UpdateExperimentalFeaturesToJson( } writeNotNull('vectorStore', instance.vectorStore); - writeNotNull('scoreDetails', instance.scoreDetails); return val; } diff --git a/test/search_test.dart b/test/search_test.dart index 939c897..2d736b9 100644 --- a/test/search_test.dart +++ b/test/search_test.dart @@ -457,11 +457,9 @@ void main() { // setUp(() async { // features = await client.http.updateExperimentalFeatures( // UpdateExperimentalFeatures( - // scoreDetails: true, // vectorStore: true, // ), // ); - // expect(features.scoreDetails, true); // expect(features.vectorStore, true); // uid = randomUid();