Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat(coderd): add sftp to insights apps#12675

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
mafredri merged 1 commit intomainfrommafredri/add-sftp-to-insights-apps
Mar 27, 2024
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletionscoderd/insights.go
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -474,6 +474,14 @@ func convertTemplateInsightsApps(usage database.GetTemplateInsightsRow, appUsage
Icon: "/icon/terminal.svg",
Seconds: usage.UsageSshSeconds,
},
{
TemplateIDs: usage.SftpTemplateIds,
Type: codersdk.TemplateAppsTypeBuiltin,
DisplayName: codersdk.TemplateBuiltinAppDisplayNameSFTP,
Slug: "sftp",
Icon: "/icon/terminal.svg",
Seconds: usage.UsageSftpSeconds,
},
}

// Use a stable sort, similarly to how we would sort in the query, note that
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -45,6 +45,14 @@
"icon": "/icon/terminal.svg",
"seconds": 10800
},
{
"template_ids": [],
"type": "builtin",
"display_name": "SFTP",
"slug": "sftp",
"icon": "/icon/terminal.svg",
"seconds": 0
},
{
"template_ids": [
"00000000-0000-0000-0000-000000000002"
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -45,6 +45,14 @@
"icon": "/icon/terminal.svg",
"seconds": 10800
},
{
"template_ids": [],
"type": "builtin",
"display_name": "SFTP",
"slug": "sftp",
"icon": "/icon/terminal.svg",
"seconds": 0
},
{
"template_ids": [
"00000000-0000-0000-0000-000000000002"
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -52,6 +52,14 @@
"icon": "/icon/terminal.svg",
"seconds": 11520
},
{
"template_ids": [],
"type": "builtin",
"display_name": "SFTP",
"slug": "sftp",
"icon": "/icon/terminal.svg",
"seconds": 0
},
{
"template_ids": [
"00000000-0000-0000-0000-000000000001",
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -52,6 +52,14 @@
"icon": "/icon/terminal.svg",
"seconds": 11520
},
{
"template_ids": [],
"type": "builtin",
"display_name": "SFTP",
"slug": "sftp",
"icon": "/icon/terminal.svg",
"seconds": 0
},
{
"template_ids": [
"00000000-0000-0000-0000-000000000001",
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -45,6 +45,14 @@
"icon": "/icon/terminal.svg",
"seconds": 7920
},
{
"template_ids": [],
"type": "builtin",
"display_name": "SFTP",
"slug": "sftp",
"icon": "/icon/terminal.svg",
"seconds": 0
},
{
"template_ids": [
"00000000-0000-0000-0000-000000000001"
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -47,6 +47,14 @@
"icon": "/icon/terminal.svg",
"seconds": 4320
},
{
"template_ids": [],
"type": "builtin",
"display_name": "SFTP",
"slug": "sftp",
"icon": "/icon/terminal.svg",
"seconds": 0
},
{
"template_ids": [
"00000000-0000-0000-0000-000000000001",
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -43,6 +43,14 @@
"icon": "/icon/terminal.svg",
"seconds": 3600
},
{
"template_ids": [],
"type": "builtin",
"display_name": "SFTP",
"slug": "sftp",
"icon": "/icon/terminal.svg",
"seconds": 0
},
{
"template_ids": [
"00000000-0000-0000-0000-000000000002"
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -43,6 +43,14 @@
"icon": "/icon/terminal.svg",
"seconds": 3600
},
{
"template_ids": [],
"type": "builtin",
"display_name": "SFTP",
"slug": "sftp",
"icon": "/icon/terminal.svg",
"seconds": 0
},
{
"template_ids": [
"00000000-0000-0000-0000-000000000003"
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -52,6 +52,14 @@
"icon": "/icon/terminal.svg",
"seconds": 15120
},
{
"template_ids": [],
"type": "builtin",
"display_name": "SFTP",
"slug": "sftp",
"icon": "/icon/terminal.svg",
"seconds": 0
},
{
"template_ids": [
"00000000-0000-0000-0000-000000000001",
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -45,6 +45,14 @@
"icon": "/icon/terminal.svg",
"seconds": 7920
},
{
"template_ids": [],
"type": "builtin",
"display_name": "SFTP",
"slug": "sftp",
"icon": "/icon/terminal.svg",
"seconds": 0
},
{
"template_ids": [
"00000000-0000-0000-0000-000000000001"
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -52,6 +52,14 @@
"icon": "/icon/terminal.svg",
"seconds": 15120
},
{
"template_ids": [],
"type": "builtin",
"display_name": "SFTP",
"slug": "sftp",
"icon": "/icon/terminal.svg",
"seconds": 0
},
{
"template_ids": [
"00000000-0000-0000-0000-000000000001",
Expand Down
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -36,6 +36,14 @@
"slug": "ssh",
"icon": "/icon/terminal.svg",
"seconds": 0
},
{
"template_ids": [],
"type": "builtin",
"display_name": "SFTP",
"slug": "sftp",
"icon": "/icon/terminal.svg",
"seconds": 0
}
],
"parameters_usage": []
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -36,6 +36,14 @@
"slug": "ssh",
"icon": "/icon/terminal.svg",
"seconds": 0
},
{
"template_ids": [],
"type": "builtin",
"display_name": "SFTP",
"slug": "sftp",
"icon": "/icon/terminal.svg",
"seconds": 0
}
],
"parameters_usage": [
Expand Down
1 change: 1 addition & 0 deletionscodersdk/insights.go
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -206,6 +206,7 @@ const (
TemplateBuiltinAppDisplayNameJetBrains string = "JetBrains"
TemplateBuiltinAppDisplayNameWebTerminal string = "Web Terminal"
TemplateBuiltinAppDisplayNameSSH string = "SSH"
TemplateBuiltinAppDisplayNameSFTP string = "SFTP"
)

// TemplateAppUsage shows the usage of an app for one or more templates.
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp