Skip to content

Commit

Permalink
Merge pull request #53 from OCHA-DAP/HDXDSYS-811-remove-enum-stragglers
Browse files Browse the repository at this point in the history
HDXDSYS-811 remove enum stragglers
  • Loading branch information
turnerm authored Jun 11, 2024
2 parents e297c39 + 2b1c8c7 commit 34be541
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
7 changes: 7 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ 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.8.12

### Removed

- "POC" from `PopulationGroup` enum
- "POP" from `PopulationStatus` enum

## 0.8.11

### Fixed
Expand Down
2 changes: 0 additions & 2 deletions src/hapi_schema/utils/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,12 @@ class PopulationGroup(str, PythonEnum):
RET = "RET"
RESETTLED = "RST"
NATURALIZED = "NAT"
POC = "POC"
RDP = "RDP"
RRI = "RRI"
ALL = "all"


class PopulationStatus(str, PythonEnum):
POPULATION = "POP"
AFFECTED = "AFF"
INNEED = "INN"
TARGETED = "TGT"
Expand Down
2 changes: 1 addition & 1 deletion tests/sample_data/data_refugees.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
resource_hdx_id="62ad6e55-5f5d-4494-854c-4110687e9e25",
origin_location_ref="1",
asylum_location_ref="2",
population_group="POC",
population_group="ASY",
gender="f",
age_range="children",
min_age="5",
Expand Down

0 comments on commit 34be541

Please sign in to comment.