tilt icon indicating copy to clipboard operation
tilt copied to clipboard

Toggle "Trigger Mode" for resources on details page

Open Venryx opened this issue 4 years ago • 2 comments

Describe the Feature You Want

It would be nice if the "Trigger Mode" toggle that shows in the Tilt UI's start panel was made accessible on the "detail view" as well. (ie. the view that shows when you click one of the pods)

Current Behavior

Currently, if you want to change the Trigger Mode of a pod that you're already viewing the logs for, you have to back out to the main menu, toggle it, then go back in -- and this can be a pain if you have a lot of pods. (groups can help, but it's still a pain)

Why Do You Want This?

There are a lot of times where I'm making frequent changes to some "shared code" that is imported by both my NodeJS app-server, and my Javascript frontend. Because the code is shared, Tilt is trying to propagate the changes to both my app-server and web-server pods, which is as expected.

However, sometimes when I'm making these frequent changes, I know for sure that the changes are only "actually" going to make a different for the frontend code. Thus, I want to quickly (and briefly) disable automatic updating of the app-server pod while I'm making those many small changes.

Setting "Trigger Mode" to manual for a specific pod should work great for this. The problem is that whenever I want to switch its Trigger Mode, I have to back out to the main menu, scroll down to the pod, toggle the control, then click into the pod again. Besides the back and forth annoyance, it also loses the "collapsed" state of the different pod/resource groups, which I then have to recollapse each time.

Video demonstration:

Additional context

Here is a screenshot of the "detail view", within which I am hoping that another instance of the Trigger Mode toggle control could be added somewhere:

As can be seen, I have circled in red areas of the UI that could potentially be chosen as a place to put the Trigger Mode toggle. If none of those work, then perhaps a dropdown panel could be added, or one of the existing UI elements could be moved or resized.

Venryx avatar Dec 11 '21 01:12 Venryx

cc @SurbhiSGupta

milas avatar Dec 13 '21 14:12 milas

Are there any updates on this feature request?

I too find having to go back to the table view each time a pain.

g3kk0 avatar Sep 16 '22 13:09 g3kk0