Skip to content

tech-debt(analytics): loadProjectRoot is returned by the composable and never called #21419

Open

Description

@mrveiss

Problem

loadProjectRoot (autobot-frontend/src/composables/analytics/useAnalyticsDataFetchers.ts:508) is returned from the composable (:664) and has no caller anywhere under autobot-frontend/src (grep across the tree: only the definition and the return). It reads the saved path from localStorage and otherwise sets rootPath from appConfig.getProjectRoot().

Unused code is unfinished work: wire it in, do not delete it.

Impact

The page never loads the configured project root, so whatever it was meant to initialise is never initialised.

Acceptance criteria

  • Either loadProjectRoot is called from the place that needs the project root (page setup), with a test asserting the call; or this issue records, with grep evidence, why no consumer needs it and what replaced it.
  • Any root it sets goes through the source-scoping pattern (scopeToSource / withSourceId), not as an unscoped default.

Refs #20491

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions