Skip to content

Define Draft service lifecycle rules #1170

Description

@matKlju

AS A service designer
I WANT clear rules for creating, saving, and returning services to Draft
SO THAT I can build services freely while understanding the impact of removing an Active service from publication.

Description

Draft is the editable, non-public service state.

A service is created in Draft after a unique title has been provided.
A Ready service may return to Draft.
An Active service may also return to Draft, but Service-Module must warn the designer when Active services depend on it.

Acceptance criteria

  • Returning a Ready service to Draft does not show a dependency warning.

  • When no Active service depends on an Active service being returned to Draft, the status changes without a dependency warning.

  • When one or more Active services can reach an Active service being returned to Draft, a confirmation modal is shown before the status changes.

  • The confirmation modal lists every affected Active service by title and status.

  • Each listed service title is clickable and opens that service on the canvas.

  • The confirmation modal displays up to 10 affected services without scrolling.

  • When more than 10 affected services are listed, the service list is vertically scrollable.

  • The confirmation modal displays:

    • EN: Return service to Draft?
      The following Active services use this service. They will remain Active, but users who reach this connection will not be able to continue the service flow.
      <service_name/ service_state>

    • ET: Muuda teenus mustandiks?
      Järgmised aktiivsed teenused kasutavad seda teenust. Need jäävad aktiivseks, kuid kasutajad ei saa selle ühenduseni jõudes teenusevooga jätkata.
      <teenuse_nimi/ teenuse_staatus>

  • The confirmation modal includes:

    • EN: Cancel and Return to Draft
    • ET: Tühista and Muuda mustandiks
  • Selecting Cancel keeps the service Active.

  • Confirming the change returns the service to Draft.

  • Returning an Active service to Draft does not automatically change the status of services that reference it.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestv3.3.4Release v3.3.4

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions