From ccf144d7e83e3df832163ffc5b9ca0229b80d6ba Mon Sep 17 00:00:00 2001
From: Martin Weise <martin.weise@tuwien.ac.at>
Date: Fri, 12 Jul 2024 12:24:18 +0200
Subject: [PATCH] Hotfix

---
 dbrepo-ui/components/table/TableImport.vue | 2 +-
 helm/dbrepo/templates/data-secret.yaml     | 2 +-
 lib/python/dbrepo/RestClient.py            | 8 ++++----
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/dbrepo-ui/components/table/TableImport.vue b/dbrepo-ui/components/table/TableImport.vue
index 955a29cc75..8528b3b04e 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 4bcaf08468..52740b930d 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 365239b783..85c55613ef 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.
-- 
GitLab