Skip to content

[usage] Remove old controller & report generator#12688

Merged
roboquat merged 1 commit into
mainfrom
mp/usage-remove-old-controller
Sep 8, 2022
Merged

[usage] Remove old controller & report generator#12688
roboquat merged 1 commit into
mainfrom
mp/usage-remove-old-controller

Conversation

@easyCZ

@easyCZ easyCZ commented Sep 6, 2022

Copy link
Copy Markdown
Member

Description

These are no longer needed.

Related Issue(s)

Fixes #

How to test

Release Notes

NONE

Documentation

Werft options:

  • /werft with-preview

@easyCZ
easyCZ force-pushed the mp/usage-remove-old-controller branch from 6a93271 to 3bcf804 Compare September 8, 2022 07:32
@easyCZ
easyCZ marked this pull request as ready for review September 8, 2022 07:36
@easyCZ
easyCZ requested a review from a team September 8, 2022 07:36
@github-actions github-actions Bot added the team: webapp Issue belongs to the WebApp team label Sep 8, 2022
now := time.Now().UTC()
hourAgo := now.Add(-1 * time.Hour)

reportUsageReconcileStarted()

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.

Only change here is to re-use the metrics from the previous controller in the new one.


func filterByWorkspaceId(all []db.WorkspaceInstanceForUsage, workspaceID string) []db.WorkspaceInstanceForUsage {
result := []db.WorkspaceInstanceForUsage{}
var result []db.WorkspaceInstanceForUsage

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.

Drive-by for best-practice of slice instantiation

@roboquat
roboquat merged commit e937ca7 into main Sep 8, 2022
@roboquat
roboquat deleted the mp/usage-remove-old-controller branch September 8, 2022 07:56
@roboquat roboquat added deployed: webapp Meta team change is running in production deployed Change is completely running in production labels Sep 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

deployed: webapp Meta team change is running in production deployed Change is completely running in production release-note-none size/XXL team: webapp Issue belongs to the WebApp team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants