DO NOT MERGE. Changes and tests here currently dependent on anticipated PR merge in winnow.
Assumptions:
For an OBJECTID to fully support ArcGIS clients, it must have name and alias equal to OBJECTID
If a model's idField is set to a given attribute, and the format option is not geojson, we can use the value of the idField attribute as the OBJECTID value, and then delete the original idField attribute so that the information is duplicated in the attributes object
This PR:
Adds warning if a request is aimed at a provider that has not assigned an idField to its metadata.
Adds warning if a request returns OBJECTIDs that are not integers or are out of range
Alters the creation of the fields objects to account for the use of a model's attribute as the OBJECTID (the idField), and when doing so, conforms to the assumptions listed above
DO NOT MERGE. Changes and tests here currently dependent on anticipated PR merge in winnow.
Assumptions:
name
andalias
equal toOBJECTID
idField
is set to a given attribute, and the format option is notgeojson
, we can use the value of the idField attribute as the OBJECTID value, and then delete the original idField attribute so that the information is duplicated in theattributes
objectThis PR:
idField
to its metadata.fields
objects to account for the use of a model's attribute as the OBJECTID (the idField), and when doing so, conforms to the assumptions listed above