Commit graph

15 commits

Author SHA1 Message Date
Paul Bienkowski 481999b278 chore: format all files 2020-11-21 19:41:25 +01:00
Paul Bienkowski 02f8258a91 fix: detect version 2 format when metadata line is missing 2020-11-21 19:36:32 +01:00
Paul Bienkowski 7aa6e0be84 feat: in OBSVER1, sanitize d1, d2, latitude and longitude values to null where appropriate 2020-11-21 13:48:22 +01:00
Paul Bienkowski 16ca8db8c7 feat: properly parse data types in OBSVER1 2020-11-21 13:26:52 +01:00
Paul Bienkowski 598c6620d7 fix: correctly detect format OBSVER1 if there is no header, just data
This is required for OBS compatibility, which drops the header line on
upload.
2020-11-21 13:15:55 +01:00
Paul Bienkowski f8bb6e7ab7 fix: when detecting format, first apply the dollar->newline hack 2020-11-19 17:48:45 +01:00
Paul Bienkowski 0b830601f5 feat: autodetect "$ as newlines" hack in both OBSVER1 and OBSVER2 2020-11-18 22:13:00 +01:00
Paul Bienkowski f013ab4263 refactor: use csv parser for obsver1 instead of selfbuilt solution 2020-11-18 21:51:08 +01:00
Paul Bienkowski 22f8c46d6a wip 2020-11-18 20:53:35 +01:00
Paul Bienkowski d8975db15a chore: eslint fixes for logic/ folder 2020-11-18 17:24:28 +01:00
Paul Bienkowski 214da0c9f8 refactor(logic/tracks): clean up code 2020-11-18 11:23:34 +01:00
Paul Bienkowski 8f5237a182 test: add test data from postman-test to test addPointsToTrack 2020-11-18 11:23:34 +01:00
Paul Bienkowski 04f597cfb1 chore(logic): autoformat with prettier 2020-11-18 11:23:34 +01:00
Paul Bienkowski b95d3dad3a chore: add testing framework (jest) and start writing test for tracks logic 2020-11-18 11:23:34 +01:00
Paul Bienkowski bd815e9671 refactor: move TrackInfo and addPointsToTrack to new "logic" folder 2020-11-18 11:23:34 +01:00