Skip to content

Implement mechanics for intent status response #1021

@matKlju

Description

@matKlju

AS A Service-Module developer
I WANT server-side and integration logic that maintains a two-state training flag for intents
SO THAT the UI can show a clear green/red indicator and we can block publishing when intents are not trained

Acceptance Criteria

  • **Two statuses only:

    • ** TRAINED and NOT_TRAINED.
  • **On create

    • ** New intent → status=NOT_TRAINED, needsTraining=true, record lastModifiedAt.
  • **On change:

    • ** Any training-relevant edit (examples, entities, responses, rules, synonyms, config that affects model) → status=NOT_TRAINED, needsTraining=true, update lastModifiedAt.
  • **On model switch:

    • ** If the active model version changes and the intent is not included in that model for the environment → flip to status=NOT_TRAINED (treat as not trained for that env).
  • UI indicator contract:
    - 🟢 Green – Trainedstatus=TRAINED and modelVersion[env] == activeModelVersion[env]
    - 🔴 Red – Not trained ⇢ otherwise

Metadata

Metadata

Assignees

Labels

Projects

Status

Won't do

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions