Repository navigation
chore: track usage of built-in example templates - #15671
Conversation
There was a problem hiding this comment.
This just adds the ID column, it does not add uuid's to our built in templates yet right?
Are we going to add uuids to our builtins? Or should it be a string, eg: github.com/coder/templates/official/aws-linux
And do we need version control?
github.com/coder/templates/official/aws-linux@ad4efa53708e60a7094ef9687e7dfda0441aaec7?
That's correct.
Hmm, I haven't heard anything about that before. Were there any plans?
In telemetry, we can infer the built-in template version from the deployment version. From my perspective we don't need additional version control. |
This PR adds a column to track the built in template source by uuid correct? Do built ins have a consistent uuid across all deployments? |
Built-in templates have consistent, human-readable ids. These correspond to folder names in https://github.com/coder/coder/tree/main/examples/templates. The examples are embedded in the binary here: Lines 22 to 42 in d66e041 So this PR tracks them by these human-readable ids. |
Addresses coder/nexus#99. Changes: - Save the id of the built-in example template used to create a template version in the database - Include the example id in telemetry (cherry picked from commit b830c05)
- #15589 - #15683 - #15671 --------- Co-authored-by: Hugo Dutka <[email protected]> Co-authored-by: Sas Swart <[email protected]> Co-authored-by: Spike Curtis <[email protected]> Co-authored-by: Cian Johnston <[email protected]>
Addresses https://github.com/coder/nexus/issues/99.
Changes: