1
Fork 0
photoview/.github
Kostiantyn df9af39a16
Validate incoming GPS data (#951)
* Validate incoming GPS data and throw an error if it is incorrect, storing Null values

* Extracted GPS data processing to function in external parser; optimized IF in internal parser; removed unnecessary comments; set exact values for positive test

* Add the migration for removing existing invalid GPS data and its test; added better errors to asserts in the GPS validation test

* Install FFmpeg and ExifTool on the API unit-test environment

* Fix 'stripped.jpg', 'IncorrectGPS.jpg', and 'CorrectGPS.jpg' tests for the external parser

* Optimized data validation in the external parser, returned error by the internal parser for invalid data, updated test to expect errors and handle them

* Switched from error to log entry in case of incorrect GPS data, as error handling is not so transparent in the internal parser

---------

Co-authored-by: Konstantin Koval
2024-06-29 10:32:48 +03:00
..
ISSUE_TEMPLATE Add issue templates 2021-02-26 10:23:48 +01:00
workflows Validate incoming GPS data (#951) 2024-06-29 10:32:48 +03:00
FUNDING.yml Create FUNDING.yml 2021-02-14 22:22:54 +01:00
mysql.testing.env ghaction test dbs try localhost 2021-04-23 21:19:45 +02:00
postgres.testing.env ghaction test dbs try localhost 2021-04-23 21:19:45 +02:00
sqlite.testing.env Setup databases for github actions tests 2021-04-23 20:52:55 +02:00