coder icon indicating copy to clipboard operation
coder copied to clipboard

Don't backfill recently used value if it is equal to the previous default

Open NiklasRosenstein opened this issue 1 year ago • 1 comments

We're providing a default URL for the dotfiles of user's workspaces, but this URL has changed. However, users don't get this new URL now because they all have "recently used" the old default. 99% of our users don't override this field, the "recently used" value that is being filled is just the old default.

NiklasRosenstein avatar Apr 29 '24 16:04 NiklasRosenstein

Ahh, interesting. Good bug, will fix.

kylecarbs avatar Apr 29 '24 17:04 kylecarbs

Once the workspace is created with the default value, that gets saved as a value for the database. There's really no clean way for us to do what you're looking for because it may have unintended consequences for users.

As a workaround, you can have a "leave blank to use the default" and use Terraform logic + locals to assign the new default for a template version.

bpmct avatar May 31 '24 14:05 bpmct