Add some more caching, record scaleset jobs

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
This commit is contained in:
Gabriel Adrian Samfira 2025-05-06 17:50:12 +00:00
parent 2f3c74562e
commit 0e1fa0018b
16 changed files with 244 additions and 70 deletions

View file

@ -1039,6 +1039,17 @@ func (g GithubEntity) String() string {
return ""
}
func (g GithubEntity) GetIDAsUUID() (uuid.UUID, error) {
if g.ID == "" {
return uuid.Nil, nil
}
id, err := uuid.Parse(g.ID)
if err != nil {
return uuid.Nil, fmt.Errorf("failed to parse entity ID: %w", err)
}
return id, nil
}
// used by swagger client generated code
type GithubEndpoints []GithubEndpoint