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

Feat/kanban grouped list api #3814

Merged
merged 5 commits into from
Sep 26, 2022
Merged

Conversation

pranavxc
Copy link
Member

@pranavxc pranavxc commented Sep 26, 2022

Change Summary

Api paths:

  • /api/v1/db/data/:orgs/:projectName/:tableName/views/:viewName/group/:columnId
  • /api/v1/db/data/:orgs/:projectName/:tableName/group/:columnId

Sample response:

[
  {
    "key": "PG",
    "value": {
      "list": [
        {
          "FilmId": 1,
          "Title": "ACADEMY DINOSAUR",
          "Description": "A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teacher in The Canadian Rockies",
          "ReleaseYear": "2006",
          "RentalDuration": 6,
          "RentalRate": 0.99,
          "Length": 86,
          "ReplacementCost": 20.99,
          "Rating": "PG",
          "SpecialFeatures": "Deleted Scenes,Behind the Scenes",
          "LastUpdate": "2019-03-26 06:17:02",
          "Language": null,
          "Language1": {
            "LanguageId": 1,
            "Name": "English"
          },
          "Actor List": [
            {
              "ActorId": 1,
              "FirstName": "PENELOPE"
            },
            {
              "ActorId": 10,
              "FirstName": "CHRISTIAN"
            },
            {
              "ActorId": 20,
              "FirstName": "LUCILLE"
            },
            {
              "ActorId": 30,
              "FirstName": "SANDRA"
            },
            {
              "ActorId": 40,
              "FirstName": "JOHNNY"
            },
            {
              "ActorId": 53,
              "FirstName": "MENA"
            },
            {
              "ActorId": 108,
              "FirstName": "WARREN"
            },
            {
              "ActorId": 162,
              "FirstName": "OPRAH"
            },
            {
              "ActorId": 188,
              "FirstName": "ROCK"
            },
            {
              "ActorId": 198,
              "FirstName": "MARY"
            }
          ],
          "Category List": [
            {
              "CategoryId": 6,
              "Name": "Documentary"
            }
          ],
          "Store List": [
            {
              "StoreId": 1,
              "ManagerStaffId": 1
            },
            {
              "StoreId": 1,
              "ManagerStaffId": 1
            },
            {
              "StoreId": 1,
              "ManagerStaffId": 1
            },
            {
              "StoreId": 1,
              "ManagerStaffId": 1
            },
            {
              "StoreId": 2,
              "ManagerStaffId": 2
            },
            {
              "StoreId": 2,
              "ManagerStaffId": 2
            },
            {
              "StoreId": 2,
              "ManagerStaffId": 2
            },
            {
              "StoreId": 2,
              "ManagerStaffId": 2
            }
          ]
        }
      ],
      "pageInfo": {
        "totalRows": 194,
        "page": 1,
        "pageSize": 1,
        "isFirstPage": true,
        "isLastPage": false
      }
    }
  },
  {
    "key": "G",
    "value": {
      "list": [
        {
          "FilmId": 2,
          "Title": "ACE GOLDFINGER",
          "Description": "A Astounding Epistle of a Database Administrator And a Explorer who must Find a Car in Ancient China",
          "ReleaseYear": "2006",
          "RentalDuration": 3,
          "RentalRate": 4.99,
          "Length": 48,
          "ReplacementCost": 12.99,
          "Rating": "G",
          "SpecialFeatures": "Trailers,Deleted Scenes",
          "LastUpdate": "2019-03-26 06:17:02",
          "Language": null,
          "Language1": {
            "LanguageId": 1,
            "Name": "English"
          },
          "Actor List": [
            {
              "ActorId": 19,
              "FirstName": "BOB"
            },
            {
              "ActorId": 85,
              "FirstName": "MINNIE"
            },
            {
              "ActorId": 90,
              "FirstName": "SEAN"
            },
            {
              "ActorId": 160,
              "FirstName": "CHRIS"
            }
          ],
          "Category List": [
            {
              "CategoryId": 11,
              "Name": "Horror"
            }
          ],
          "Store List": [
            {
              "StoreId": 2,
              "ManagerStaffId": 2
            },
            {
              "StoreId": 2,
              "ManagerStaffId": 2
            },
            {
              "StoreId": 2,
              "ManagerStaffId": 2
            }
          ]
        }
      ],
      "pageInfo": {
        "totalRows": 178,
        "page": 1,
        "pageSize": 1,
        "isFirstPage": true,
        "isLastPage": false
      }
    }
  },
  {
    "key": "NC-17",
    "value": {
      "list": [
        {
          "FilmId": 3,
          "Title": "ADAPTATION HOLES",
          "Description": "A Astounding Reflection of a Lumberjack And a Car who must Sink a Lumberjack in A Baloon Factory",
          "ReleaseYear": "2006",
          "RentalDuration": 7,
          "RentalRate": 2.99,
          "Length": 50,
          "ReplacementCost": 18.99,
          "Rating": "NC-17",
          "SpecialFeatures": "Trailers,Deleted Scenes",
          "LastUpdate": "2019-03-26 06:17:02",
          "Language": null,
          "Language1": {
            "LanguageId": 1,
            "Name": "English"
          },
          "Actor List": [
            {
              "ActorId": 2,
              "FirstName": "NICK"
            },
            {
              "ActorId": 19,
              "FirstName": "BOB"
            },
            {
              "ActorId": 24,
              "FirstName": "CAMERON"
            },
            {
              "ActorId": 64,
              "FirstName": "RAY"
            },
            {
              "ActorId": 123,
              "FirstName": "JULIANNE"
            }
          ],
          "Category List": [
            {
              "CategoryId": 6,
              "Name": "Documentary"
            }
          ],
          "Store List": [
            {
              "StoreId": 2,
              "ManagerStaffId": 2
            },
            {
              "StoreId": 2,
              "ManagerStaffId": 2
            },
            {
              "StoreId": 2,
              "ManagerStaffId": 2
            },
            {
              "StoreId": 2,
              "ManagerStaffId": 2
            }
          ]
        }
      ],
      "pageInfo": {
        "totalRows": 210,
        "page": 1,
        "pageSize": 1,
        "isFirstPage": true,
        "isLastPage": false
      }
    }
  },
  {
    "key": "PG-13",
    "value": {
      "list": [
        {
          "FilmId": 7,
          "Title": "AIRPLANE SIERRA",
          "Description": "A Touching Saga of a Hunter And a Butler who must Discover a Butler in A Jet Boat",
          "ReleaseYear": "2006",
          "RentalDuration": 6,
          "RentalRate": 4.99,
          "Length": 62,
          "ReplacementCost": 28.99,
          "Rating": "PG-13",
          "SpecialFeatures": "Trailers,Deleted Scenes",
          "LastUpdate": "2019-03-26 06:17:02",
          "Language": null,
          "Language1": {
            "LanguageId": 1,
            "Name": "English"
          },
          "Actor List": [
            {
              "ActorId": 99,
              "FirstName": "JIM"
            },
            {
              "ActorId": 133,
              "FirstName": "RICHARD"
            },
            {
              "ActorId": 162,
              "FirstName": "OPRAH"
            },
            {
              "ActorId": 170,
              "FirstName": "MENA"
            },
            {
              "ActorId": 185,
              "FirstName": "MICHAEL"
            }
          ],
          "Category List": [
            {
              "CategoryId": 5,
              "Name": "Comedy"
            }
          ],
          "Store List": [
            {
              "StoreId": 1,
              "ManagerStaffId": 1
            },
            {
              "StoreId": 1,
              "ManagerStaffId": 1
            },
            {
              "StoreId": 2,
              "ManagerStaffId": 2
            },
            {
              "StoreId": 2,
              "ManagerStaffId": 2
            },
            {
              "StoreId": 2,
              "ManagerStaffId": 2
            }
          ]
        }
      ],
      "pageInfo": {
        "totalRows": 223,
        "page": 1,
        "pageSize": 1,
        "isFirstPage": true,
        "isLastPage": false
      }
    }
  },
  {
    "key": "R",
    "value": {
      "list": [
        {
          "FilmId": 8,
          "Title": "AIRPORT POLLOCK",
          "Description": "A Epic Tale of a Moose And a Girl who must Confront a Monkey in Ancient India",
          "ReleaseYear": "2006",
          "RentalDuration": 6,
          "RentalRate": 4.99,
          "Length": 54,
          "ReplacementCost": 15.99,
          "Rating": "R",
          "SpecialFeatures": "Trailers",
          "LastUpdate": "2019-03-26 06:17:03",
          "Language": null,
          "Language1": {
            "LanguageId": 1,
            "Name": "English"
          },
          "Actor List": [
            {
              "ActorId": 55,
              "FirstName": "FAY"
            },
            {
              "ActorId": 96,
              "FirstName": "GENE"
            },
            {
              "ActorId": 110,
              "FirstName": "SUSAN"
            },
            {
              "ActorId": 138,
              "FirstName": "LUCILLE"
            }
          ],
          "Category List": [
            {
              "CategoryId": 11,
              "Name": "Horror"
            }
          ],
          "Store List": [
            {
              "StoreId": 2,
              "ManagerStaffId": 2
            },
            {
              "StoreId": 2,
              "ManagerStaffId": 2
            },
            {
              "StoreId": 2,
              "ManagerStaffId": 2
            },
            {
              "StoreId": 2,
              "ManagerStaffId": 2
            }
          ]
        }
      ],
      "pageInfo": {
        "totalRows": 195,
        "page": 1,
        "pageSize": 1,
        "isFirstPage": true,
        "isLastPage": false
      }
    }
  }
]

