refactor: Show template versions as timeline (#4800)

This commit is contained in:
Bruno Quaresma
2022-10-31 16:38:07 +00:00
committed by GitHub
parent cc655672eb
commit 46e0953876
21 changed files with 218 additions and 218 deletions
+1 -1
View File
@@ -94,7 +94,7 @@ func displayTemplateVersions(activeVersionID uuid.UUID, templateVersions ...code
rows[i] = templateVersionRow{
Name: templateVersion.Name,
CreatedAt: templateVersion.CreatedAt,
CreatedBy: templateVersion.CreatedByName,
CreatedBy: templateVersion.CreatedBy.Username,
Status: strings.Title(string(templateVersion.Job.Status)),
Active: activeStatus,
}
+1 -1
View File
@@ -35,7 +35,7 @@ func TestTemplateVersions(t *testing.T) {
require.NoError(t, <-errC)
pty.ExpectMatch(version.Name)
pty.ExpectMatch(version.CreatedByName)
pty.ExpectMatch(version.CreatedBy.Username)
pty.ExpectMatch("Active")
})
}