Skip to content

Custom linter for workspace activity database functions #13147

Closed
@f0ssel

Description

@f0ssel

The simplest option available to us is to make workspaceapps.StatsCollector the single entity responsible for performing the following database queries:

  • ActivityBumpWorkspace
  • UpdateWorkspaceLastUsedAt / BatchUpdateWorkspaceLastUsedAt / UpdateTemplateWorkspacesLastUsedAt
  • InsertWorkspaceAgentStats
  • InsertWorkspaceAppStats

This will involve the following changes:

  • Add a custom linter to detect usage of the above database methods outside of workspaceapps and warn. This will aid in the overall refactor.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions