Closed axel7083 closed 3 weeks ago
Following https://github.com/containers/podman-desktop-extension-ai-lab/pull/1838, the noTimeoutChannels was not working anymore. It is an hardcoded list of channels that should not have a timeout. However we now prefix the channel for each api with the class CHANNEL property.
noTimeoutChannels
CHANNEL
To avoid having ${StudioAPI.CHANNEL}-openDialog I added a getChannel method, taking a class, a keyof this class, to ensure typescript prevent us from adding invalid channels.
${StudioAPI.CHANNEL}-openDialog
getChannel
N/A
Fixes https://github.com/containers/podman-desktop-extension-ai-lab/issues/1991
Manually
import
What does this PR do?
Following https://github.com/containers/podman-desktop-extension-ai-lab/pull/1838, the
noTimeoutChannels
was not working anymore. It is an hardcoded list of channels that should not have a timeout. However we now prefix the channel for each api with the classCHANNEL
property.To avoid having
${StudioAPI.CHANNEL}-openDialog
I added agetChannel
method, taking a class, a keyof this class, to ensure typescript prevent us from adding invalid channels.Screenshot / video of UI
N/A
What issues does this PR fix or reference?
Fixes https://github.com/containers/podman-desktop-extension-ai-lab/issues/1991
How to test this PR?
Manually
import
(top right corner)