In Generated predicted piece confirmation warning the wrong date is used

Description

Overview:
On attempting to generate a predicted piece set with the same start date as an existing predicted piece set, warnings are displayed to the user. The warning displayed to the user in the confirmation dialogue (displayed after the user has clicked 'Generate pieces') the wrong date is used.

TL/DR : it displays a warning like
```
A predicted piece set with the start date 11/7/2024 already exists for the serial bf719d25-d73a-4fb3-aa76-2203ce58d5f5.
Generating a new set will result in some overlap between piece sets. If this is acceptable select "Generate" to continue.
```

The `start date` quoted is not the start date of the predicted piece set (not sure if it is just the current date, or the predicted piece set `dateCreated`)

Steps to Reproduce:

  1. Navigate to Serial app

  2. Open the serial record from the pre-conditions

  3. Click "Add publication pattern"
    Add a monthly publication pattern as follows:

  • Cycle length / Time unit = Month

  • Cycle length / Number of months = 1

  • No. of issues published per cycle = 1

  • Days of publication, per cycle / Day format = Day (1-31)

  • Issue 1 / Day = 1
    Use the Add label button to add a label with

  • Label style = Chronology

  • Chronology format = Chronology Month

  • Month format = October

  • Year format = 23
    Use the Add label button to add a label with

  • Label style = Enumeration

  • Enumeration format = Enumeration Numeric
    Level 1 (e.g. volume)

  • No. of units = 1

  • Format = Number

  • Sequence = Continuous
    Level 2 (e.g. issue number)

  • No. of units = 12

  • Format = Number

  • Sequence = Reset
    Complete the template with the text:

  • Vol. enumeration1.level1 Issue enumeration1.level2, chronology1.month chronology1.year

  1. Save and close the publication

  2. Select Actions menu from the top right of the view serials pane

  3. Select "Generate predicted pieces"

  4. Enter start date of 2024-01-01, a note with some text, Label 2: Level 1 = 5, Label 2: Level 2 = 1 and click "Preview"

  5. Click "Generate"

  6. Navigate back to serial record

  7. Select "Generate predicted pieces"

  8. Enter start date of 2024-01-01, a note with some text, Label 2: Level 1 = 5, Label 2: Level 2 = 1

Note that at this point a warning is displayed in the form like:

Warning: A predicted piece set with the start date 1/1/2024 already exists for the serial <serial name or UUID>

  1. Click "Generate"
    The confirmation dialogue is displayed with text like:
    ```
    A predicted piece set with the start date <date> already exists for the serial <serial name or UUID>
    Generating a new set will result in some overlap between piece sets. If this is acceptable select "Generate" to continue.
    ```

Note that the <date> value is not 1/1/2024 as is expected

CSP Request Details

None

CSP Rejection Details

None

Potential Workaround

None

Checklist

hide

Activity

Show:

Jack Golding November 11, 2024 at 12:29 PM

Associated PR for start date changes:

Done

Details

Assignee

Reporter

Priority

Sprint

Development Team

Bienenvolk

Release

Ramsons (R2 2024) Bug Fix

RCA Group

TBD

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created November 7, 2024 at 4:41 PM
Updated November 13, 2024 at 12:44 PM
Resolved November 13, 2024 at 12:44 PM
TestRail: Cases
TestRail: Runs