Skip to content

HDXDSYS-3013 Add HDX custom extensions like fs_check_info_show - #119

Merged
mcarans merged 1 commit into
mainfrom
hdx-custom-actions
Oct 15, 2026
Merged

mcarans merged 1 commit into
mainfrom
hdx-custom-actions

Conversation

@mcarans

@mcarans mcarans commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

Wraps HDX-specific CKAN actions from hdx-ckan that callers currently hit with raw requests (e.g. hdx-pipeline-tracker).

Action Wrapper
fs_check_info_show Dataset.get_fs_check_info() (returns [] if not found)
(same data, no API call) Resource.get_fs_check_info() parses the resource's fs_check_info field
hdx_token_info User.get_current_token_info() returns {email_hash, token_name}, raises HDXError on invalid token
hdx_push_general_stats hdx.api.utilities.hdx_stats.push_general_stats() (needs manage basic scheduled tasks permission)
hdx_general_statistics hdx.api.utilities.hdx_stats.get_general_statistics()

Includes MockSession tests for each and documentation entries in documentation/index.md.

Testing

  • uv run pytest: 184 passed; test_ckan.py::test_create_dataset errors locally only because HDX_PIPELINE_GSHEET_AUTH is unset.
  • pre-commit run --all-files clean.

@github-actions

github-actions Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Test Results

185 tests  +5   185 ✅ +5   1m 20s ⏱️ +3s
  1 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit f1224df. ± Comparison against base commit 3a6926c.

♻️ This comment has been updated with latest results.

@coveralls

coveralls commented Oct 14, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 97.29% (+0.03%) from 97.263% — hdx-custom-actions into main

- Dataset.get_fs_check_info (fs_check_info_show)
- Resource.get_fs_check_info (parses resource fs_check_info field)
- User.get_current_token_info (hdx_token_info)
- hdx.api.utilities.hdx_stats: push_general_stats (hdx_push_general_stats)
  and get_general_statistics (hdx_general_statistics)
@mcarans
mcarans force-pushed the hdx-custom-actions branch from 034a2f4 to f1224df Compare October 15, 2026 01:45
@mcarans mcarans changed the title Add wrappers for HDX custom actions HDXDSYS-3013 Add HDX custom extensions like fs_check_info_show Oct 15, 2026
@mcarans
mcarans merged commit b56b343 into main Oct 15, 2026
6 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.

2 participants