openkfw / Oscar

A digital decision support system for humanitarian operations
https://www.oscarplatform.org/
GNU General Public License v3.0
11 stars 1 forks source link

157 geodata route #158

Closed bariela closed 1 year ago

bariela commented 1 year ago

Description

There is still issue with geometry filters in postgres queries due to unresolved SRID values in geodata routes

Motivation and Context

How has this been tested?

Screenshots (if appropriate):

Types of changes

Checklist:

srezacova commented 1 year ago

Hi, should't we add allowReserved: true also to attributeId in /api/attributes and remove encode/decode from code? And for all proj, attributeId, attributeIdCategory we have in apischema.

When I run initial load on Dashboard layer throw: "APIError: Parameter 'attributeId' must be url encoded. Its value may not contain reserved characters.\n That's weird, I have feeling that this worked before for attributeId.

Maybe we should also get rid of word static in apischema, but I guess that's not important now.

Initial data upload is failing because of null value in column "geo_data_url" of relation "layer_geo_data" violates not-null constraint, if tested with demo data, but that is also in main.

In log from initial load I see [1] "[18].featureIds[0].property:"province"" is not allowed, that probably shouldn't be there.

bariela commented 1 year ago

Hi, should't we add allowReserved: true also to attributeId in /api/attributes and remove encode/decode from code? And for all proj, attributeId, attributeIdCategory we have in apischema.

When I run initial load on Dashboard layer throw: "APIError: Parameter 'attributeId' must be url encoded. Its value may not contain reserved characters.\n That's weird, I have feeling that this worked before for attributeId.

Maybe we should also get rid of word static in apischema, but I guess that's not important now.

Initial data upload is failing because of null value in column "geo_data_url" of relation "layer_geo_data" violates not-null constraint, if tested with demo data, but that is also in main.

In log from initial load I see [1] "[18].featureIds[0].property:"province"" is not allowed, that probably shouldn't be there.

For the parameters - yes, they should be all probably handled the same way

For the apischema I agree, not priority now The initial-data-load failing is all right, it should - there is apparently problem in data/config, not in code. The log directly says it, featureIds should be array of strings, it gets object with property 'province'