Skip to content

[codex] Add WxS identifiers to web service modal#210

Merged
ewlarson merged 1 commit into
developfrom
feature/175-wxs-identifiers
May 7, 2026
Merged

[codex] Add WxS identifiers to web service modal#210
ewlarson merged 1 commit into
developfrom
feature/175-wxs-identifiers

Conversation

@ewlarson
Copy link
Copy Markdown
Contributor

@ewlarson ewlarson commented May 7, 2026

Summary

Fixes #175.

This updates the web services link flow so OGC service entries expose the pieces users need separately and safely:

  • includes the copyable base service URL for WMS/WFS/WCS/WMTS links
  • includes the copyable gbl_wxsIdentifier_s layer identifier when present
  • adds scoped helper request URLs for layer-specific WMS, WFS, and WCS workflows
  • renders those values in the Web Services modal with copy controls

For WMS, the helper request now builds a layer-scoped GetMap preview using the resource bbox and EXCEPTIONS=application/vnd.ogc.se_inimage, so GeoServer layer errors open in the browser as an image response instead of downloading XML. This avoids provider-wide GetCapabilities calls and keeps the preview scoped to the resource.

Validation

  • python -m pytest backend/tests/services/test_link_service.py
  • npm test -- LinksTable.test.tsx --run
  • ruff check backend/app/services/link_service.py backend/tests/services/test_link_service.py
  • targeted frontend ESLint on changed files
  • targeted Prettier check on changed files

Note: repo-wide frontend lint/format currently reports unrelated pre-existing failures outside this change.

- Updated LinkService to include WxS identifiers in web service links, improving the detail provided for OGC services.
- Refactored the _get_web_services_links method to return additional request URLs and labels for WMS, WFS, and WCS services.
- Enhanced LinksTable component to display WxS identifiers and service URLs, with copy functionality for better user experience.
- Added tests to verify the inclusion of WxS identifiers in service links and ensure correct rendering in the LinksTable.

These changes improve the functionality and usability of the link services within the application.

Fixes #175
@ewlarson ewlarson marked this pull request as ready for review May 7, 2026 21:51
@ewlarson ewlarson merged commit 8c6bacb into develop May 7, 2026
7 checks passed
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.

WxS Indentifiers are being omitted from the web service modal

1 participant