Change type

  • feat: (new feature for the user, not a new feature for build script)
  • fix: (bug fix for the user, not a fix to a build script)
  • docs: (changes to the documentation)
  • style: (formatting, missing semi colons, etc; no production code change)
  • refactor: (refactoring production code, eg. renaming a variable)
  • test: (adding missing tests, refactoring tests; no production code change)
  • chore: (updating grunt tasks etc; no production code change)

Test/ Verification

Provide summary of changes.

Additional information / screenshots (optional)

Anything for maintainers to be made aware of

Signed-off-by: Pranav C <pranavxc@gmail.com>
Signed-off-by: Pranav C <pranavxc@gmail.com>
Signed-off-by: Pranav C <pranavxc@gmail.com>
Signed-off-by: Pranav C <pranavxc@gmail.com>
Signed-off-by: Pranav C <pranavxc@gmail.com>
@pranavxc pranavxc marked this pull request as ready for review September 26, 2022 09:20
@wingkwong wingkwong merged commit cc254d4 into feat/kanban-view Sep 26, 2022
@wingkwong wingkwong deleted the feat/kanban-grouped-list-api branch September 26, 2022 10:00
@wingkwong
Copy link
Member

Api.ts part will be updated in kanban branch.

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

Successfully merging this pull request may close these issues.

2 participants