Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Milestone Management] Challenge End Date does not sync between Connect/WM/Community APP #4449

Open
drasticdpk opened this issue Aug 9, 2021 · 2 comments

Comments

@drasticdpk
Copy link
Collaborator

Reference

https://connect.topcoder-dev.com/projects/18173

image

@elkhawajah
Copy link
Contributor

We are using challenge.startDate and challenge.endDate fields to render the dates

We can use phases array first item startDate and last phase item scheduledEndDate to render the timeline, and then on actual challenge end date we will use the actualEndDate of the last phase object

The challenge object

{
   "id":"7c19d9de-8200-424b-9c60-55f71269ed57",
   "created":"2021-08-06T14:02:49.068Z",
   "createdBy":"pshah_copilot",
   "updated":"2021-08-06T14:02:49.068Z",
   "updatedBy":"pshah_copilot",
   "status":"New",
   "projectId":18166,
   "name":"Task 1",
   "typeId":"ecd58c69-238f-43a4-a4bb-d172719b9f31",
   "trackId":"9b6fc876-f4d9-4ccb-9dfd-419247628825",
   "startDate":"2021-08-07T14:02:47.000Z",
   "legacy":{
      "reviewType":"INTERNAL",
      "pureV5Task":true,
      "confidentialityType":"public",
      "directProjectId":26218
   },
   "descriptionFormat":"markdown",
   "timelineTemplateId":"53a307ce-b4b3-4d6f-b9a1-3741a58f77e6",
   "terms":[
      {
         "id":"317cd8f9-d66c-4f2a-8774-63c612d99cd4",
         "roleId":"732339e7-8e30-49d7-9198-cccf9451e221"
      }
   ],
   "groups":[
      
   ],
   "description":"",
   "task":{
      "isTask":true,
      "isAssigned":false,
      "memberId":null
   },
   "phases":[
      {
         "phaseId":"a93544bc-c165-4af4-b55e-18f3593b457a",
         "duration":864000,
         "id":"5e9f7d68-87b1-4f62-ab3e-31696b78fd93",
         "name":"Registration",
         "isOpen":false,
         "scheduledStartDate":"2021-08-07T14:02:47.000Z",
         "scheduledEndDate":"2021-08-17T14:02:47.000Z",
         "actualStartDate":"2021-08-07T14:02:47.000Z"
      },
      {
         "phaseId":"6950164f-3c5e-4bdc-abc8-22aaf5a1bd49",
         "duration":864000,
         "id":"1f514b60-8986-45d9-9428-3b422db3fb24",
         "name":"Submission",
         "isOpen":false,
         "scheduledStartDate":"2021-08-07T14:02:47.000Z",
         "scheduledEndDate":"2021-08-17T14:02:47.000Z",
         "actualStartDate":"2021-08-07T14:02:47.000Z"
      },
      {
         "phaseId":"003a4b14-de5d-43fc-9e35-835dbeb6af1f",
         "duration":86400,
         "id":"2d425f63-7222-43b2-b5af-950ea7688f4d",
         "name":"Iterative Review",
         "isOpen":false,
         "predecessor":"6950164f-3c5e-4bdc-abc8-22aaf5a1bd49",
         "scheduledStartDate":"2021-08-17T14:02:47.000Z",
         "scheduledEndDate":"2021-08-18T14:02:47.000Z",
         "actualStartDate":"2021-08-17T14:02:47.000Z"
      }
   ],
   "endDate":"2021-08-08T14:02:47.000Z",
   "numOfSubmissions":0,
   "numOfRegistrants":0,
   "currentPhaseNames":[
      
   ],
   "registrationStartDate":"2021-08-07T14:02:47.000Z",
   "registrationEndDate":"2021-08-17T14:02:47.000Z",
   "submissionStartDate":"2021-08-07T14:02:47.000Z",
   "submissionEndDate":"2021-08-17T14:02:47.000Z",
   "track":"Development",
   "type":"Task"
}

@RishiRajSahu
Copy link
Contributor

RishiRajSahu commented Aug 13, 2021

I am good with using challenge.startDate and challenge.endDate.
Only thing I am not clear is why they both have the same value ?, @ajefts do you have any preferences here ?

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

No branches or pull requests

3 participants