hapi-schema 0.7.2__tar.gz → 0.7.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/PKG-INFO +1 -1
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/changelog.md +7 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/src/hapi_schema/_version.py +2 -2
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/src/hapi_schema/db_admin2.py +1 -1
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/src/hapi_schema/db_ipc_type.py +1 -1
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/src/hapi_schema/db_location.py +1 -1
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/.config/coveragerc +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/.config/pre-commit-config.yaml +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/.config/pytest.ini +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/.config/ruff.toml +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/.github/workflows/publish.yaml +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/.github/workflows/run-python-tests.yaml +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/.gitignore +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/LICENSE +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/README.md +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/contributing.md +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/pyproject.toml +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/requirements.txt +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/src/hapi_schema/__init__.py +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/src/hapi_schema/db_admin1.py +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/src/hapi_schema/db_age_range.py +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/src/hapi_schema/db_dataset.py +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/src/hapi_schema/db_food_security.py +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/src/hapi_schema/db_gender.py +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/src/hapi_schema/db_humanitarian_needs.py +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/src/hapi_schema/db_ipc_phase.py +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/src/hapi_schema/db_national_risk.py +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/src/hapi_schema/db_operational_presence.py +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/src/hapi_schema/db_org.py +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/src/hapi_schema/db_org_type.py +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/src/hapi_schema/db_patch.py +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/src/hapi_schema/db_population.py +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/src/hapi_schema/db_population_group.py +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/src/hapi_schema/db_population_status.py +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/src/hapi_schema/db_resource.py +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/src/hapi_schema/db_sector.py +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/src/hapi_schema/utils/__init__.py +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/src/hapi_schema/utils/base.py +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/src/hapi_schema/utils/view_params.py +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/conftest.py +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/sample_data/__init__.py +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/sample_data/data_admin1.py +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/sample_data/data_admin2.py +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/sample_data/data_age_range.py +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/sample_data/data_dataset.py +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/sample_data/data_food_security.py +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/sample_data/data_gender.py +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/sample_data/data_humanitarian_needs.py +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/sample_data/data_ipc_phase.py +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/sample_data/data_ipc_type.py +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/sample_data/data_location.py +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/sample_data/data_national_risk.py +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/sample_data/data_operational_presence.py +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/sample_data/data_org.py +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/sample_data/data_org_type.py +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/sample_data/data_patch.py +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/sample_data/data_population.py +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/sample_data/data_population_group.py +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/sample_data/data_population_status.py +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/sample_data/data_resource.py +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/sample_data/data_sector.py +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/test_admin1.py +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/test_admin2.py +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/test_age_range.py +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/test_dataset.py +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/test_food_security.py +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/test_gender.py +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/test_humanitarian_needs.py +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/test_ipc_phase.py +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/test_ipc_type.py +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/test_location.py +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/test_national_risk.py +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/test_operational_presence.py +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/test_org.py +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/test_org_type.py +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/test_patch.py +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/test_population.py +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/test_population_group.py +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/test_population_status.py +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/test_resource.py +0 -0
- {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/test_sector.py +0 -0
|
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
# [0.7.3]
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- Incorrect constraint quotes in IPC type
|
|
13
|
+
- Clashing unique constraint names in admins
|
|
14
|
+
|
|
8
15
|
## [0.7.2]
|
|
9
16
|
|
|
10
17
|
### Added
|
|
@@ -32,7 +32,7 @@ class DBAdmin2(Base):
|
|
|
32
32
|
"(hapi_replaced_date IS NULL) OR (hapi_replaced_date >= hapi_updated_date)",
|
|
33
33
|
name="hapi_dates",
|
|
34
34
|
),
|
|
35
|
-
UniqueConstraint("code", "hapi_updated_date"
|
|
35
|
+
UniqueConstraint("code", "hapi_updated_date"),
|
|
36
36
|
)
|
|
37
37
|
|
|
38
38
|
id: Mapped[int] = mapped_column(Integer, primary_key=True)
|
|
@@ -11,7 +11,7 @@ class DBIpcType(Base):
|
|
|
11
11
|
__tablename__ = "ipc_type"
|
|
12
12
|
__table_args__ = (
|
|
13
13
|
CheckConstraint(
|
|
14
|
-
|
|
14
|
+
"code IN ('current', 'first projection', 'second projection')",
|
|
15
15
|
name="ipc_phase_type",
|
|
16
16
|
),
|
|
17
17
|
)
|
|
@@ -28,7 +28,7 @@ class DBLocation(Base):
|
|
|
28
28
|
"(hapi_replaced_date IS NULL) OR (hapi_replaced_date >= hapi_updated_date)",
|
|
29
29
|
name="hapi_dates",
|
|
30
30
|
),
|
|
31
|
-
UniqueConstraint("code", "hapi_updated_date"
|
|
31
|
+
UniqueConstraint("code", "hapi_updated_date"),
|
|
32
32
|
)
|
|
33
33
|
|
|
34
34
|
id: Mapped[int] = mapped_column(Integer, primary_key=True)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|