Skip to content

Commit

Permalink
Merge pull request #88 from corva-ai/fix/DRE-875_better_merge_events_…
Browse files Browse the repository at this point in the history
…handling

DRE-875 | Removing misleading validation for partial re-run version
  • Loading branch information
vladbagmet authored Feb 8, 2024
2 parents e5818b5 + adf7904 commit f499b0a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ 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).

## [Unreleased]
### Fixed
- Now "version" field represents not schema version but rather the version of rerun and can be any integer.


## [1.11.3] - 2024-02-07
Expand Down
4 changes: 1 addition & 3 deletions src/corva/models/merge/raw.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ class RawPartialMergeEventData(pydantic.BaseModel):
rerun_asset_id: int
app_stream_id: int
rerun_app_stream_id: int
version: int = pydantic.Field(
..., le=1, ge=1
) # Currently handler supports only 1-st version of this event.
version: int # Partial re-run version
app_id: Optional[int]
app_key: Optional[str]
app_connection_id: int
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_partial_rerun_merge_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"rerun_asset_id": 2323245,
"app_stream_id": 9585,
"rerun_app_stream_id": 4745,
"version": 1,
"version": 2, # That is the partial re-run version, not schema version.
"app_id": 46,
"app_key": "corva.enrichment-wrapper",
"app_connection_id": 2457,
Expand Down

0 comments on commit f499b0a

Please sign in to comment.