Skip to content

6175: add has_download filter for datasets without distribution links - #13

Closed
Aguiardavidm wants to merge 2 commits into
mainfrom
6175-data-access-filter
Closed

6175: add has_download filter for datasets without distribution links#13
Aguiardavidm wants to merge 2 commits into
mainfrom
6175-data-access-filter

Conversation

@Aguiardavidm

Copy link
Copy Markdown

Summary

  • Adds a has_download boolean field to the OpenSearch dataset document/mapping, computed from dcat.distribution[].downloadURL (DCAT-US 1.1/3.0 compatible; accessURL-only distributions do not count, per DCAT-US 3.0 semantics where accessURL is explicitly indirect access)
  • Registers a new opt-in has_download search filter (single checkbox, off by default) rendered via the existing generic checkbox_group sidebar renderer
  • Bumps package version 1.2.0 -> 1.3.0

Addresses GSA/data.gov#6175.

Test plan

  • poetry run pytest tests/unit/search/test_search_filter_registry.py tests/unit/search/test_mappings.py tests/integration/search/test_documents.py (74 passed)
  • poetry run ruff check / poetry run ruff format --check on changed files
  • Bump the datagov-data-access pin in datagov-catalog and manually verify the sidebar checkbox in the browser

🤖 Generated with Claude Code

@Aguiardavidm

Copy link
Copy Markdown
Author

@Aguiardavidm
Aguiardavidm deleted the 6175-data-access-filter branch August 5, 2026 17:25
Aguiardavidm added a commit to GSA/datagov-harvester that referenced this pull request Aug 7, 2026
Ports GSA/datagov_data_access#13 into harvester's vendored search/
package now that datagov_data_access is deprecated.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Aguiardavidm added a commit to GSA/datagov-catalog that referenced this pull request Aug 7, 2026
Ports GSA/datagov_data_access#13 into catalog's vendored app/search/
package now that datagov_data_access is deprecated. Also documents
has_download on the Dataset API response schema.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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.

1 participant