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

Reports REST API improvements #260

Closed
andreysubbotin opened this issue May 14, 2020 · 1 comment
Closed

Reports REST API improvements #260

andreysubbotin opened this issue May 14, 2020 · 1 comment
Assignees
Labels
state: fixed Fixed by the developer type: enhancement New feature or request ver: 7.2.6 Fixed in version ver: 7.3.0 Fixed in version
Milestone

Comments

@andreysubbotin
Copy link
Contributor

andreysubbotin commented May 14, 2020

https://www.cuba-platform.com/discuss/t/include-report-group-as-part-of-report-information-rest-api/12201

Environment

  • Platform version: 7.2

Description of the bug or enhancement

  • Include information about a report group for report list and report by id requests.
  • Include default parameter values for report input parameters.

Implementation:

  • Added group field to report.
Example
Request: /rest/reports/v1/report
Responce:
{
    "id": "eb7ac2aa-5cf9-c43a-eee8-eb2b33104297",
    "name": "Some Test Report",
    "code": "REP_T_1",
    "group": "4e083530-0b9c-11e1-9b41-6bdaa41bff94"
}, {
    "id": "3e638c2b-9c10-368f-ac7c-a362e611d740",
    "name": "Report for entity \"Model\"",
    "code": "MODEL_TESTT",
    "group": "867d107e-05dc-1580-f8e2-f792247ca5e0"
}
  • Added defaultValue field to input parameter.
Example
Request: /rest/reports/v1/report/3e638c2b-9c10-368f-ac7c-a362e611d740
Responce:
{
    "id": "3e638c2b-9c10-368f-ac7c-a362e611d740",
    "name": "Report for entity \"Model\"",
    "code": "MODEL_TESTT",
    "group": "867d107e-05dc-1580-f8e2-f792247ca5e0",
    "templates": [{
            "code": "DEFAULT",
            "outputType": "CHART"
        }
    ],
    "inputParameters": [{
            "name": "Needed",
            "alias": "needed",
            "type": "NUMERIC",
            "required": true,
            "hidden": false,
            "defaultValue": "3"
        }
    ]
}
  • added endpoint /rest/reports/v1/group/{groupId} to get group details
Example
Request: /rest/reports/v1/group/867d107e-05dc-1580-f8e2-f792247ca5e0"
Responce: 
{
    "id": "867d107e-05dc-1580-f8e2-f792247ca5e0",
    "title": "Second",
    "code": "SECOND"
}
@andreysubbotin andreysubbotin added the type: enhancement New feature or request label May 14, 2020
@andreysubbotin andreysubbotin assigned dtaimanov and unassigned t2-cuba Jun 4, 2020
@dtaimanov dtaimanov added this to the Release 7.2 milestone Jun 11, 2020
dtaimanov added a commit that referenced this issue Jun 11, 2020
dtaimanov added a commit that referenced this issue Jun 18, 2020
@haulmont-git haulmont-git added the ver: 7.3.0 Fixed in version label Jun 18, 2020
dtaimanov added a commit that referenced this issue Jun 18, 2020
@haulmont-git haulmont-git added the ver: 7.2.6 Fixed in version label Jun 18, 2020
@natfirst natfirst added the state: fixed Fixed by the developer label Jun 21, 2020
@chavu
Copy link

chavu commented Aug 27, 2020

Thank you for this but what would also be useful are the following

  1. Ability to get list of reports for a given group code(alias not uuid)
  2. ability to get a list of all groups available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state: fixed Fixed by the developer type: enhancement New feature or request ver: 7.2.6 Fixed in version ver: 7.3.0 Fixed in version
Projects
None yet
Development

No branches or pull requests

6 participants