Skip to content

Mismatch in DatasetCount between different Endpoints. #86

@SpeckiJ

Description

@SpeckiJ

The EntityCounter counts all Datasets in the Database - even when they are not retrievable by the REST-API due to non-default valueTypes (e.g. category). The /datasets Endpoint ignores such Entries.

This leads to a mismatch between the Dataset-Count retrieved under /services/<serviceid> and the Amount of items in /datasets.

Function that would need to be overwritten/modified for DatasetDao:
https://github.com/52North/dao-series-api/blob/6fc321084cbc27ab21442512b2c59f6df8f1ca3b/dao/src/main/java/org/n52/series/db/da/EntityCounter.java#L115

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions