Skip to content

Commit 453c76c

Browse files
Remove refinery-config (#87)
* Remove refinery config * fix url * edit * update url * Remove config from enum * Removes config as not used anymore * Remove REFINERY from version overview --------- Co-authored-by: JWittmeyer <[email protected]>
1 parent 6c3d4a6 commit 453c76c

File tree

4 files changed

+3
-85
lines changed

4 files changed

+3
-85
lines changed

app.py

-7
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

-51
This file was deleted.

service_overview.py

-12
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,13 @@ class Service(Enum):
88
AC_EXEC_ENV = "AC_EXEC_ENV"
99
ADMIN_DASHBOARD = "ADMIN_DASHBOARD"
1010
AUTHORIZER = "AUTHORIZER"
11-
CONFIG = "CONFIG"
1211
EMBEDDER = "EMBEDDER"
1312
ENTRY = "ENTRY"
1413
GATEWAY = "GATEWAY"
1514
LF_EXEC_ENV = "LF_EXEC_ENV"
1615
ML_EXEC_ENV = "ML_EXEC_ENV"
1716
MODEL_PROVIDER = "MODEL_PROVIDER"
1817
NEURAL_SEARCH = "NEURAL_SEARCH"
19-
REFINERY = "REFINERY"
2018
TOKENIZER = "TOKENIZER"
2119
UI = "UI"
2220
UPDATER = "UPDATER"
@@ -41,11 +39,6 @@ class Service(Enum):
4139
"link": "https://github.com/code-kern-ai/refinery-authorizer",
4240
"public_repo": True,
4341
},
44-
Service.CONFIG: {
45-
"name": "Config",
46-
"link": "https://github.com/code-kern-ai/refinery-config",
47-
"public_repo": True,
48-
},
4942
Service.EMBEDDER: {
5043
"name": "Embedder",
5144
"link": "https://github.com/code-kern-ai/refinery-embedder",
@@ -81,11 +74,6 @@ class Service(Enum):
8174
"link": "https://github.com/code-kern-ai/refinery-neural-search",
8275
"public_repo": True,
8376
},
84-
Service.REFINERY: {
85-
"name": "Refinery",
86-
"link": "https://github.com/code-kern-ai/refinery",
87-
"public_repo": True,
88-
},
8977
Service.TOKENIZER: {
9078
"name": "Tokenizer",
9179
"link": "https://github.com/code-kern-ai/refinery-tokenizer",

upgrade_logic/business_objects/gateway.py

+3-15
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)