Skip to content

Commit

Permalink
Fix filter hiding
Browse files Browse the repository at this point in the history
  • Loading branch information
Weves committed Nov 28, 2023
1 parent a4f053f commit 30225fd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 15 deletions.
7 changes: 6 additions & 1 deletion backend/danswer/server/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from danswer.auth.users import current_admin_user
from danswer.auth.users import current_user
from danswer.background.celery.celery_utils import get_deletion_status
from danswer.configs.constants import DocumentSource
from danswer.connectors.file.utils import write_temp_files
from danswer.connectors.google_drive.connector_auth import build_service_account_creds
from danswer.connectors.google_drive.connector_auth import delete_google_app_cred
Expand Down Expand Up @@ -453,7 +454,11 @@ def get_connectors(
) -> list[ConnectorSnapshot]:
connectors = fetch_connectors(db_session)
return [
ConnectorSnapshot.from_connector_db_model(connector) for connector in connectors
ConnectorSnapshot.from_connector_db_model(connector)
for connector in connectors
# don't include INGESTION_API, as it's not a "real"
# connector like those created by the user
if connector.source != DocumentSource.INGESTION_API
]


Expand Down
17 changes: 3 additions & 14 deletions web/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@ import { Header } from "@/components/Header";
import {
getAuthDisabledSS,
getCurrentUserSS,
processCookies,
} from "@/lib/userSS";
import { redirect } from "next/navigation";
import { HealthCheckBanner } from "@/components/health/healthcheck";
import { ApiKeyModal } from "@/components/openai/ApiKeyModal";
import { buildUrl, fetchSS } from "@/lib/utilsSS";
import { fetchSS } from "@/lib/utilsSS";
import { Connector, DocumentSet, User } from "@/lib/types";
import { cookies } from "next/headers";
import { SearchType } from "@/lib/search/interfaces";
Expand All @@ -18,18 +17,8 @@ export default async function Home() {
const tasks = [
getAuthDisabledSS(),
getCurrentUserSS(),
fetch(buildUrl("/manage/connector"), {
next: { revalidate: 0 },
headers: {
cookie: processCookies(cookies()),
},
}),
fetch(buildUrl("/manage/document-set"), {
next: { revalidate: 0 },
headers: {
cookie: processCookies(cookies()),
},
}),
fetchSS("/manage/connector"),
fetchSS("/manage/document-set"),
fetchSS("/persona"),
];

Expand Down

1 comment on commit 30225fd

@vercel
Copy link

@vercel vercel bot commented on 30225fd Nov 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.