Skip to content

Commit

Permalink
Added list data product method (#3068)
Browse files Browse the repository at this point in the history
* Added list data product method
  • Loading branch information
murdo-moj authored Jan 25, 2024
1 parent 5c15362 commit 707a303
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

- BaseCatalogueClient.list_data_products()

## [0.5.0] 2024-01-24

### Added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,6 @@ def search(
Wraps the catalogue's search function.
"""
raise NotImplementedError

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 <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit 707a303

Please sign in to comment.