Skip to content

Enforce business logic rule repository/use case level #197

@opatry

Description

@opatry

Need to gather all cases where UI disables an action somehow.
For each, identify the condition.
For each condition ensure that

  1. the condition comes from the business logic and not the UI
  2. the condition is checked before trying to apply the action (even if UI disables it)

When an API is called and the condition is not satisfied, it should throw either an IllegalArgumentException or (unlikely) an IllegalStateException.

Unit tests should reflect that (repository/use case level, UI model mapper level).
UI tests should reflect that.

  • Default task list can't be deleted
  • No indentation > 1
  • No move to top for first cell

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement⭐️ New feature or request

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions