Skip to content

MapStore Widgets cannot retrieve Data from Postgres when connected to an attribute table #2057

Open
@Jo-Schie

Description

@Jo-Schie

Expected Behavior

a widget such as a counter that is connected to an attribute table in the dashbaord should be able to retrieve information from the table (postgres) and perform some operation on it (e.g. "count", "sum", etc.).

If a filter is applied in one of the columns of the attribute tables, then the widget can retrieve the data.

Actual Behavior

Currently the retrieval of data fails if the whole attribute table is shown and no filter is applied. The frontend displays an error message.

"There was an error during data retrieval: "Cannot read properties of undefined (reading '0')"

The problem does not persist, if the counter is connected to the map and retrieval is done using bounding box.

Steps to Reproduce the Problem

  1. Create Dashboard
  2. Add Table
  3. Add Counter and connect to table.

Example here: https://development.demo.geonode.org/catalogue/#/dashboard/2489

Specifications

  • GeoNode version: 4.4.X and Master (both affected).

-> reproducible in both public demos of GeoNode

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions