Skip to content

Send an uploaded raster catalog with the request - #1127

Merged
cugarteblair merged 1 commit into
mainfrom
issue-1124-catalog-upload
Sep 28, 2026
Merged

cugarteblair merged 1 commit into
mainfrom
issue-1124-catalog-upload

Conversation

@cugarteblair

@cugarteblair cugarteblair commented Sep 28, 2026 •

Copy link
Copy Markdown
Member

Summary

Issue #1124: in Raster Sampling, Upload a Catalog File read and parsed the file and showed "Catalog file successfully loaded", but the catalog never reached the request.

  • The catalog went nowhere. SrCatalogFileUpload.vue stored it in catalogStore, which nothing read. The sampler row's catalog comes only from the Catalog box (rasterParamsStore.catalog). The upload now fills that box with the file's text, the same as pasting, and Add New Raster Params copies it into the row. catalogStore.ts is removed.
  • The picker couldn't select a catalog. It had accept=".smp,.smpr", left over from an early draft of the component, so .geojson and .json files couldn't be chosen. It now accepts .geojson,.json, like the region upload.

The upload still only checks that the file is valid JSON.

Closes #1124

Test plan

  • make pre-commit-check passed on commit (lockfiles, lint-staged, typecheck, unit tests incl. the 3 in the new SrCatalogFileUpload.spec.ts, two of which fail against the old component)
  • make run with a Playwright script (not committed): uploaded a real 4-tile usgs3dep-1meter-dem catalog through the button → success toast, the Catalog box holds the file text, and after adding a row the samples the request would send carry the catalog (read from the store; nothing sent to a server)
  • A live request with an uploaded catalog (not run; the check above stops at the request parameters)

🤖 Generated with Claude Code

"Upload a Catalog File" parsed the file and reported success, but
stored it in catalogStore, which nothing read, so the catalog never
reached the request. It now fills the Catalog box, the same as
pasting, and "Add New Raster Params" copies it into the sampler row.
catalogStore is removed.

The file picker also only accepted .smp/.smpr files, left over from an
early draft of the component, so a .geojson or .json catalog couldn't
be chosen. It now accepts .geojson and .json, like the region upload.

Closes #1124

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cugarteblair
cugarteblair merged commit 2325449 into main Sep 28, 2026
1 check passed
@cugarteblair
cugarteblair deleted the issue-1124-catalog-upload branch September 28, 2026 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Uploaded catalog file never reaches the request

1 participant