-
Notifications
You must be signed in to change notification settings - Fork 894
feat: add support for template version messages in api and cli #8336
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 6 commits
77dbe0b
f40bcc7
a2aedfd
ffb7f3f
98377ad
960e5d1
7cd20bb
93de18a
5bee51f
9280af6
b8e36f6
9945e94
3329d5b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -477,6 +477,7 @@ func TemplateVersion(t testing.TB, db database.Store, orig database.TemplateVers | |
CreatedAt: takeFirst(orig.CreatedAt, database.Now()), | ||
UpdatedAt: takeFirst(orig.UpdatedAt, database.Now()), | ||
Name: takeFirst(orig.Name, namesgenerator.GetRandomName(1)), | ||
Message: orig.Message, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: what about testing? do we need a random message generated for unit tests or maybe benchmarks in the future? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's a valid concern, although I didn't do it because I'm sure how we'd set an empty message if we use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @mafredri the empty |
||
Readme: takeFirst(orig.Readme, namesgenerator.GetRandomName(1)), | ||
JobID: takeFirst(orig.JobID, uuid.New()), | ||
CreatedBy: takeFirst(orig.CreatedBy, uuid.New()), | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ALTER TABLE template_versions DROP COLUMN message; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
ALTER TABLE template_versions ADD COLUMN message text NOT NULL DEFAULT ''; | ||
|
||
COMMENT ON COLUMN template_versions.message IS 'Message describing the changes in this version of the template, similar to a Git commit message. Like a commit message, this should be a short, high-level description of the changes in this version of the template. This message is immutable and should not be updated after the fact.'; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.