diff --git a/dbrepo-ui/components/table/TableImport.vue b/dbrepo-ui/components/table/TableImport.vue index 955a29cc75d187c2350c81307f4eee0bbe2355fc..8528b3b04edf43c5b0b9058390cf777c73c4d285 100644 --- a/dbrepo-ui/components/table/TableImport.vue +++ b/dbrepo-ui/components/table/TableImport.vue @@ -292,7 +292,7 @@ export default { true_element: null, null_element: '', separator: ',', - line_termination: '\\r\\n', + line_termination: '\\n', skip_lines: 1 }, separators: [ diff --git a/helm/dbrepo/templates/data-secret.yaml b/helm/dbrepo/templates/data-secret.yaml index 4bcaf0846854e692ce32a8253aaba69d4b6db6b5..52740b930db06675e6069ef400ea1d44a3dbddc1 100644 --- a/helm/dbrepo/templates/data-secret.yaml +++ b/helm/dbrepo/templates/data-secret.yaml @@ -28,7 +28,7 @@ stringData: DEFAULT_TIME_FORMAT_ID: "{{ .Values.dataservice.default.time }}" DEFAULT_TIMESTAMP_FORMAT_ID: "{{ .Values.dataservice.default.timestamp }}" JWT_PUBKEY: "{{ .Values.authservice.jwt.pubkey }}" - LOG_LEVEL: "{{ ternary "debug" "info" .Values.dataservice.image.debug }}" + LOG_LEVEL: "{{ ternary "trace" "info" .Values.dataservice.image.debug }}" METADATA_SERVICE_ENDPOINT: "{{ .Values.metadataservice.endpoint }}" MIN_CONCURRENT_CONSUMERS: "{{ .Values.dataservice.rabbitmq.consumerConcurrentMin }}" MAX_CONCURRENT_CONSUMERS: "{{ .Values.dataservice.rabbitmq.consumerConcurrentMax }}" diff --git a/lib/python/dbrepo/RestClient.py b/lib/python/dbrepo/RestClient.py index 365239b783828a19e0f8336eb613c60012f9101b..85c55613ef0eb5259b37d72393677476c980f94f 100644 --- a/lib/python/dbrepo/RestClient.py +++ b/lib/python/dbrepo/RestClient.py @@ -1102,17 +1102,17 @@ class RestClient: raise ResponseCodeError(f'Failed to insert table data: response code: {response.status_code} is not ' f'201 (CREATED): {response.text}') - def import_table_data(self, database_id: int, table_id: int, separator: str, - file_name_or_data_frame: str | DataFrame, quote: str = None, skip_lines: int = 0, + def import_table_data(self, database_id: int, table_id: int, file_name_or_data_frame: str | DataFrame, + separator: str = None, quote: str = None, skip_lines: int = 0, false_encoding: str = None, true_encoding: str = None, null_encoding: str = None, - line_encoding: str = "\r\n") -> None: + line_encoding: str = "\n") -> None: """ Import a csv dataset from a file into a table in a database with given database id and table id. :param database_id: The database id. :param table_id: The table id. - :param separator: The csv column separator. :param file_name_or_data_frame: The path of the file that is imported on the storage service or pandas dataframe. + :param separator: The csv column separator. Optional. :param quote: The column data quotation character. Optional. :param skip_lines: The number of lines to skip. Optional. Default: 0. :param false_encoding: The encoding of boolean false. Optional.