fix: remove usage of probability field (#5877)
- fixes #5735 --------- Co-authored-by: Marie Stoppa <marie.stoppa@essec.edu>
This commit is contained in:
@ -145,13 +145,6 @@ const fieldNumericMock = {
|
||||
defaultValue: null,
|
||||
};
|
||||
|
||||
const fieldProbabilityMock = {
|
||||
name: 'fieldProbability',
|
||||
type: FieldMetadataType.PROBABILITY,
|
||||
isNullable: true,
|
||||
defaultValue: null,
|
||||
};
|
||||
|
||||
const fieldFullNameMock = {
|
||||
name: 'fieldFullName',
|
||||
type: FieldMetadataType.FULL_NAME,
|
||||
@ -206,7 +199,6 @@ export const fields = [
|
||||
fieldBooleanMock,
|
||||
fieldNumberMock,
|
||||
fieldNumericMock,
|
||||
fieldProbabilityMock,
|
||||
fieldLinkMock,
|
||||
fieldLinksMock,
|
||||
fieldCurrencyMock,
|
||||
|
||||
@ -73,7 +73,6 @@ export class TypeMapperService {
|
||||
),
|
||||
],
|
||||
[FieldMetadataType.NUMERIC, BigFloatScalarType],
|
||||
[FieldMetadataType.PROBABILITY, GraphQLFloat],
|
||||
[FieldMetadataType.POSITION, PositionScalarType],
|
||||
[FieldMetadataType.RAW_JSON, RawJSONScalar],
|
||||
]);
|
||||
@ -109,7 +108,6 @@ export class TypeMapperService {
|
||||
),
|
||||
],
|
||||
[FieldMetadataType.NUMERIC, BigFloatFilterType],
|
||||
[FieldMetadataType.PROBABILITY, FloatFilterType],
|
||||
[FieldMetadataType.POSITION, FloatFilterType],
|
||||
[FieldMetadataType.RAW_JSON, RawJsonFilterType],
|
||||
]);
|
||||
@ -130,7 +128,6 @@ export class TypeMapperService {
|
||||
[FieldMetadataType.BOOLEAN, OrderByDirectionType],
|
||||
[FieldMetadataType.NUMBER, OrderByDirectionType],
|
||||
[FieldMetadataType.NUMERIC, OrderByDirectionType],
|
||||
[FieldMetadataType.PROBABILITY, OrderByDirectionType],
|
||||
[FieldMetadataType.RATING, OrderByDirectionType],
|
||||
[FieldMetadataType.SELECT, OrderByDirectionType],
|
||||
[FieldMetadataType.MULTI_SELECT, OrderByDirectionType],
|
||||
|
||||
Reference in New Issue
Block a user