From a2f07109cb621b031017818789f6e59fb5559be8 Mon Sep 17 00:00:00 2001 From: Donald Campbell <125581724+donaldcampbelljr@users.noreply.github.com> Date: Tue, 9 Apr 2024 11:17:22 -0400 Subject: [PATCH] update changelog, uncomment tests skipping --- docs/changelog.md | 4 +++- pipestat/backends/db_backend/db_parsed_schema.py | 1 - tests/test_db_only_mode.py | 2 +- tests/test_pipestat.py | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/changelog.md b/docs/changelog.md index c9166c59..14ccfc87 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -2,9 +2,11 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) and [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) format. -## [0.8.3] - 2024-03-xx +## [0.9.0] - 2024-04-xx ### Fixed - Bug with rm_record for filebackend +### Added +- Added results history and history retrieval for both file and db backends. ## [0.8.2] - 2024-02-22 ### Changed diff --git a/pipestat/backends/db_backend/db_parsed_schema.py b/pipestat/backends/db_backend/db_parsed_schema.py index 0f198e9c..d533b261 100644 --- a/pipestat/backends/db_backend/db_parsed_schema.py +++ b/pipestat/backends/db_backend/db_parsed_schema.py @@ -222,7 +222,6 @@ def build_history_model(self, pipeline_type): field_defs = self._add_pipeline_name_field(field_defs) field_defs = self._add_created_time_field(field_defs) field_defs = self._add_modified_time_field(field_defs) - # field_defs = self._add_relationship(field_defs) field_defs["source_record_id"] = ( int, diff --git a/tests/test_db_only_mode.py b/tests/test_db_only_mode.py index 013647e8..28f316cf 100644 --- a/tests/test_db_only_mode.py +++ b/tests/test_db_only_mode.py @@ -34,7 +34,7 @@ def __exit__(self, exc_type, exc_value, exc_traceback): self.connection.close() -# @pytest.mark.skipif(not DB_DEPENDENCIES, reason="Requires dependencies") +@pytest.mark.skipif(not DB_DEPENDENCIES, reason="Requires dependencies") @pytest.mark.skipif(SERVICE_UNAVAILABLE, reason="requires service X to be available") class TestDatabaseOnly: # TODO: parameterize this against different schemas. diff --git a/tests/test_pipestat.py b/tests/test_pipestat.py index 2426378d..3c8e102e 100644 --- a/tests/test_pipestat.py +++ b/tests/test_pipestat.py @@ -185,7 +185,7 @@ def test_basics_project_level( psm.retrieve_one(record_identifier=rec_id) -# @pytest.mark.skipif(not DB_DEPENDENCIES, reason="Requires dependencies") +@pytest.mark.skipif(not DB_DEPENDENCIES, reason="Requires dependencies") @pytest.mark.skipif(SERVICE_UNAVAILABLE, reason="requires postgres service to be available") class TestReporting: @pytest.mark.parametrize(