Skip to content

Commit cf2037c

Browse files
committed
Removes config as not used anymore
1 parent 8fb2ca6 commit cf2037c

File tree

3 files changed

+3
-73
lines changed

3 files changed

+3
-73
lines changed

app.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from pydantic import BaseModel
44
from submodules.model.business_objects import general
55
import util
6-
import config_handler
76
from submodules.model import session
87

98
app = FastAPI()
@@ -74,12 +73,6 @@ def helper_function(function_name: str) -> responses.JSONResponse:
7473
)
7574

7675

77-
@app.put("/config_changed")
78-
def config_changed() -> responses.PlainTextResponse:
79-
config_handler.refresh_config()
80-
return responses.PlainTextResponse(status_code=status.HTTP_200_OK)
81-
82-
8376
@app.get("/healthcheck")
8477
def healthcheck() -> responses.PlainTextResponse:
8578
text = ""

config_handler.py

Lines changed: 0 additions & 51 deletions
This file was deleted.

upgrade_logic/business_objects/gateway.py

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import os
22
import re
33
import requests
4-
from config_handler import get_config_value
54
from submodules.model.business_objects import (
65
attribute,
76
embedding,
@@ -96,11 +95,6 @@ def gateway_1_14_0_add_cognition_strategy_complexity() -> bool:
9695
)
9796
return False
9897

99-
is_managed = get_config_value("is_managed")
100-
if not is_managed:
101-
print("Not managed. Skipping cognition strategy complexity update.")
102-
return False
103-
10498
response = requests.post(
10599
f"{cognition_url}/api/v1/strategies/internal/calculate_missing_complexities"
106100
)
@@ -191,15 +185,9 @@ def gateway_1_8_1() -> bool:
191185

192186

193187
def __gateway_1_8_1_add_organization_limits() -> bool:
194-
is_managed = get_config_value("is_managed")
195-
if is_managed:
196-
max_rows = 50000
197-
max_cols = 25
198-
max_char_count = 100000
199-
else:
200-
max_rows = get_config_value("max_rows") or 50000
201-
max_cols = get_config_value("max_cols") or 25
202-
max_char_count = get_config_value("max_char_count") or 100000
188+
max_rows = 50000
189+
max_cols = 25
190+
max_char_count = 100000
203191

204192
print(
205193
"Add default limit for organizations",

0 commit comments

Comments
 (0)