Repository navigation
Add wrappers for HDX data grid, resource flag, QA, fs_check and datastore actions - #123
Merged
Merged
Conversation
…tore actions - Location.get_data_grid (hdx_datagrid_show) and Location.invalidate_data_grid (invalidate_data_completeness_for_location) - Resource.is_p_coded/set_p_coded (hdx_p_coded_resource_update), is_in_hapi/set_in_hapi (hdx_mark_resource_in_hapi), is_in_quarantine/set_in_quarantine (hdx_mark_resource_in_quarantine), qa_patch (hdx_qa_resource_patch), revise_fs_check (hdx_fs_check_resource_revise), reset_fs_check (hdx_fs_check_resource_reset) and push_to_datastore (hdx_push_resource_to_datastore) - Dataset.get_shape_info (shape_info_show), get_recommended_tags (hdx_recommend_tags), is_allowed_for_datastore (hdx_is_package_allowed_for_datastore), push_to_datastore, set_qa_completed (hdx_mark_qa_completed), qa_revise_resources (hdx_qa_package_revise_resource) and reset_fs_check (hdx_fs_check_package_reset) - hdx_stats.get_user_statistics (hdx_user_statistics) and get_organization_statistics (hdx_organization_statistics)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Wraps more of HDX's custom CKAN actions (from the
get_actions()of hdx-ckan'sckanext-hdx_*plugins). Several are currently called raw by other repos:hdx_datagrid_show(hdx-pipeline-tracker),hdx_p_coded_resource_update(HDX-JP-SW-PCODE),hdx_mark_resource_in_hapi(hdx-hapi-scheduled-tasks) andhdx_fs_check_resource_revise(gisrestlayer).Location.get_data_grid/invalidate_data_gridhdx_datagrid_show/invalidate_data_completeness_for_locationResource.is_p_coded/set_p_codedhdx_p_coded_resource_updateResource.is_in_hapi/set_in_hapihdx_mark_resource_in_hapi(sendsyes/no-data)Resource.is_in_quarantine/set_in_quarantinehdx_mark_resource_in_quarantineResource.qa_patchhdx_qa_resource_patchResource.revise_fs_check/reset_fs_checkhdx_fs_check_resource_revise/_resetDataset.set_qa_completedhdx_mark_qa_completedDataset.qa_revise_resourceshdx_qa_package_revise_resourceDataset.reset_fs_checkhdx_fs_check_package_resetResource.push_to_datastore/Dataset.push_to_datastorehdx_push_resource_to_datastoreDataset.is_allowed_for_datastorehdx_is_package_allowed_for_datastoreDataset.get_shape_infoshape_info_showDataset.get_recommended_tagshdx_recommend_tagshdx_stats.get_user_statistics/get_organization_statisticshdx_user_statistics/hdx_organization_statisticsWrite methods update the object from the result. For actions that return
{package}, a dataset re-initialises its resources and a resource takes its entry from the package.Testing
uv run pytestpasses, apart fromtest_ckan.py, which needsHDX_PIPELINE_GSHEET_AUTH.