Skip to contents

khisr 1.0.8

  • Added a link to DHIS2 (<https://dhis2.org>) in Description:.

khisr 1.0.7

This release adds support for DHIS2’s Tracker API, Personal Access Token authentication, and a wide range of new endpoints for analytics, data quality, and instance metadata — alongside the fix that restores khisr to CRAN.

New features

Bug fixes

  • Fixed the CRAN check failure that got khisr archived: a couple of internal helpers relied on dplyr::id(), which was removed in dplyr 1.2.0.
  • Fixed a crash in get_analytics_by_level()/get_data_sets_by_level() when passing extra query options, the exact usage the documentation invited.
  • Fixed a bug where a failed metadata request produced a garbled, hard to read error instead of the actual failure reason.
  • Large metadata and organisation-unit lists are now fetched with real pagination, instead of relying on a server setting that some instances cap or ignore, which could previously truncate results silently.
  • Network retries now also cover 502/504 Gateway Timeout errors, common behind reverse proxies fronting large DHIS2 instances.
  • khis_cred()’s api_version argument now actually works, letting requests be pinned to a specific DHIS2 API version; khis_api_version() reads back the pinned value.
  • Fixed khis_display_name() erroring when called with an explicit auth argument instead of the default global credentials.

khisr 1.0.6

CRAN release: 2024-10-06

New Features

  • Introduced server argument: The server argument now accepts the server URL without the /api suffix, simplifying the configuration of DHIS2 credentials and API calls.

Deprecations

  • Deprecated base_url in khis_cred(): The base_url argument is now deprecated in favour of the new server argument.
  • Deprecated default base_url value: The default value previously used for the base_url argument is no longer supported. Users should provide an explicit server URL moving forward.

Enhancements

  • Improved testing: Test coverage has been enhanced to automatically skip tests when the target server is unreachable or down, ensuring smoother testing workflows in offline or server downtime conditions.

khisr 1.0.5

CRAN release: 2024-06-27

  • Improved Authentication: Now supports optional authentication for API calls using the auth argument. This strengthens security by allowing you to control access to your data.

  • Clearer Error Messages: Provides more informative error messages to help you identify and troubleshoot issues more efficiently.

khisr 1.0.4

CRAN release: 2024-06-10

  • Improved Credential Handling:
    • khis_has_cred(): Now ensures credentials are valid before returning TRUE, preventing unauthorized access.
    • khis_cred(): Includes validation to accept only valid credentials, reducing errors.

khisr 1.0.3

CRAN release: 2024-06-08

New features

Minor improvements and fixes

  • Made the package generic to support any DHIS2 instance and updated the documentation accordingly.

  • Modified the khis_cred() to require the base_url argument and deprecated the default value.

khisr 1.0.2

CRAN release: 2024-04-14

  • Updated the khis_cred_clear() to reset the base_url back to KHIS API.

  • Updated the khis_cred() to allow base_url be set from the config file.

khisr 1.0.1

CRAN release: 2024-02-05

  • Initial CRAN submission.