-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add device ID validation and handling
- Added `device_id` as a header parameter in the API. - Integrated `UserDeviceService` to validate `device_id`. - Updated answer creation logic to include `device_id`. - Removed `device_id` from the domain model. - Enhanced tests for device ID scenarios, including invalid cases. - Fixed a bug in schedule history retrieval by correcting variable name. Enhance device and event validation logic - Updated device retrieval to check both device_id and user_id. - Enhanced event history lookup with activity or flow ID validation. - Modified test data for consistency with new logic. - Added SQLAlchemy case statement for conditional queries. Refactor device and event history checks - Updated `aio-pika` to version 9.5.5 in dependencies. - Simplified device validation by removing user ID check from the query. - Streamlined event history validation logic, removing complex query conditions. - Removed unused imports and redundant methods for cleaner codebase. - Adjusted database migration down_revision for consistency.
- Loading branch information
Showing
8 changed files
with
72 additions
and
25 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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