Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions pkg/app/ops/insightcollector/deployments.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ func (c *Collector) findDeploymentsCreatedInRange(ctx context.Context, from, to
Field: "CreatedAt",
Direction: datastore.Desc,
},
{

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Hosshii you may need to update firestore index as well to enable this query to work. Firestore indexes stored under pkg/app/ops/firestoreindexensurer/indexes.json

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, thank you!

Field: "Id",
Direction: datastore.Asc,
},
},
})
if err != nil {
Expand Down Expand Up @@ -133,6 +137,10 @@ func (c *Collector) findDeploymentsCompletedInRange(ctx context.Context, from, t
Field: "CompletedAt",
Direction: datastore.Desc,
},
{
Field: "Id",
Direction: datastore.Asc,
},
},
})
if err != nil {
Expand Down