Skip to content

[Tech Debt] Remove hard coded local-plan specification fallback list #1172

@pooleycodes

Description

@pooleycodes

Tech debt: Remove plan-fallback.json once plan specification is production-ready

Context

The plan specification (local-plan, supplementary-plan, minerals-plan, waste-plan) is not yet in a production-ready format in the specification table. As a temporary measure, plan-fallback.json was added to config/ and checkSpecificationFallback middleware overrides req.specification with this local file instead.

What needs doing

Once the plan specification is promoted to a production-ready format in the specification table:

  • Remove config/plan-fallback.json
  • Remove checkSpecificationFallback from processSpecificationMiddlewares
  • Remove the readFileSync import and planFallback / PLAN_FALLBACK_DATASETS_JSON constants from common.middleware.js

Acceptance criteria

  • Plan datasets (local-plan, supplementary-plan, minerals-plan, waste-plan) resolve their specification directly from the DB via the existing fetchSpecificationpullOutDatasetSpecification pipeline
  • No local fallback file in config/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Sprint Backlog ⏭️

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions