Skip to content

Commit

Permalink
Add chyt_nb connection (datalens-tech#448)
Browse files Browse the repository at this point in the history
* Add chyt_nb connection

* Add chyt_nb connection
  • Loading branch information
kapibaara authored Jan 11, 2024
1 parent 7b8db02 commit 0820e97
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/shared/constants/connections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export enum ConnectorType {
SchoolbookJournal = 'schoolbook_journal',
SmbHeatmaps = 'smb_heatmaps',
Chyt = 'chyt',
ChytNb = 'chyt_nb',
Extractor1c = 'extractor1c',
Yadocs = 'yadocs',
MonitoringV2 = 'monitoring_v2',
Expand Down
1 change: 1 addition & 0 deletions src/ui/components/EntryIcon/EntryIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ const typeToIcon: Record<string, IconData> = {
[ConnectorType.ChOverYt]: iconCHYT,
[ConnectorType.ChOverYtUserAuth]: iconCHYTUser,
[ConnectorType.Chyt]: iconChytYC,
[ConnectorType.ChytNb]: iconChytYC,
[ConnectorType.Chydb]: iconCHYDB,
[ConnectorType.Ydb]: iconYDB,
[ConnectorType.Yq]: iconYQ,
Expand Down
1 change: 1 addition & 0 deletions src/ui/units/ql/constants/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export const AVAILABLE_SQL_CONNECTION_TYPES = [
ConnectorType.Postgres,
ConnectorType.Ydb,
ConnectorType.Chyt,
ConnectorType.ChytNb,
];

export const AVAILABLE_PROMQL_CONNECTION_TYPES = ['promql'];
Expand Down
1 change: 1 addition & 0 deletions src/ui/utils/connections/icons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ export const getConnectorIconDataWithoutDefault = (type?: string): IconData | un
case ConnectorType.ChOverYtUserAuth:
return iconChOverYtUser;
case ConnectorType.Chyt:
case ConnectorType.ChytNb:
return iconChytYC;
case ConnectorType.Csv:
return iconCsv;
Expand Down

0 comments on commit 0820e97

Please sign in to comment.