mirror of
https://github.com/tiennm99/DocsGPT.git
synced 2026-10-14 14:17:08 +00:00
Hide connectors that need admin setup; they start turned off
A connector's enabled switch is now optional: unset means on when the connector has the server settings it needs, so Google Drive, SharePoint and Confluence start off until their OAuth settings are present, and an admin's explicit switch always wins. Changing only the sharing mode no longer switches a connector on. Members only see connectors they can use. The catalog, Add Source tiles and Add Tool leave out anything turned off or still needing setup, except a connector a member already has a connection to, which stays listed as turned off so it can be managed or removed.
This commit is contained in:
1 parent
324d54ea67
commit
a564dea401
18 files changed
+248
-62
No files matched your search
@@ -9,6 +9,8 @@ from unittest.mock import MagicMock, patch
|
||||
import pytest
|
||||
from flask import Flask
|
||||
|
||||
from tests.connectors.conftest import _oauth_connectors_configured # noqa: F401,E402 (autouse)
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def app():
|
||||
|
||||
@@ -14,6 +14,8 @@ from unittest.mock import MagicMock, patch
|
||||
import pytest
|
||||
from flask import Flask
|
||||
|
||||
from tests.connectors.conftest import _oauth_connectors_configured # noqa: F401,E402 (autouse)
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def app():
|
||||
|
||||
Reference in new issue
Block a user