koopjs / FeatureServer

An open source Geoservices Implementation (deprecated)
https://geoservices.github.io
Other
104 stars 32 forks source link

Pass domain and nullable properties through. #166

Closed ahamilt closed 4 years ago

ahamilt commented 4 years ago

For layer queries, pass the domain and nullable properties through if provided.

rgwozdz commented 4 years ago

CI build is failing. Looks like you haven't run npm test because the linter is failing and tests haven't run. Are you using a client that fails in some way due to these missing properties? I'm just wondering what has prompted your proposed change. We will need to test this change on all the various ArcGIS clients (Pro, Scene Viewer, Earth, AGO, etc) to ensure it doesn't change behavior or compatability.

ahamilt commented 4 years ago

I've fixed the failing test / linter check.

Without the domain, ArcGIS clients can't resolve the values in a field to the associated label. (e.g the standard popup you'd see on an ArcGIS client would should a number instead of the label. Similar with Operations Dashboard widgets etc.)

If the nullable flag is always false, and returned features include null values, some ArcGIS mobile clients will fail to render features on a map. I don't recall if it was apps using the older 10.x runtime, or the newer 100.x runtimes.

rgwozdz commented 4 years ago

@ahamilt, this is great. Will release today.

rgwozdz commented 4 years ago

Released in 2.21.2.