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

parentIndex is ignored with enabled transformFlatData #4911

Closed
chuckn0rris opened this issue Jul 8, 2022 · 0 comments
Closed

parentIndex is ignored with enabled transformFlatData #4911

chuckn0rris opened this issue Jul 8, 2022 · 0 comments
Assignees
Labels
bug Something isn't working forum Issues from forum resolved Fixed but not yet released (available in the nightly builds)
Milestone

Comments

@chuckn0rris
Copy link

chuckn0rris commented Jul 8, 2022

Forum post

Use flat data with transformFlatData: true to make a tree. See that parentIndex is ignored.

JSON to reproduce

{
    "requestId": 16572635943450,
    "project": {
      "name": "Test1",
      "startDate": "2022-01-01",
      "id": "1",
      "calendar": "general"
    },
    "success": true,
    "tasks": {
      "rows": [
        {
          "parentId": "7117892672471564289",
          "name": "SumTask1",
          "startDate": "2022-01-10T09:00:00+03:00",
          "endDate": "2022-01-10T18:00:00+03:00",
          "effort": 24.0,
          "effortUnit": "hour",
          "duration": 1.0,
          "durationUnit": "day",
          "percentDone": 0.0,
          "schedulingMode": "FixedDuration",
          "manuallyScheduled": false,
          "effortDriven": true,
          "parentIndex": 2,
          "expanded": true,
          "direction": "Forward",
          "inactive": false,
          "critical": true,
          "earlyStartDate": "2022-01-10T09:00:00+03:00",
          "earlyEndDate": "2022-01-10T18:00:00+03:00",
          "lateStartDate": "2022-01-10T09:00:00+03:00",
          "lateEndDate": "2022-01-10T18:00:00+03:00",
          "guid": "75b50ee9-6ac5-4369-8b1f-c8da638cc96a",
          "id": "7117892672471564290"
        },
        {
            "parentId": "7117892672471564289",
            "name": "SumTask2",
            "startDate": "2022-01-10T09:00:00+03:00",
            "endDate": "2022-01-10T18:00:00+03:00",
            "effort": 24.0,
            "effortUnit": "hour",
            "duration": 1.0,
            "durationUnit": "day",
            "percentDone": 0.0,
            "schedulingMode": "FixedDuration",
            "manuallyScheduled": false,
            "effortDriven": true,
            "parentIndex": 1,
            "expanded": true,
            "direction": "Forward",
            "inactive": false,
            "critical": true,
            "earlyStartDate": "2022-01-10T09:00:00+03:00",
            "earlyEndDate": "2022-01-10T18:00:00+03:00",
            "lateStartDate": "2022-01-10T09:00:00+03:00",
            "lateEndDate": "2022-01-10T18:00:00+03:00",
            "guid": "75b50ee9-6ac5-4369-8b1f-c8da638cc96a",
            "id": "71178926724715642911"
        },
        {
            "parentId": "71178926724715642911",
            "name": "New task",
            "startDate": "2022-01-10T09:00:00+03:00",
            "endDate": "2022-01-10T18:00:00+03:00",
            "effort": 24.0,
            "effortUnit": "hour",
            "duration": 1.0,
            "durationUnit": "day",
            "percentDone": 0.0,
            "schedulingMode": "FixedDuration",
            "manuallyScheduled": false,
            "effortDriven": true,
            "parentIndex": 1,
            "expanded": true,
            "direction": "Forward",
            "inactive": false,
            "critical": true,
            "earlyStartDate": "2022-01-10T09:00:00+03:00",
            "earlyEndDate": "2022-01-10T18:00:00+03:00",
            "lateStartDate": "2022-01-10T09:00:00+03:00",
            "lateEndDate": "2022-01-10T18:00:00+03:00",
            "guid": "75b50ee9-6ac5-4369-8b1f-c8da638cc96a",
            "id": "71178926724715642910"
          },
        {
          "parentId": "7117892672471564290",
          "name": "Task2",
          "startDate": "2022-01-10T09:00:00+03:00",
          "endDate": "2022-01-10T18:00:00+03:00",
          "effort": 8.0,
          "effortUnit": "hour",
          "duration": 1.0,
          "durationUnit": "day",
          "percentDone": 0.0,
          "schedulingMode": "FixedDuration",
          "manuallyScheduled": false,
          "effortDriven": true,
          "parentIndex": 0,
          "expanded": true,
          "direction": "Forward",
          "inactive": false,
          "critical": true,
          "earlyStartDate": "2022-01-10T09:00:00+03:00",
          "earlyEndDate": "2022-01-10T18:00:00+03:00",
          "lateStartDate": "2022-01-10T09:00:00+03:00",
          "lateEndDate": "2022-01-10T18:00:00+03:00",
          "guid": "67ea5043-20f3-41e4-a180-c0034caee03f",
          "id": "7117892672471564291"
        },
        {
          "parentId": "7117892672471564290",
          "name": "Task3",
          "startDate": "2022-01-10T09:00:00+03:00",
          "endDate": "2022-01-10T18:00:00+03:00",
          "effort": 8.0,
          "effortUnit": "hour",
          "duration": 1.0,
          "durationUnit": "day",
          "percentDone": 0.0,
          "schedulingMode": "FixedDuration",
          "manuallyScheduled": false,
          "effortDriven": true,
          "parentIndex": 2,
          "expanded": true,
          "direction": "Forward",
          "critical": true,
          "earlyStartDate": "2022-01-10T09:00:00+03:00",
          "earlyEndDate": "2022-01-10T18:00:00+03:00",
          "lateStartDate": "2022-01-10T09:00:00+03:00",
          "lateEndDate": "2022-01-10T18:00:00+03:00",
          "guid": "d6935515-d02a-4451-8542-a4737fd9cfd1",
          "id": "7117892672471564292"
        },
        {
          "parentId": "7117892672471564290",
          "name": "Task4",
          "startDate": "2022-01-10T09:00:00+03:00",
          "endDate": "2022-01-10T18:00:00+03:00",
          "effort": 8.0,
          "effortUnit": "hour",
          "duration": 1.0,
          "durationUnit": "day",
          "percentDone": 0.0,
          "schedulingMode": "FixedDuration",
          "manuallyScheduled": false,
          "effortDriven": true,
          "parentIndex": 1,
          "expanded": true,
          "direction": "Forward",
          "critical": true,
          "earlyStartDate": "2022-01-10T09:00:00+03:00",
          "earlyEndDate": "2022-01-10T18:00:00+03:00",
          "lateStartDate": "2022-01-10T09:00:00+03:00",
          "lateEndDate": "2022-01-10T18:00:00+03:00",
          "guid": "6da2029d-53f8-48c2-b84a-bda9b30568e6",
          "id": "7117892672471564293"
        },
        {
          "name": "Test1",
          "startDate": "2022-01-10T09:00:00+03:00",
          "endDate": "2022-01-10T18:00:00+03:00",
          "effort": 24.0,
          "effortUnit": "hour",
          "duration": 1.0,
          "durationUnit": "day",
          "percentDone": 0.0,
          "schedulingMode": "Normal",
          "manuallyScheduled": false,
          "effortDriven": false,
          "parentIndex": 0,
          "expanded": true,
          "direction": "Forward",
          "inactive": false,
          "critical": true,
          "earlyStartDate": "2022-01-10T09:00:00+03:00",
          "earlyEndDate": "2022-01-10T18:00:00+03:00",
          "lateStartDate": "2022-01-10T09:00:00+03:00",
          "lateEndDate": "2022-01-10T18:00:00+03:00",
          "rootTask": true,
          "guid": "bcdeb971-8483-403b-aa35-42cc4c19f99e",
          "id": "7117892672471564289"
        }
      ]
    },
    "dependencies": {
      "rows": [

      ]
    },
    "calendars": {
      "rows": [
        {
          "id": "general",
          "name": "General",
          "intervals": [
            {
              "recurrentStartDate": "every weekday at 18:00",
              "recurrentEndDate": "every weekday at 9:00",
              "isWorking": false,
              "name": null,
              "startDate": null,
              "endDate": null
            },
            {
              "recurrentStartDate": "every weekday at 13:00",
              "recurrentEndDate": "every weekday at 14:00",
              "isWorking": false,
              "name": null,
              "startDate": null,
              "endDate": null
            },
            {
              "recurrentStartDate": null,
              "recurrentEndDate": null,
              "isWorking": false,
              "name": null,
              "startDate": "2022-01-01",
              "endDate": "2022-01-10"
            },
            {
              "recurrentStartDate": null,
              "recurrentEndDate": null,
              "isWorking": false,
              "name": null,
              "startDate": "2022-02-23",
              "endDate": "2022-02-24"
            },
            {
              "recurrentStartDate": null,
              "recurrentEndDate": null,
              "isWorking": true,
              "name": null,
              "startDate": "2022-03-05",
              "endDate": "2022-03-06"
            },
            {
              "recurrentStartDate": null,
              "recurrentEndDate": null,
              "isWorking": true,
              "name": null,
              "startDate": "2022-03-07",
              "endDate": "2022-03-09"
            },
            {
              "recurrentStartDate": null,
              "recurrentEndDate": null,
              "isWorking": false,
              "name": null,
              "startDate": "2022-05-02",
              "endDate": "2022-05-04"
            },
            {
              "recurrentStartDate": null,
              "recurrentEndDate": null,
              "isWorking": false,
              "name": null,
              "startDate": "2022-05-09",
              "endDate": "2022-05-11"
            },
            {
              "recurrentStartDate": null,
              "recurrentEndDate": null,
              "isWorking": false,
              "name": null,
              "startDate": "2022-06-13",
              "endDate": "2022-05-14"
            },
            {
              "recurrentStartDate": null,
              "recurrentEndDate": null,
              "isWorking": false,
              "name": null,
              "startDate": "2022-11-04",
              "endDate": "2022-11-05"
            }
          ]
        }
      ]
    },
    "resources": {
      "rows": [

      ]
    },
    "assignments": {
      "rows": [

      ]
    },
    "timeRanges": {
      "rows": [

      ]
    },
    "keyResults": {
      "rows": [
        {
          "description": "asd",
          "id": "7117612279826612225"
        }
      ]
    },
    "taskCostCategories": {
      "rows": [
        {
          "id": "adaptation",
          "name": "Адаптация"
        },
        {
          "id": "modification",
          "name": "Модификация"
        },
        {
          "id": "implementation",
          "name": "Внедрение"
        },
        {
          "id": "development",
          "name": "Разработка"
        },
        {
          "id": "consulting",
          "name": "Консалтинг"
        },
        {
          "id": "maintenance",
          "name": "Сопровождение"
        },
        {
          "id": "presale",
          "name": "Pre-sale"
        }
      ]
    }
  }
@chuckn0rris chuckn0rris added bug Something isn't working forum Issues from forum labels Jul 8, 2022
@matsbryntse matsbryntse self-assigned this Nov 12, 2023
@matsbryntse matsbryntse added ready for review Issue is fixed, the pull request is being reviewed resolved Fixed but not yet released (available in the nightly builds) and removed ready for review Issue is fixed, the pull request is being reviewed labels Nov 12, 2023
@matsbryntse matsbryntse added this to the 5.6.1 milestone Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working forum Issues from forum resolved Fixed but not yet released (available in the nightly builds)
Projects
None yet
Development

No branches or pull requests

2 participants