| Index: scheduler/appengine/catalog/catalog.go
|
| diff --git a/scheduler/appengine/catalog/catalog.go b/scheduler/appengine/catalog/catalog.go
|
| index 2e6dfc4a3d7f9c7d8f01e9d6b8699f02e28bd60c..fcb3d893b4806fc180e8dac3544c032050677ba8 100644
|
| --- a/scheduler/appengine/catalog/catalog.go
|
| +++ b/scheduler/appengine/catalog/catalog.go
|
| @@ -184,6 +184,22 @@ func (cat *catalog) GetAllProjects(c context.Context) ([]string, error) {
|
| }
|
|
|
| func (cat *catalog) GetProjectJobs(c context.Context, projectID string) ([]Definition, error) {
|
| + // TODO(vadimsh): This is a workaround for crbug.com/710619. Remove it once
|
| + // the bug is fixed.
|
| + projects, err := cat.GetAllProjects(c)
|
| + if err != nil {
|
| + return nil, err
|
| + }
|
| + found := false
|
| + for _, p := range projects {
|
| + if p == projectID {
|
| + found = true
|
| + }
|
| + }
|
| + if !found {
|
| + return nil, nil
|
| + }
|
| +
|
| configSet := cfgtypes.ProjectConfigSet(cfgtypes.ProjectName(projectID))
|
| configSetURL, err := cfgclient.GetConfigSetURL(c, cfgclient.AsService, configSet)
|
| switch err {
|
|
|