arcgis-rest-js
arcgis-rest-js copied to clipboard
Add job support
Enhancement of https://github.com/Esri/arcgis-rest-js/pull/1018 with additional doc and minor fixes.
Codecov Report
Merging #1020 (aca4ab3) into main (135600c) will not change coverage. The diff coverage is
100.00%.
@@ Coverage Diff @@
## main #1020 +/- ##
==========================================
Coverage 100.00% 100.00%
==========================================
Files 141 146 +5
Lines 2653 2880 +227
Branches 492 519 +27
==========================================
+ Hits 2653 2880 +227
| Impacted Files | Coverage Δ | |
|---|---|---|
| packages/arcgis-rest-request/src/index.ts | 100.00% <100.00%> (ø) |
|
| packages/arcgis-rest-request/src/job.ts | 100.00% <100.00%> (ø) |
|
| ...ages/arcgis-rest-request/src/types/job-statuses.ts | 100.00% <100.00%> (ø) |
|
| ...es/arcgis-rest-request/src/utils/ArcGISJobError.ts | 100.00% <100.00%> (ø) |
|
| ...arcgis-rest-request/test/mocks/job-mock-fetches.ts | 100.00% <100.00%> (ø) |
|
| ...cgis-rest-request/test/utils/ArcGISRequestError.ts | 100.00% <100.00%> (ø) |
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.
@gavinr, The demo at the top of the file, you'll see that is parsing SECRET_KEY. However it needs to match whatever property you've called it, we must have missed it there it should read like:
const API_KEY = dotenv.config().parsed?.API_KEY;
This is ready. @marcysilverman and I are having a meeting later today to debug some odd behavior we are seeing on sampleserver6.
Now when I run npm start in demos/job, it opens a browser but I don't see anything about jobs. Am I supposed to see a Job being run here?

@gavinr want to take a look again?