-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(hardware-details): add correct join to query
When using the Django ORM, that does not support composite primary keys as used by the Issues model, it would produce the incorrect join between Issues and Incidents since it don't consider issue.version when performing the join. To solve this, the django ORM query was replaced by a raw query. That required some of the data to be treated in the pydantic level since it was being fetched as string instead of dict
- Loading branch information
Showing
2 changed files
with
80 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters