mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-10 20:35:17 +02:00
feat: update Elasticsearch connector handling and display name
This commit is contained in:
parent
55d752e3c8
commit
c3d249682f
3 changed files with 9 additions and 2 deletions
|
|
@ -52,5 +52,11 @@ def upgrade() -> None:
|
|||
|
||||
|
||||
def downgrade() -> None:
|
||||
"""Remove 'ELASTICSEARCH_CONNECTOR' from enum types."""
|
||||
"""Remove 'ELASTICSEARCH_CONNECTOR' from enum types.
|
||||
|
||||
Note: PostgreSQL does not support removing enum values that may be in use.
|
||||
Manual intervention would be required if rollback is necessary:
|
||||
1. Delete all rows using ELASTICSEARCH_CONNECTOR
|
||||
2. Manually remove the enum value using ALTER TYPE ... DROP VALUE (requires no dependencies)
|
||||
"""
|
||||
pass
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ def get_connector_emoji(connector_name: str) -> str:
|
|||
"GOOGLE_CALENDAR_CONNECTOR": "📅",
|
||||
"AIRTABLE_CONNECTOR": "🗃️",
|
||||
"LUMA_CONNECTOR": "✨",
|
||||
"ELASTICSEARCH_CONNECTOR": "🔎",
|
||||
"ELASTICSEARCH_CONNECTOR": "⚡",
|
||||
}
|
||||
return connector_emojis.get(connector_name, "🔎")
|
||||
|
||||
|
|
|
|||
|
|
@ -74,6 +74,7 @@ const getApiKeyFieldName = (connectorType: string): string => {
|
|||
DISCORD_CONNECTOR: "DISCORD_BOT_TOKEN",
|
||||
LINKUP_API: "LINKUP_API_KEY",
|
||||
LUMA_CONNECTOR: "LUMA_API_KEY",
|
||||
ELASTICSEARCH_CONNECTOR: "ELASTICSEARCH_API_KEY",
|
||||
};
|
||||
return fieldMap[connectorType] || "";
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue