Skip to content

Extract WorkflowConfig embedded struct from module/api_handlers.go #69

@intel352

Description

@intel352

Problem

Six related fields in the REST API handler struct (workflowType, workflowEngine, initialTransition, instanceIDPrefix, instanceIDField, seedFile) are always set together but live as flat top-level struct fields.

Fix Direction

Extract into an embedded WorkflowConfig struct:

type WorkflowConfig struct {
    Type             string
    Engine           string
    InitialTransition string
    InstanceIDPrefix string
    InstanceIDField  string
    SeedFile         string
}

Update all read/write sites to use the nested struct.

Context

See docs/DEFERRED_ISSUES.md — Code Smells section.

Metadata

Metadata

Assignees

No one assigned

    Labels

    tech-debtCode quality, smells, and incomplete implementations

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions