Skip to content

Commit 638ab0e

Browse files
Refactor services and components: improve logging, remove unused imports, and enhance search configuration handling
1 parent 05a31e6 commit 638ab0e

7 files changed

Lines changed: 9 additions & 10 deletions

File tree

src/backend/v4/common/services/team_service.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,12 @@ async def validate_team_search_indexes(
481481
error_msg = "Team configuration references search indexes but no Azure Search endpoint is configured"
482482
self.logger.warning(error_msg)
483483
return False, [error_msg]
484+
else:
485+
# No search endpoint and nothing to validate; skip further validation
486+
self.logger.info(
487+
"No Azure Search endpoint configured and no search indexes or RAG agents to validate - skipping search validation"
488+
)
489+
return True, []
484490

485491
if not index_names:
486492
self.logger.info(

src/backend/v4/magentic_agents/models/agent_models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ class SearchConfig:
4747
@classmethod
4848
def from_env(cls, index_name: str) -> "SearchConfig":
4949
connection_name = config.AZURE_AI_SEARCH_CONNECTION_NAME
50-
index_name = index_name
5150
endpoint = config.AZURE_AI_SEARCH_ENDPOINT
5251

5352
# Raise exception if any required environment variable is missing
@@ -58,5 +57,6 @@ def from_env(cls, index_name: str) -> "SearchConfig":
5857

5958
return cls(
6059
connection_name=connection_name,
61-
endpoint=endpoint
60+
endpoint=endpoint,
61+
index_name=index_name
6262
)

src/frontend/src/components/content/HomeInput.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import "./../../styles/HomeInput.css";
1515
import { HomeInputProps, iconMap, QuickTask } from "../../models/homeInput";
1616
import { TaskService } from "../../services/TaskService";
1717
import { NewTaskService } from "../../services/NewTaskService";
18-
import { RAIErrorData } from "../errors";
1918

2019
import ChatInput from "@/coral/modules/ChatInput";
2120
import InlineToaster, { useInlineToaster } from "../toast/InlineToaster";

src/frontend/src/components/content/PlanChat.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
import React from "react";
2-
import {
3-
} from "@fluentui/react-icons";
42
import { PlanChatProps, MPlanData } from "../../models/plan";
53
import InlineToaster from "../toast/InlineToaster";
64
import { AgentMessageData } from "@/models";

src/frontend/src/coral/components/Panels/PanelRightToolbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const PanelRightToolbar: React.FC<PanelRightToolbarProps> = ({
2121
const onDismiss = () => {
2222
if (handleDismiss) {
2323
handleDismiss();
24-
}else {
24+
} else {
2525
eventBus.emit("setActivePanel", null); // Close the current panel
2626
}
2727
};

src/mcp_server/services/marketing_service.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55

66
from core.factory import Domain, MCPToolBase
7-
from utils.formatters import format_success_response
8-
97

108
class MarketingService(MCPToolBase):
119
"""Marketing tools for employee onboarding and management."""

src/mcp_server/services/product_service.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55

66
from core.factory import Domain, MCPToolBase
7-
from utils.formatters import format_success_response
8-
97

108
class ProductService(MCPToolBase):
119
"""Product tools for employee onboarding and management."""

0 commit comments

Comments
 (0)