Skip to content

Commit 962ee77

Browse files
committed
feat: set webserver config for showing kernel list in session detail panel
1 parent a12e32f commit 962ee77

File tree

4 files changed

+13
-1
lines changed

4 files changed

+13
-1
lines changed

changes/3671.feature.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Add a `show_kernel_list` config to webserver to show/hide kernel list in the session detail panel.
2+
3+
Add configs not specified in sample.toml

configs/webserver/sample.conf

+7-1
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,14 @@ force_2FA = false
6565
directory_based_usage = false
6666
# If true, display the custom allocation on the session launcher.
6767
# allow_custom_resource_allocation = true
68-
# If false, directory size in folder explorer will show `-`. default value is set to true.
6968
is_directory_size_visible = true
69+
# edu_appname_prefix = ""
70+
# If false, the model store will be disabled.
71+
# enable_model_store = True
72+
# enable_extend_login_session = False
73+
# If false, directory size in folder explorer will show `-`. default value is set to true.
74+
# If true, the kernel list will be shown in the session detail panel.
75+
show_kernel_list = false
7076

7177
[resources]
7278
# Display "Open port to public" checkbox in the app launcher.

src/ai/backend/web/config.py

+2
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@
6666
t.Key("edu_appname_prefix", default=""): t.String(allow_blank=True),
6767
t.Key("enable_model_store", default=True): t.ToBool(),
6868
t.Key("enable_extend_login_session", default=False): t.ToBool(),
69+
t.Key("is_directory_size_visible", default=True): t.ToBool(),
70+
t.Key("show_kernel_list", default=False): t.ToBool(),
6971
}).allow_extra("*"),
7072
t.Key("resources"): t.Dict({
7173
t.Key("open_port_to_public", default=False): t.ToBool,

src/ai/backend/web/templates/config.toml.j2

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ connectionMode = "SESSION"
3333
{% toml_field "eduAppNamePrefix" config["service"]["edu_appname_prefix"] %}
3434
{% toml_field "enableModelStore" config["service"]["enable_model_store"] %}
3535
{% toml_field "enableExtendLoginSession" config["service"]["enable_extend_login_session"] %}
36+
{% toml_field "showKernelList" config["service"]["show_kernel_list"] %}
3637

3738
[resources]
3839
{% toml_field "openPortToPublic" config["resources"]["open_port_to_public"] %}

0 commit comments

Comments
 (0)