Skip to content

Commit 91d83c5

Browse files
fix: BI-6669 fix some schemas; fix rqe mode log
1 parent 58cdc16 commit 91d83c5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/dl_api_lib/dl_api_lib/schemas/dataset_base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class RLSSubjectSchema(DefaultSchema[RLSSubject]):
9292

9393
field_guid = ma_fields.String(dump_default=None, load_default=None)
9494
allowed_value = ma_fields.String(dump_default=None, load_default=None)
95-
pattern_type = ma_fields.Enum(RLSPatternType, load_default=RLSPatternType.value)
95+
pattern_type = ma_fields.Enum(RLSPatternType, load_default=RLSPatternType)
9696
subject = ma_fields.Nested(RLSSubjectSchema, required=True)
9797

9898

@@ -126,7 +126,7 @@ def get_obj_type(self, obj: CalculationSpec) -> str:
126126
# TODO: dump/load as is and update usage on front end respectively
127127
calc_spec = ma_fields.Nested(CalculationSpecSchema)
128128

129-
aggregation = ma_fields.Enum(AggregationFunction, load_default=AggregationFunction.none.name)
129+
aggregation = ma_fields.Enum(AggregationFunction, load_default=AggregationFunction.none)
130130
aggregation_locked = ma_fields.Boolean(readonly=True, allow_none=True, load_default=False, dump_only=True)
131131
autoaggregated = ma_fields.Boolean(readonly=True, allow_none=True, dump_only=True)
132132
has_auto_aggregation = ma_fields.Boolean(allow_none=True)

lib/dl_core/dl_core/services_registry/conn_executor_factory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ def _get_rqe_data(self, rqe_mode: RQEMode) -> RemoteQueryExecutorData:
211211
async_rqe_netloc: RQEBaseURL
212212
sync_rqe_netloc: RQEBaseURL
213213

214-
LOGGER.info('RQE mode is "%s"', rqe_mode.value)
214+
LOGGER.info('RQE mode is "%s"', rqe_mode.name)
215215
if rqe_mode == RQEMode.EXTERNAL:
216216
async_rqe_netloc = self.rqe_config.ext_async_rqe
217217
sync_rqe_netloc = self.rqe_config.ext_sync_rqe

0 commit comments

Comments
 (0)