Skip to content

actualSamples is not added when allPages is equal to True in scalardata service #29

@kan-fu

Description

@kan-fu

allPages=True in scalardata services can concatenate data from multiple pages. However the actualSamples is not summed.

Steps to reproduce:

  1. Run the code snippet below. Without "rowLimit", the json should return 60 files.
params = {
    "deviceCode": "BPR-Folger-59",
    "dateFrom": "2019-11-23T00:00:00.000Z",
    "dateTo": "2019-11-23T00:01:00.000Z",
    "rowLimit": 25,
}
data = onc.getDirectByDevice(params, allPages=True)
data["sensorData"]

Expected behavior:

  • actualSamples should be 60.

Actual behavior:

  • actualSamples is 25 (it returns the value from querying the first page)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions