diff --git a/python-libraries/data-platform-catalogue/CHANGELOG.md b/python-libraries/data-platform-catalogue/CHANGELOG.md index 2f17e26a09..688d23b0b7 100644 --- a/python-libraries/data-platform-catalogue/CHANGELOG.md +++ b/python-libraries/data-platform-catalogue/CHANGELOG.md @@ -7,6 +7,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.6.0] 2024-01-24 + +### Added + +- DataHubCatalogueClient.list_data_products() + ## [0.5.0] 2024-01-24 ### Added diff --git a/python-libraries/data-platform-catalogue/data_platform_catalogue/client/datahub/datahub_client.py b/python-libraries/data-platform-catalogue/data_platform_catalogue/client/datahub/datahub_client.py index 78b162041f..30622677c7 100644 --- a/python-libraries/data-platform-catalogue/data_platform_catalogue/client/datahub/datahub_client.py +++ b/python-libraries/data-platform-catalogue/data_platform_catalogue/client/datahub/datahub_client.py @@ -332,3 +332,6 @@ def search( return self.search_client.search( query=query, count=count, page=page, result_types=result_types ) + + def list_data_products(self) -> SearchResponse: + return self.search(count=500, result_types=ResultType.DATA_PRODUCT) diff --git a/python-libraries/data-platform-catalogue/pyproject.toml b/python-libraries/data-platform-catalogue/pyproject.toml index 6e59cfc3ea..fb50e4b4b9 100644 --- a/python-libraries/data-platform-catalogue/pyproject.toml +++ b/python-libraries/data-platform-catalogue/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "ministryofjustice-data-platform-catalogue" -version = "0.5.0" +version = "0.6.0" description = "Library to integrate the MoJ data platform with the catalogue component." authors = ["MoJ Data Platform Team "] license = "MIT"