Skip to content

Commit

Permalink
Added list data product method
Browse files Browse the repository at this point in the history
  • Loading branch information
murdo-moj committed Jan 24, 2024
1 parent 71cc458 commit 7d7c98e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions python-libraries/data-platform-catalogue/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
2 changes: 1 addition & 1 deletion python-libraries/data-platform-catalogue/pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <data-platform-tech@digital.justice.gov.uk>"]
license = "MIT"
Expand Down

0 comments on commit 7d7c98e

Please sign in to comment.