Skip to content

Commit 5c74557

Browse files
corke2013Keegan Cordeiro
andauthored
remove deprecated fields (#110)
* remove deprecated fields * update version * add docs and update readme --------- Co-authored-by: Keegan Cordeiro <[email protected]>
1 parent 1ada551 commit 5c74557

File tree

4 files changed

+13
-6
lines changed

4 files changed

+13
-6
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ If you are migrating to version 3.0.0 or above from an earlier version, please c
2929

3030
If you are migrating to version 4.0.0 or above from an earlier version, please check the [V4 breaking changes details](./docs/V4_Breaking_Changes.md).
3131

32+
If you are migrating to version 5.0.0 or above from an earlier version, please check the [V5 breaking changes details](./docs/V5_Breaking_Changes.md).
33+
3234
## Usage
3335

3436
We support all the endpoints available in our API.

docs/V5_Breaking_Changes.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# V5 breaking changes details
2+
3+
V5 removes the following fields from the Beam correlation results response;
4+
* features
5+
* phq_impact_sum
6+
* phq_spend_sum
7+
* phq_attendance_sum
8+
* phq_rank_count
9+
10+
It is recommended to query features directly from [Features API](https://docs.predicthq.com/api/features/get-features)

predicthq/endpoints/v1/beam/schemas.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -162,11 +162,6 @@ class CorrelationResult(BaseModel):
162162
remainder: Optional[float] = None
163163
impact_significance: str
164164
impact_significance_score: Optional[int] = None
165-
features: dict
166-
phq_impact_sum: int
167-
phq_spend_sum: int
168-
phq_attendance_sum: int
169-
phq_rank_count: int
170165

171166

172167
class CorrelationResultSet(BeamPaginationResultSet):

predicthq/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "4.3.0"
1+
__version__ = "5.0.0"

0 commit comments

Comments
 (0)