tilt icon indicating copy to clipboard operation
tilt copied to clipboard

Ability to suppress automatic links in UI

Open jlc-christie opened this issue 1 year ago • 3 comments

Describe the Feature You Want

Ability to disable automatic links created when using docker_compose(...) that has services that expose ports.

Current Behavior

Links are automatically created when a service exposes a port but there is no way to turn this off, e.g. I tried defining the resource using dc_resource and providing links=[], links=None and providing a dummy link but they either have no effect or they just append to the automatically added links.

Why Do You Want This?

The generated links are usually great, but in certain circumstances (e.g. when a service exposes a port range, it generates a link for each port in the range) it can bloat the UI. It would also be useful if you wanted to rename the links to something meaningful instead.

jlc-christie avatar Dec 01 '23 04:12 jlc-christie

I've also experienced this. I've also often add links manually to the service's specific path, and localhost:port/ will fail every time when localhost:port/myapp/ works fine - particularly in services designed to be proxied to. The / link ends up misleading to developers unfamiliar with that service.

Being able to prevent that stubbed toe would be an improvement.

EmilyDimpfl avatar Dec 08 '23 19:12 EmilyDimpfl

I just opened a PR that adds this functionality. Hopefully it will be approved!

kinland avatar Mar 05 '24 05:03 kinland

@nicks can probably close this now :)

kinland avatar Mar 06 '24 21:03 kinland