• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

OCHA-DAP / hdx-python-api
97%

Build:
DEFAULT BRANCH: main
Repo Added 12 Jul 2016 09:12AM UTC
Files 23
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH main
branch: SELECT
CHANGE BRANCH
x
  • No branch selected
  • Vocabulary
  • activities_etc
  • activity_streams
  • add-hapi-errors
  • add_update_resource_returned
  • apitoken_fix
  • bdon-python27
  • check_apitoken
  • current_user_access
  • customviz
  • data_dictionary
  • datapusher-data-dictionary
  • datastore-records-arg-validation
  • datastore-truncation-and-tde-docs
  • datastore_queries
  • datastorev2
  • disable_bites_fix
  • double_update_fix
  • env_var_test
  • error_handler_any
  • fix-revise-list-replace
  • fix/activity-paging-and-simplify
  • fix/download-auth-and-filename
  • fix_infer_args
  • fix_resource_ordering
  • force_update
  • group_list
  • hashing
  • hdx-custom-actions
  • hdx-custom-actions-qa-flags
  • hdx_api_urls
  • hdx_error_handler
  • hdx_key_fallbacks
  • hdx_state
  • iterable_not_iterator
  • keep_crisis_tags
  • kwargs_first
  • last_modified_tz_fix
  • main
  • move_resource
  • munge_exception
  • munge_url
  • no_empty
  • organization_list_all_fields
  • packaging
  • path_aware
  • py310
  • python-3.11-min
  • refactor_create_revise
  • remove_dates_from_title
  • remove_hxl
  • remove_hxl_update
  • resource_dataset_handling
  • resource_gen_optional_hxl
  • resource_retrieve
  • resource_urltype_fix
  • revise
  • size_hash_utilities
  • time_period
  • update-dependencies
  • update_frequencies
  • update_structure
  • upgrade-ruff-actions
  • use_env_fix
  • write_err_to_hdx

10 Nov 2026 04:37AM UTC coverage: 97.405% (+0.005%) from 97.4%
42757085733

push

github

web-flow
HDXDSYS-3031 Replace list fields such as groups in package_revise instead of merging by position (#130)

* Replace list fields such as groups in package_revise instead of merging by position

package_revise merges an update list into the existing list by index. The
existing elements keep their ids and CKAN resolves groups by id before
name, so changed locations were not applied: new groups were only added
past the end of the old list and removals were only sent when the
removed element was last. Filter out non-resource list keys present in
the existing dataset so the update replaces them.

* update min versions

* Only replace list fields when changed and keep unsent element fields

- _revise_filter adds -<key> only when the merged list differs from HDX
- _merge_list merges update dicts over matching HDX dicts (by id/name, else position) so unsent fields are kept
- keep_crisis_tags only runs when the update has tags, so tags are not wiped when the caller sends none

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Fix list merging edge cases and split merging out of _revise_filter

- _merge_list matches by id first, then name, and no longer merges dicts
  without an id or name by position (fields leaked from removed entries)
- A null or non-list existing value is treated as an empty list instead
  of raising TypeError
- New _merge_list_fields does the in-place merge and returns the changed
  keys; _revise_filter only builds the filter
- Changed list keys already in keys_to_delete are not added to the filter
  twice
- Add return type and Returns: docstring section to _revise_filter

* Fix warnings

* Fix flaky CI: serialise push/PR runs and use local test fixtures

Add a concurrency group so push and pull_request runs for the same branch
don't run test_ckan against the shared hdx_python_api_test dataset at once.
Read resource generation fixtures from disk instead of raw.githubusercontent.com,
which intermittently returns 501 for empty.csv.

-... (continued)

34 of 36 new or added lines in 1 file covered. (94.44%)

3228 of 3314 relevant lines covered (97.4%)

0.97 hits per line

Relevant lines Covered
Build:
Build:
3314 RELEVANT LINES 3228 COVERED LINES
0.97 HITS PER LINE
Source Files on main
  • Tree
  • List 23
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
42757085733 main HDXDSYS-3031 Replace list fields such as groups in package_revise instead of merging by position (#130) * Replace list fields such as groups in package_revise instead of merging by position package_revise merges an update list into the existing ... push 10 Nov 2026 04:39AM UTC web-flow github
97.4
42756025811 fix-revise-list-replace Fix flaky CI: serialise push/PR runs and use local test fixtures Add a concurrency group so push and pull_request runs for the same branch don't run test_ckan against the shared hdx_python_api_test dataset at once. Read resource generation fixtur... Pull #130 10 Nov 2026 04:29AM UTC mcarans github
97.4
42739372136 fix-revise-list-replace update min versions Pull #130 10 Nov 2026 01:59AM UTC mcarans github
97.44
40637071618 main Upgrade ruff, pre-commit hooks and GitHub Actions; fix new ruff lint violations (#128) - actions/checkout v7.0.1, astral-sh/setup-uv v10.3.2 - ruff 0.17.3, uv-pre-commit 0.13.6 - hdx-python-utilities >= 4.2.6 - Fix violations from ruff 0.17's exp... push 28 Oct 2026 05:18AM UTC web-flow github
97.4
40631564088 upgrade-ruff-actions Upgrade ruff, pre-commit hooks and GitHub Actions; fix new ruff lint violations - actions/checkout v7.0.1, astral-sh/setup-uv v10.3.2 - ruff 0.17.3, uv-pre-commit 0.13.6 - hdx-python-utilities >= 4.2.6 - Fix violations from ruff 0.17's expanded d... Pull #128 28 Oct 2026 04:20AM UTC mcarans github
97.4
40617396097 main Use SHAs push 28 Oct 2026 01:52AM UTC mcarans github
97.32
40583825941 main Require Python 3.11 and bump hdx-python-country and hdx-python-utilities minimums (#127) * Require Python 3.11 and bump hdx-python-country and hdx-python-utilities minimums - requires-python >=3.11, drop 3.10 classifier, ruff target py311 - hdx-... push 27 Oct 2026 09:07PM UTC web-flow github
97.32
40580032965 python-3.11-min Update doc Pull #127 27 Oct 2026 09:00PM UTC mcarans github
97.32
40580044873 python-3.11-min Merge 01f0ec647 into 91e42b3ae Pull #127 27 Oct 2026 08:41PM UTC web-flow github
97.32
40579801121 python-3.11-min Require Python 3.11 and bump hdx-python-country and hdx-python-utilities minimums - requires-python >=3.11, drop 3.10 classifier, ruff target py311 - hdx-python-country>=4.2.6, hdx-python-utilities>=4.2.5 - Apply ruff UP017 fixes (timezone.utc ->... Pull #127 27 Oct 2026 08:39PM UTC mcarans github
97.32
See All Builds (1130)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc