Skip to content

Problem with phases dates (v1 bundle?) #1027

Closed

Description

@Didayolo

When the first phase ending date is exactly the same as the second phase starting, we got the following error:

Capture d’écran 2023-07-21 à 18 25 47

But I think this is what we got when uploading v1 bundle, with only starting dates (no end dates). Note sure if we have the same problem with v2 bundles. The upload works, but then when we edit a phase, even without changing the date, the problem appears.

Activity

  1. ihsaan-ullah commented on Aug 2, 2023

    @ihsaan-ullah
    Collaborator

    @Didayolo, The following is observed after testing

    V1 Bundle

    1. If a phase has no end date and it is not the last phase, the next phase start date is used as the end date for this phase

    Point 1 leads to the error mentioned in this issue

    V2 Bundle

    1. If phase is NOT the last phase, then uploading such bundle gives error that it should have and end date
    2. If phase is the last date, without end date there is not error
    3. If you have two phases, phase 1 end date and phase 2 start date can be same (bundle uploads)

    Point 3 leads to the error mentioned in this issue

    Solutions:

    • V1 bundle
      if a phase has no end date and this phase is not the last phase, use the next phase (start date - 1) as its end date
    • V2 bundle
      check if a phase is not the first phase, and its start date and previous phase end date are same, then give error
  2. self-assigned this
    on Aug 2, 2023
  3. Didayolo commented on Aug 9, 2023

    @Didayolo
    MemberAuthor

    I close this issue to keep track in the PR.

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions