Commit graph

555 commits

Author SHA1 Message Date
Eugene Burmakin
f492a69fbb Add country_name to points and fix some bugs. 2025-07-28 18:53:19 +02:00
Eugene Burmakin
d0bb9ef8d1 Add test for places reverse geocoding. 2025-07-27 01:39:39 +02:00
Eugene Burmakin
66e6112ad8 Eliminate some n-plus-ones. 2025-07-27 01:08:29 +02:00
Eugene Burmakin
60802a6f44 Disable settings panel functionality spec. 2025-07-26 15:06:08 +02:00
Eugene Burmakin
31b23745f8 Add spec for no points selected. 2025-07-26 14:46:53 +02:00
Eugene Burmakin
7ea149bd4e Fix specs 2025-07-23 20:02:38 +02:00
Eugene Burmakin
0bfddd932f Disable specs for track generation 2025-07-22 20:28:46 +02:00
Eugene Burmakin
c14054fdc3 Disable track generation failure notification for self-hosted users 2025-07-22 20:15:52 +02:00
Eugene Burmakin
da38c12819 Extract stats query 2025-07-22 19:43:27 +02:00
Eugene Burmakin
7afc399724 Add cache to points limit exceeded check 2025-07-21 22:27:20 +02:00
Eugene Burmakin
9bcd522e25 Update specs 2025-07-21 20:22:18 +02:00
Eugene Burmakin
59a4d760bf Fix owntracks points creation 2025-07-21 18:59:13 +02:00
Eugene Burmakin
b7aa05f4ea Fix specs 2025-07-20 21:29:05 +02:00
Eugene Burmakin
f969d5d3e6 Clean up some mess 2025-07-20 18:57:53 +02:00
Eugene Burmakin
708bca26eb Fix owntracks point creation 2025-07-20 17:43:55 +02:00
Eugene Burmakin
002b3bd635 Fix settings controller spec and tracks popup 2025-07-20 17:06:45 +02:00
Eugene Burmakin
7cdb7d2f21 Add some more tests to make sure points are properly cleaned up 2025-07-17 20:57:55 +02:00
Eugene Burmakin
dc8460a948 Fix tracks create job spec 2025-07-17 20:46:07 +02:00
Eugene Burmakin
c31d09e5c3 Refactor tracks jobs and services 2025-07-16 22:22:33 +02:00
Eugene Burmakin
878d863569 Fix some tests 2025-07-14 21:15:45 +02:00
Eugene Burmakin
24378b150d Add user serializer and update CHANGELOG.md 2025-07-13 12:50:24 +02:00
Eugene Burmakin
244fb2b192 Move bulk track creation to service 2025-07-12 23:04:15 +02:00
Eugene Burmakin
418df71c53 Fixes for bulk creating job 2025-07-12 22:04:14 +02:00
Eugene Burmakin
6b96e1f0be Revert specs 2025-07-12 17:21:53 +02:00
Eugene Burmakin
0dff80e12b Fix some tests 2025-07-12 13:43:15 +02:00
Eugene Burmakin
bc36882e73 Add name fetcher for places and visits 2025-07-12 11:21:38 +02:00
Eugene Burmakin
ee6666e7bf Skip some tests in map interaction spec. 2025-07-09 22:09:27 +02:00
Eugene Burmakin
ceef7702fa Add data migration to recalculate trips distance. 2025-07-09 21:51:48 +02:00
Eugene Burmakin
13fd9da1f9 Add a scheduled job to create tracks for all users for the past 24 hours. 2025-07-09 21:25:56 +02:00
Eugene Burmakin
9a326733c7 Return missing map buttons 2025-07-09 00:58:33 +02:00
Eugene Burmakin
f4605989b6 Fix rest of failing tests 2025-07-08 20:04:19 +02:00
Eugene Burmakin
6dd048cee3 Fix a few tests 2025-07-08 19:23:08 +02:00
Eugene Burmakin
f1720b859b Store distance in meters in the database and convert to user's preferred unit on the fly. 2025-07-08 18:10:10 +02:00
Eugene Burmakin
81eb759fb8 Remove tracks api 2025-07-08 00:05:22 +02:00
Eugene Burmakin
e64e706b0f Unify timestamps 2025-07-07 23:38:10 +02:00
Eugene Burmakin
f33dcdfe21 Store track distance in user's preferred unit 2025-07-07 22:23:37 +02:00
Eugene Burmakin
0d657b9d6e Add incremental track generation 2025-07-07 21:48:07 +02:00
Eugene Burmakin
92a15c8ad3 Handle unfinished tracks 2025-07-07 18:59:42 +02:00
Eugene Burmakin
15be46b604 Fix tests 2025-07-04 20:55:05 +02:00
Eugene Burmakin
1468f1f9dc Remove tracks api endpoint 2025-07-04 20:09:06 +02:00
Eugene Burmakin
565f92c463 Add tracks to map 2025-07-04 19:49:56 +02:00
Eugene Burmakin
7bd098b54f Extract tracks calculation to serializer 2025-07-03 20:34:41 +02:00
Eugene Burmakin
862f601e1d Add tracks calculation and storage in the database 2025-07-03 20:18:18 +02:00
Eugene Burmakin
3b474704ea Fixes for visits suggestions. 2025-07-02 23:50:32 +02:00
Eugene Burmakin
12a53aac20 Don't check for new version in production. 2025-07-02 21:58:19 +02:00
Eugene Burmakin
d518603719 Update importing process 2025-07-02 20:22:40 +02:00
Eugene Burmakin
c75e037a5a Clean up and fix specs 2025-06-30 23:49:07 +02:00
Eugene Burmakin
1ebe2da84a Update changelog 2025-06-30 22:51:25 +02:00
Eugene Burmakin
d10ca668a9 Map country codes instead of guessing 2025-06-30 22:08:34 +02:00
Eugene Burmakin
cabd63344a Fix failing test 2025-06-30 20:51:18 +02:00
Eugene Burmakin
f37039ad8e Add export and import specs 2025-06-30 20:29:47 +02:00
Eugene Burmakin
8ad0b20d3d Add import data feature 2025-06-28 12:22:56 +02:00
Eugene Burmakin
4898cd82ac Update specs 2025-06-26 22:05:32 +02:00
Eugene Burmakin
8dd7ba8363 Fix specs 2025-06-26 20:05:26 +02:00
Eugene Burmakin
631ee0e64c Clean up specs a bit 2025-06-26 19:48:42 +02:00
Eugene Burmakin
2088b769d7 Add tests 2025-06-26 19:24:40 +02:00
Eugene Burmakin
7988fadd5f User export: exporting exports and imports data with files 2025-06-25 21:14:33 +02:00
Eugene Burmakin
767629b21e Remove solid trifecta 2025-06-09 13:50:43 +02:00
Eugene Burmakin
b76602d9c8 Return sidekiq and redis to Dawarich 2025-06-09 13:39:25 +02:00
Eugene Burmakin
b6a7896119 Revert cities and countries logic 2025-06-09 12:09:42 +02:00
Eugene Burmakin
3426f2d66b Fixed a bug where points from Immich and Photoprism did not have lonlat attribute set. #1318 2025-06-08 16:41:01 +02:00
Eugene Burmakin
3d2666c4ee Fix a few issues and implement location iq support 2025-06-05 21:10:40 +02:00
Eugene Burmakin
29a74fa08c Update tests 2025-06-02 21:17:06 +02:00
Eugene Burmakin
6d39f4306f Remove Redis and Sidekiq from Dawarich 2025-06-02 20:53:35 +02:00
Eugene Burmakin
48eb55f621 Update changelog and add a spec 2025-05-31 21:58:50 +02:00
Eugene Burmakin
855872d166 Merge remote-tracking branch 'origin' into feature/solid-queue-rewamp 2025-05-30 19:20:58 +02:00
Eugene Burmakin
3902bc25f8 Update countries and cities spec 2025-05-29 13:17:31 +02:00
Eugene Burmakin
c843ff1577 Update countries and cities spec 2025-05-29 13:07:30 +02:00
Evgenii Burmakin
89c286a69b
Merge branch 'dev' into tests/system 2025-05-29 12:42:48 +02:00
Evgenii Burmakin
05018b6e6c
Merge pull request #610 from arne182/patch-2
Fix logic for grouping consecutive points in CountriesAndCities
2025-05-29 12:42:01 +02:00
Eugene Burmakin
d885796576 Clean up tests a bit 2025-05-29 12:22:08 +02:00
Eugene Burmakin
68165c47f6 Update circleci config 2025-05-29 12:05:50 +02:00
Eugene Burmakin
2f1d428a40 Update circle ci config 2025-05-29 11:58:13 +02:00
Eugene Burmakin
fd90e28ba8 Update circle config 2025-05-29 11:52:56 +02:00
Eugene Burmakin
4c6bd5c6ae Update test setup 2025-05-26 22:18:20 +02:00
Eugene Burmakin
e8d49662a2 Remove cypress 2025-05-26 21:05:36 +02:00
Eugene Burmakin
f5cefdbd03 Add system tests for map interaction 2025-05-26 20:33:48 +02:00
Eugene Burmakin
64d33f5e6e Fix few issues 2025-05-22 19:09:43 +02:00
Eugene Burmakin
8728a22974 Update safe settings 2025-05-19 23:28:33 +02:00
Eugene Burmakin
38a32f245f Enable home spec back 2025-05-18 11:45:45 +02:00
Eugene Burmakin
605ceee820 Add modal to show countries and cities visited in a year 2025-05-18 00:15:25 +02:00
Eugene Burmakin
35a0533b2b Move to solid_queue 2025-05-17 23:05:52 +02:00
Eugene Burmakin
15b20fd2c3 Fix spec 2025-05-17 22:12:35 +02:00
Eugene Burmakin
06aee05602 Move distance unit settings to user settings 2025-05-17 20:35:38 +02:00
Eugene Burmakin
630c813f0b Fix visits overlapping issue 2025-05-17 20:10:03 +02:00
Eugene Burmakin
c69d4f45f1 Update views and specs 2025-05-16 19:53:42 +02:00
Eugene Burmakin
5be5c1e584 Put countries into database 2025-05-16 18:51:48 +02:00
Eugene Burmakin
96108b12d0 Update tests a bit 2025-05-15 22:58:04 +02:00
Eugene Burmakin
108239f41c Fix countries spec 2025-05-15 18:36:05 +02:00
Eugene Burmakin
a48cff098b Some frontend fixes 2025-05-15 18:23:24 +02:00
Eugene Burmakin
5fbc1fb884 Make sure geocoder errors are reported 2025-05-13 20:33:04 +02:00
Eugene Burmakin
556af7fd02 Replace stubs with Geocoder search 2025-05-13 20:21:18 +02:00
Eugene Burmakin
79f2522f54 Fetch countries for a trip via geocoding service 2025-05-13 19:43:02 +02:00
Eugene Burmakin
857f1da942 Unify name builder usage 2025-05-12 23:36:46 +02:00
Eugene Burmakin
aa521dba9b Extract place name suggester 2025-05-12 22:49:30 +02:00
Eugene Burmakin
ed7b6d6d24 Add a STORE_GEODATA environment variable to control whether to store geodata in the database. 2025-05-12 22:33:47 +02:00
Evgenii Burmakin
f571d1ebad
Merge branch 'dev' into fix/small-fixes 2025-05-12 21:44:42 +02:00
Eugene Burmakin
52aefa109e Skip points without lonlat and timestamp from Owntracks 2025-05-12 21:41:55 +02:00
Eugene Burmakin
fa80658904 Fix GeoJSON import speed/velocity 2025-05-08 17:28:06 +02:00
Eugene Burmakin
e6fddddc01 Fix tests 2025-05-04 00:16:02 +02:00
Eugene Burmakin
c786671d95 Refactor points creation to be synchronous 2025-05-03 22:40:44 +02:00
Eugene Burmakin
ffc945708c Fix deletion of imports on error 2025-05-03 21:46:30 +02:00
Eugene Burmakin
acf024b0e1 Implement direct upload of import files with progress bar 2025-05-03 21:35:02 +02:00
Eugene Burmakin
bf4a900089 Merge remote-tracking branch 'origin' into feature/pmtiles 2025-05-02 20:06:32 +02:00
Eugene Burmakin
37c95d966e Remove sample points 2025-05-02 20:05:12 +02:00
Eugene Burmakin
6d30824167 Select user_id for points when extracting longitude and latitude from raw_data 2025-04-24 21:42:54 +02:00
Eugene Burmakin
07d00f189d Rename parsers to importers 2025-04-23 23:36:16 +02:00
Eugene Burmakin
e433ed4d1c Use secure file downloader for imports 2025-04-23 23:27:55 +02:00
Eugene Burmakin
45a310319f Fix failing specs 2025-04-23 23:07:58 +02:00
Eugene Burmakin
deeb250910 Extract file downloader 2025-04-23 22:46:39 +02:00
Eugene Burmakin
2e53f39a7f Update import edit view 2025-04-19 13:18:39 +02:00
Eugene Burmakin
02490c62a4 Implemented imports editing 2025-04-18 19:48:02 +02:00
Eugene Burmakin
5fe503f745 Extract latitude and longitude from raw_data 2025-04-13 23:25:26 +02:00
Eugene Burmakin
b0b0a11c30 Fix few errors 2025-04-12 13:06:32 +02:00
Eugene Burmakin
dae1733320 Remove telemetry 2025-04-11 19:13:46 +02:00
Eugene Burmakin
5ab8b17cdd Update records storage importer to process all records 2025-04-06 16:49:50 +02:00
Eugene Burmakin
41604d71a6 Add brakeman and some tests 2025-04-04 22:16:52 +02:00
Eugene Burmakin
67916c10c4 Fix tests 2025-04-04 21:39:59 +02:00
Eugene Burmakin
600c88ae01 Merge remote-tracking branch 'origin/dev' into feature/subscription 2025-04-04 21:28:13 +02:00
Eugene Burmakin
6839ecdbda Update specs for new user active_until column 2025-04-04 21:12:42 +02:00
Eugene Burmakin
99bb982792 Merge from dev 2025-04-04 20:14:44 +02:00
Eugene Burmakin
73edb35bb1 Implement Records.json import via the UI 2025-04-03 18:41:05 +02:00
Eugene Burmakin
2f9cacba61 Rename format column to file_format in exports table 2025-04-02 21:19:02 +02:00
Eugene Burmakin
652a51281b Add an optional task to migrate existing imports to the new storage. 2025-04-02 20:58:35 +02:00
Eugene Burmakin
fc8d0d8ddc Fix failing tests and move testing imports to files 2025-03-24 20:46:16 +01:00
Eugene Burmakin
b66e18818b Fix rest of the tests and re-enable visit suggesting 2025-03-23 21:00:31 +01:00
Eugene Burmakin
5758f9a923 Use attached file to import geojson and phone takeout 2025-03-23 19:13:59 +01:00
Eugene Burmakin
f3b98ac83d Use attached import file to import own tracks data 2025-03-23 19:00:04 +01:00
Eugene Burmakin
a93b49ee80 Use Active Storage to import GPX files 2025-03-23 18:37:10 +01:00
Eugene Burmakin
dbd9b7f31f Add rake tasks for data cleanup and user activation 2025-03-21 18:09:58 +01:00
Eugene Burmakin
342cb23b58 Merge remote-tracking branch 'origin' into feature/subscription 2025-03-18 16:50:26 +01:00
Eugene Burmakin
d4503083bc Fix sample points import 2025-03-12 21:19:48 +01:00
Eugene Burmakin
4a6c5bf97c Create sample import after user is created 2025-03-12 20:26:53 +01:00
Eugene Burmakin
b8e6b1a372 Enable visit suggesting job 2025-03-09 20:07:39 +01:00
Eugene Burmakin
c86921a29b Update tests and refactor some code 2025-03-09 16:29:16 +01:00
Eugene Burmakin
5ee3d43b10 Fix some more tests and rework visit_suggesting_job a bit 2025-03-09 15:37:32 +01:00
Eugene Burmakin
4a859fb350 Add bunch of tests and refactor some stuff 2025-03-09 14:58:30 +01:00
Eugene Burmakin
6b356d24b1 Implement visits merging 2025-03-05 20:04:26 +01:00
Eugene Burmakin
bc91004713 Fix smart detect spec 2025-03-04 21:16:45 +01:00
Eugene Burmakin
9d68458622 Fix some more tests 2025-03-03 23:54:39 +01:00
Eugene Burmakin
70d754b397 Fix some tests 2025-03-03 22:39:43 +01:00
Eugene Burmakin
c2f6224421 Add lonlat to places 2025-03-03 20:50:49 +01:00
Eugene Burmakin
414c9e831c Add possible places to visits 2025-03-03 20:11:21 +01:00
Eugene Burmakin
a4123791aa Add visits to the map page 2025-03-02 21:24:57 +01:00
Eugene Burmakin
95717db1bf Add simple button to manage subscription 2025-02-26 21:06:43 +01:00
Eugene Burmakin
080da9f2de Update tests 2025-02-25 00:16:42 +01:00
Eugene Burmakin
173af225d7 Merge remote-tracking branch 'origin/dev' into feature/user-features-access 2025-02-24 21:40:36 +01:00
Eugene Burmakin
56046a6965 Broadcast import progress after GPX import 2025-02-23 23:12:12 +01:00
Eugene Burmakin
383b88ab04 Speed up some importing processes 2025-02-22 23:14:23 +01:00
Eugene Burmakin
7c766a4d92 Fix the rest of the tests 2025-02-22 22:37:21 +01:00
Eugene Burmakin
fc01cda5c6 Fix whole bunch of specs 2025-02-22 00:32:30 +01:00
Eugene Burmakin
4fa3c35fb8 Calculate distance using PostGIS ST_Distance with LAG 2025-02-22 00:02:13 +01:00
Eugene Burmakin
d9eac91834 Introduce latlon to Points and use it instead of latitude and longitude. 2025-02-21 23:45:36 +01:00
Eugene Burmakin
6fac14675b Restrict to some functionality access for inactive users 2025-02-19 21:23:11 +01:00
Eugene Burmakin
699e498670 Recalculate stats upon import deletion 2025-02-15 18:49:30 +01:00
Eugene Burmakin
fb5086e97e Simplify maps loading 2025-02-15 18:16:48 +01:00
Eugene Burmakin
7dfec304e4 Restrict access to Sidekiq in non self-hosted mode 2025-02-15 11:50:56 +01:00
Eugene Burmakin
9e34d30383 Restrict user settings to self-hosted mode 2025-02-15 11:45:53 +01:00
Eugene Burmakin
74cfc9020e Restrict background jobs to self-hosted mode 2025-02-15 11:40:51 +01:00
Eugene Burmakin
86fd2311f9 Fix importing Immich and Photoprism geolocation data for non-admin users 2025-02-15 11:32:52 +01:00
Eugene Burmakin
8fefcb9091 Merge remote-tracking branch 'origin/dev' into feature/self-hosted-mode 2025-02-15 11:14:50 +01:00
Eugene Burmakin
51e589e17f Implement map tiles usage tracking and chart in user settings. 2025-02-13 21:04:29 +01:00
Eugene Burmakin
5b2834599e Update prometheus metric name 2025-02-11 21:17:33 +01:00
Eugene Burmakin
06da91df27 Fix live map enabled default value 2025-02-11 21:12:35 +01:00
Eugene Burmakin
b2e6a141fc Rehash paths and add tests 2025-02-11 21:04:12 +01:00
Eugene Burmakin
0b362168c9 Implement custom map tiles and user settings with default values 2025-02-10 20:37:20 +01:00
Eugene Burmakin
b8c69c2a76 Fix importing of GPX files with empty tracks and reduce number of points created for other GPX files. 2025-02-08 23:52:37 +01:00
Eugene Burmakin
fea87b85bb Add docs and few fixes 2025-02-07 19:17:28 +01:00
Eugene Burmakin
085ceb16e2 Fix export file deletion 2025-02-06 22:52:19 +01:00
Eugene Burmakin
bd39b295a4 Return app version in health response 2025-02-06 19:50:03 +01:00
Eugene Burmakin
8a309a2186 Remove tracks 2025-01-29 12:18:03 +01:00
Eugene Burmakin
01275d0d2e Add some tests 2025-01-24 15:58:44 +01:00
Eugene Burmakin
7db7fb17d5 Add path to trips 2025-01-24 12:01:54 +01:00
Eugene Burmakin
774de9991b Add tracks model 2025-01-23 16:03:21 +01:00
Eugene Burmakin
f60c93ee4f Fix a bug where rc version was being checked as a stable release 2025-01-22 12:17:26 +01:00
Eugene Burmakin
157d916f6b Fix a bug where a gpx file with empty tracks was not being imported 2025-01-22 11:15:55 +01:00
Eugene Burmakin
591543fe98 Rename GoogleMaps::RecordsParser to GoogleMaps::RecordsImporter 2025-01-21 19:42:04 +01:00
Eugene Burmakin
510868a594 Fix failed specs 2025-01-21 19:32:12 +01:00
Eugene Burmakin
a311325c82 Fix failed tests 2025-01-20 20:41:26 +01:00
Evgenii Burmakin
620579d162
Merge branch 'master' into feature/api/points 2025-01-20 20:35:08 +01:00
Eugene Burmakin
112f13587c Add swagger docs for POST /api/v1/points 2025-01-20 20:17:27 +01:00
Eugene Burmakin
983768a572 Assign user_id to points on parsing 2025-01-20 20:07:46 +01:00
Eugene Burmakin
6644fc9a13 Introduce uniqueness index and validation for points 2025-01-20 17:59:13 +01:00
Eugene Burmakin
6c0a954e8e Implement dawarich points parsing 2025-01-20 16:37:15 +01:00
Eugene Burmakin
41bb2e07fb Add user endpoint 2025-01-20 15:17:56 +01:00
Eugene Burmakin
11677b14ae Introduce self-hosted mode 2025-01-15 21:52:59 +01:00
Eugene Burmakin
485f23f82d Remove unused volumes from docker-compose.yml 2025-01-09 20:51:19 +01:00
Eugene Burmakin
1b6273ba1c Fix visit suggesting job spec 2025-01-09 14:47:21 +01:00
Eugene Burmakin
e904d396c8 Make sure cache jobs are run only on server start 2025-01-07 15:02:35 +01:00
Eugene Burmakin
1229b4121c Update specs for reverse geocoding 2025-01-07 14:07:33 +01:00
Eugene Burmakin
974f45a4c9 Remove REVERSE_GEOCODING_ENABLED env var 2025-01-07 13:41:09 +01:00
Eugene Burmakin
ae6dc5ac8a Remove Photon API env vars and use DawarichSettings for reverse geocoding settings 2025-01-07 13:12:14 +01:00
Eugene Burmakin
1e9f539dac Revert "Imported points will now be reverse geocoded only after import is finished." 2025-01-04 21:31:21 +01:00
Arne Schwarck
d6cbda94ca
Update countries_and_cities_spec.rb
Update to check the fixed logic
2025-01-01 15:14:18 +01:00
Eugene Burmakin
d9bade8fe5 Fix specs for watcher and change z-index for markers and polylines 2024-12-25 13:05:42 +01:00
Evgenii Burmakin
d9c4c5d16e
Merge pull request #592 from Freika/fix/import-reverse-geocoding
Start reverse geocoding after import is finished
2024-12-25 12:43:11 +01:00
Eugene Burmakin
0276882db1 Start reverse geocoding after import is finished 2024-12-25 12:38:32 +01:00
Evgenii Burmakin
52a032acb0
Merge branch 'master' into import_google_formats 2024-12-25 11:53:40 +01:00
GED
1f223142f3 error: watcher does not create points 2024-12-24 13:08:14 +01:00
GED
49be1fe5a1 feat: added a real draft for location_history 2024-12-23 10:11:11 +01:00