Skip to content

Allow only publishable services to become Active #1167

Description

@matKlju

AS A service designer
I WANT Service-Module to validate all Next Service dependencies before activating a service
SO THAT an Active service never directs an end user to an unavailable service.

Description

A service may move from Ready to Active only when it still passes Ready validation and every directly or indirectly reachable Next Service target is Active.

Draft and Ready services may be used as Next Service targets while designing a flow, but they block activation.

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

Acceptance criteria

  • Only a Ready service can be moved to Active.
  • A Ready service can be moved to Active when it passes Ready validation and all reachable Next Service targets are Active.
  • Activation validates direct and indirect service targets.
  • A Draft or Ready target service blocks activation.
  • A missing or unavailable target service blocks activation.
  • When activation is blocked, the service remains in Ready status.
  • When activation is blocked, the designer is shown every blocking target service and its current status.
    • EN:
      Cannot activate service. The following connected services must be Active:
      <service-name/ service status>
    • ET:
      Teenust ei saa aktiveerida. Järgmised seotud teenused peavad olema aktiivsed:
      <teenuse-nimi/ teenuse staatus>
  • Each listed blocking service title is clickable and opens that service on the canvas.
  • The activation-blocking notification modal includes a close button:
    • EN: Continue
    • ET: Jätka
  • The notification modal shows up to 10 blocking services without scrolling.
  • When more than 10 blocking services are listed, the service list is vertically scrollable.
  • The designer can activate the service after every listed service has been changed to Active.
  • Returning an Active target 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

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions