File tree 3 files changed +3
-73
lines changed
upgrade_logic/business_objects
3 files changed +3
-73
lines changed Original file line number Diff line number Diff line change 3
3
from pydantic import BaseModel
4
4
from submodules .model .business_objects import general
5
5
import util
6
- import config_handler
7
6
from submodules .model import session
8
7
9
8
app = FastAPI ()
@@ -74,12 +73,6 @@ def helper_function(function_name: str) -> responses.JSONResponse:
74
73
)
75
74
76
75
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
-
83
76
@app .get ("/healthcheck" )
84
77
def healthcheck () -> responses .PlainTextResponse :
85
78
text = ""
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
import os
2
2
import re
3
3
import requests
4
- from config_handler import get_config_value
5
4
from submodules .model .business_objects import (
6
5
attribute ,
7
6
embedding ,
@@ -96,11 +95,6 @@ def gateway_1_14_0_add_cognition_strategy_complexity() -> bool:
96
95
)
97
96
return False
98
97
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
-
104
98
response = requests .post (
105
99
f"{ cognition_url } /api/v1/strategies/internal/calculate_missing_complexities"
106
100
)
@@ -191,15 +185,9 @@ def gateway_1_8_1() -> bool:
191
185
192
186
193
187
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
203
191
204
192
print (
205
193
"Add default limit for organizations" ,
You can’t perform that action at this time.
0 commit comments