fix: stabilize rule config and cross-review backend
This commit is contained in:
@@ -21,6 +21,7 @@ class HomeServiceImpl(IHomeService):
|
||||
"/files/upload",
|
||||
"/documents",
|
||||
"/chat-with-llm/chat",
|
||||
"/cross-checking",
|
||||
)
|
||||
|
||||
def __init__(self) -> None:
|
||||
@@ -162,7 +163,7 @@ class HomeServiceImpl(IHomeService):
|
||||
if not self._isAllowedTargetPath(targetPath, allowedPaths):
|
||||
continue
|
||||
|
||||
requiresDocumentTypes = targetPath not in {"/chat-with-llm/chat"}
|
||||
requiresDocumentTypes = targetPath not in {"/chat-with-llm/chat", "/cross-checking"}
|
||||
|
||||
modules.append(
|
||||
HomeEntryModuleVO(
|
||||
@@ -210,9 +211,6 @@ class HomeServiceImpl(IHomeService):
|
||||
if RawPath == "/contract-template/search" and HasDocumentTypes:
|
||||
return "/files/upload"
|
||||
|
||||
if RawPath == "/cross-checking":
|
||||
return None
|
||||
|
||||
if any(
|
||||
RawPath == enabledPath or RawPath.startswith(f"{enabledPath}/")
|
||||
for enabledPath in self._MINIMAL_ENABLED_TARGETS
|
||||
|
||||
Reference in New Issue
Block a user