Can add a processing period without a name

Description

While checking OLMIS-6172, I noticed that we can add unnamed periods.

Reproduction steps:

  1. Send PUT api/processingPeriods/id or POST api/processingPeriods with body:

  2. I received the status 201, and the unnamed period is visible on the UI.

  3. Also, Start Date and End Date are different on the UI than those given in the body.

Expected results:

  • It should not be possible to create processing periods without names;

  • It should not be possible to update an existing processing period in such a way that its name is null;

  • The processing period's start date and end date on the back-end should match the dates visible on the UI.

Environment

None

Status

Assignee

Mateusz Wedeł

Reporter

Joanna Szymańska

Labels

Story Points

1

Time tracking

16h

Components

Sprint

None

Fix versions

Priority

Major
Configure