the-duke
v1.13.0
Published
Working Repo for ArcGIS Hub job code
Downloads
12
Keywords
Readme
TheDuke
Job code utility library for ArcGIS Hub
Composer + Jazz + Washington, D.C. = The Duke
Prerequisites
You will need the following things installed on your computer.
Installation
- get the repo on your computer:
git clone [email protected]:ArcGIS/TheDuke.git
orgit clone https://github.com/ArcGIS/TheDuke.git
- install dependencies:
npm install
Running / Development
nvm use
npm run watch
- edit files in /src or /test directories
- verify that node-watch runs the linter, tests, and build scripts
- :hammer:
Harvesting
- Group layers are not turned into datasets of any kind. Hence they are filtered out during compose step.
Compose Structure
Refer to
{
errors:[
{
...
}
]
item:
metadata:
groups:
server: <only if item has a feature|map|image server>
layers: <only if item has a feature|map server>
default: <top level keys like createdAt, name, title, tags, source etc.>
}
Error Structure
{
message:
stack:
name: <examples: FetchError | TypeError | SomeCustomError etc. >
timestamp:
field: <The field that caused this error like item | metadata | groups etc. >
url: <may be null if not HTTPError>
statusCode: <may be null if not HTTPError>
httpMethod: <may be null if not HTTPError else 'get', 'post' etc.>
}