Commit graph

247 commits

Author SHA1 Message Date
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
Eugene Burmakin
c786671d95 Refactor points creation to be synchronous 2025-05-03 22:40:44 +02:00
Eugene Burmakin
37c95d966e Remove sample points 2025-05-02 20:05:12 +02:00
Eugene Burmakin
e433ed4d1c Use secure file downloader for imports 2025-04-23 23:27:55 +02:00
Eugene Burmakin
dae1733320 Remove telemetry 2025-04-11 19:13:46 +02:00
Eugene Burmakin
50144fddf2 Added export migration task. 2025-04-06 16:31:39 +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
f3e4ff1a7e Add deprecation notice for the status column. 2025-04-04 21:15:33 +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
f25f7db70f Remove condition on purging file 2025-04-03 18:43:30 +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
41380ddf7c Move some beds 2025-03-24 20:58:43 +01:00
Eugene Burmakin
fc8d0d8ddc Fix failing tests and move testing imports to files 2025-03-24 20:46:16 +01:00
Eugene Burmakin
1e54d87d53 Implement support for storing import files in S3. 2025-03-23 22:00:41 +01:00
Eugene Burmakin
477ef709c3 Update changelog 2025-03-23 21:06:23 +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
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
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
43c7e64efb Add osm_id, osm_key, osm_value, osm_type to places 2025-03-08 19:40:28 +01:00
Eugene Burmakin
52fd54e39f Implement area selecting to show visits 2025-03-07 23:32:56 +01:00
Eugene Burmakin
adf923542d Move visits to different panes 2025-03-06 00:13:47 +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
a4123791aa Add visits to the map page 2025-03-02 21:24:57 +01:00
Eugene Burmakin
3ebf492b14 Accept subscription updates from Dawarich Manager 2025-02-27 22:32:03 +01:00
Eugene Burmakin
e368df4e10 Add JWT authentication to the Manager app 2025-02-26 22:08:12 +01:00
Eugene Burmakin
080da9f2de Update tests 2025-02-25 00:16:42 +01:00
Eugene Burmakin
85049b398b Fix user status 2025-02-25 00:04:05 +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
217d6249e2 Use lonlat in maps controller 2025-02-23 22:59:14 +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
d2d6f95322 Fix accessing nested settings 2025-02-10 20:48:16 +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
8a309a2186 Remove tracks 2025-01-29 12:18:03 +01:00
Eugene Burmakin
fd47bf7d5d Update trip path calculation 2025-01-29 11:43:02 +01:00
Eugene Burmakin
01275d0d2e Add some tests 2025-01-24 15:58:44 +01:00
Eugene Burmakin
380dd9235d Calculate path and distance before saving trip 2025-01-24 15:03:57 +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
be779fe333 Merge remote-tracking branch 'origin/dev' into chore/database-user-constraints 2025-01-22 15:03:55 +01:00
Eugene Burmakin
b43810b1fb Import Google Records JSON in batches 2025-01-21 19:14:36 +01:00
Eugene Burmakin
6644fc9a13 Introduce uniqueness index and validation for points 2025-01-20 17:59:13 +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
974f45a4c9 Remove REVERSE_GEOCODING_ENABLED env var 2025-01-07 13:41:09 +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
Eugene Burmakin
cd31fb4cf0 Add database constraints for users table 2024-12-26 21:34:10 +01:00
Eugene Burmakin
0276882db1 Start reverse geocoding after import is finished 2024-12-25 12:38:32 +01:00
Eugene Burmakin
d01e4f3b9e Update tests for stats requests 2024-12-20 15:43:06 +01:00
Eugene Burmakin
d9930521c9 Refactor code a bit and add some specs 2024-12-16 15:10:46 +01:00
Eugene Burmakin
a4db806d29 Add togglable panel for months and years navigation 2024-12-11 20:34:49 +01:00
Eugene Burmakin
1733b2b732 Fix map and visits pages 2024-12-10 23:10:36 +01:00
Eugene Burmakin
9bca8cfeaa Merge remote-tracking branch 'origin/master' into fix/reverse-geocoded-points 2024-12-10 20:15:42 +01:00
Eugene Burmakin
dbb737a0c4 Update swagger docs and changelog 2024-12-10 19:43:52 +01:00
Eugene Burmakin
d6b88ae9cb Move photos fetching for trips to a separate service 2024-12-10 19:31:52 +01:00
Eugene Burmakin
b336172b31 Show photoprism photos on a trip page 2024-12-10 18:49:37 +01:00
Eugene Burmakin
3b115a85b1 Add missing tests and process reverse geocoding in batches 2024-12-06 17:32:45 +01:00
Eugene Burmakin
b7e4a017b8 Calculate only necessary stats 2024-12-06 16:52:36 +01:00
Eugene Burmakin
c8e910343c Fix test fixtures and add telemetry sending job 2024-12-05 17:37:50 +01:00
Eugene Burmakin
e17b671c9c Add a button to import Photoprism geodata 2024-12-03 15:40:21 +01:00
Eugene Burmakin
202396a93d Implement photos request for both immich and photoprism in single service class 2024-12-02 17:34:16 +01:00
Eugene Burmakin
360828250f Add test for photoprism request photos 2024-12-02 17:22:36 +01:00
Eugene Burmakin
1f9e1f2f97 Add basic Photoprism photos integration 2024-12-02 16:52:05 +01:00
Eugene Burmakin
9eea936782 Introduce reverse_geocoded_at to points 2024-12-02 14:44:22 +01:00
Eugene Burmakin
ce88452be0 Fix trips when Immich integration is not configured 2024-11-29 11:52:57 +01:00
Eugene Burmakin
f018f0c64c Add specs for trips model 2024-11-28 17:41:43 +01:00
Eugene Burmakin
5c09e5b0f9 Move trip to partial 2024-11-28 16:11:04 +01:00
Eugene Burmakin
782aeb89af Add distance calculation and trip cards to trips index 2024-11-28 15:29:17 +01:00
Eugene Burmakin
2cfc485f12 Add Trix editor to trips 2024-11-28 12:00:54 +01:00
Eugene Burmakin
c689051472 Show some photos from the trip 2024-11-28 10:40:08 +01:00
Eugene Burmakin
9522f81abf Move fetchAndDisplayPhotos to maps/helpers.js 2024-11-27 21:37:21 +01:00
Eugene Burmakin
198bf3128a Add trips model and scaffold controller 2024-11-27 20:14:17 +01:00
Eugene Burmakin
23237b6c7c Add new notification to the list right away 2024-11-07 19:00:11 +01:00
Eugene Burmakin
9c99a835de Implement live map updates with WebSockets 2024-11-03 16:48:43 +01:00
Eugene Burmakin
bec9db1198 Use notifications badge 2024-11-03 15:21:29 +01:00
Eugene Burmakin
14b7397840 Add raw implementation of notifications interactive channel 2024-11-03 14:37:01 +01:00
Eugene Burmakin
d218ed8151 Fix stats distances and rework stas calculating service 2024-10-24 16:59:15 +02:00
Eugene Burmakin
df430851ce Add optional order query parameter to GET /api/v1/points 2024-10-02 21:29:56 +02:00
Eugene Burmakin
d5cbae620e Update immich data importing service 2024-09-08 16:52:35 +02:00
Eugene Burmakin
0ac3b025ed Merge remote-tracking branch 'origin/master' into feature/miles 2024-09-06 21:26:26 +02:00
Eugene Burmakin
3592f46492 Rework GeoJSON import to support FeatureCollection as a root object and remove points counter for imports 2024-09-06 00:07:06 +02:00
Eugene Burmakin
0038f72155 Update gems and ruby version 2024-09-05 21:01:59 +02:00
Eugene Burmakin
8bb6a9afb5 Implement GeoJSON import 2024-09-02 22:33:54 +02:00
Eugene Burmakin
5d14b406bd Add DISTANCE_UNIT environment variable 2024-08-28 23:54:00 +02:00
Eugene Burmakin
ace93f7534 Updates here and there 2024-08-25 20:48:00 +02:00
Eugene Burmakin
7d7005063b Add places page 2024-08-25 20:19:02 +02:00
Eugene Burmakin
f9750133df Merge remote-tracking branch 'origin/master' into visit_detection 2024-08-25 19:31:19 +02:00
Eugene Burmakin
3336ac9864 Add counter cache for imports 2024-08-22 22:40:27 +02:00
Eugene Burmakin
7652dcce76 Implement the import of geodata from Immich to Dawarich 2024-08-21 18:40:54 +02:00
Eugene Burmakin
7ed7f9795b Add stats API endpoint and serializer 2024-08-20 20:14:17 +02:00
Eugene Burmakin
52ee90ac9c Replace google places api with photon api by komoot 2024-08-13 18:25:48 +02:00
Eugene Burmakin
382f937f29 Add lots of logic 2024-08-12 22:18:11 +02:00
Eugene Burmakin
5394e9dd52 Add visits detection 2024-08-05 21:23:08 +02:00
Eugene Burmakin
ffe0334ebc Add visits page 2024-07-24 20:25:16 +02:00
Eugene Burmakin
ab700c8f25 Experiment with visit calculation service 2024-07-23 00:40:48 +02:00
Eugene Burmakin
3fd176ad6e Add Visit model and associations 2024-07-21 20:32:29 +02:00
Eugene Burmakin
151e5cf042 Add areas 2024-07-21 20:09:42 +02:00
Eugene Burmakin
d660d6f6e7 Fix total reverse geocoded points calculation 2024-07-12 22:51:10 +02:00
Eugene Burmakin
0a006807f6 Update CHANGELOG.md and User#total_reverse_geocoded method 2024-07-12 22:11:42 +02:00
Eugene Burmakin
f080b4c6ce Add tests for background jobs stuff 2024-07-12 21:59:03 +02:00
Eugene Burmakin
ac36a505dd Add reverse geocoding job to background jobs controller 2024-07-09 23:50:19 +02:00
Eugene Burmakin
bb2beb519b Add notifications 2024-07-04 22:20:12 +02:00
Eugene Burmakin
747418c854 Implement GPX imports 2024-06-19 21:16:06 +02:00
Eugene Burmakin
4fe13a7d3f Merge branch 'master' into gpx-imports 2024-06-17 17:30:49 +02:00
Eugene Burmakin
3f68ce5e37 Implement Exporting points to a file 2024-06-12 20:29:38 +02:00
Eugene Burmakin
96a5240729 Add Google Maps Phone Takeout parser 2024-06-08 22:10:10 +02:00
Eugene Burmakin
08be01ebf6 Use Stat's toponyms to calculate the number of countries and cities visited in a month 2024-06-07 21:22:57 +02:00
Eugene Burmakin
4afbdd3b64 Add gpx file to experiment with 2024-05-31 23:18:57 +02:00
Eugene Burmakin
4962d48910 Added new buttons to map page and removed "Your data" page 2024-05-30 23:36:12 +02:00
Eugene Burmakin
cf71df3f0a Scope stats to user 2024-05-25 13:45:49 +02:00
Eugene Burmakin
082cbf159d Scope points to a user 2024-05-25 13:26:56 +02:00
Eugene Burmakin
814095a4a2 Implement bulk points deletion 2024-05-23 20:12:23 +02:00
Eugene Burmakin
22c8a210b1 Disable the ignored_columns feature for now 2024-05-21 23:09:21 +02:00
Eugene Burmakin
cb21fbcf54 Ignore raw_data column during requests to imports and points tables 2024-05-19 18:26:48 +02:00
Eugene Burmakin
494eb2c0ec Implement Google Maps records parser 2024-05-18 15:00:44 +02:00
Eugene Burmakin
ad78af59ac Rework calculation of cities visited 2024-04-26 18:59:58 +02:00
Eugene Burmakin
e00f614b9a Use shrine to upload files instead of ActiveStorage 2024-04-25 22:28:34 +02:00
Eugene Burmakin
ce93aa159e Move import job scheduling to controller from model callback 2024-04-06 22:31:33 +02:00
Eugene Burmakin
fe4110b0fd Add support for Overland 2024-04-06 19:09:38 +02:00
Eugene Burmakin
f7b93ac8b5 Add callback to create API key for new users 2024-04-04 20:14:11 +02:00
Eugene Burmakin
2783cc5014 Allow user to download the exported data as a JSON file 2024-04-04 17:29:11 +02:00
Eugene Burmakin
48962e87e8 Add some unit tests 2024-04-02 23:20:25 +02:00
Eugene Burmakin
5544bcd5ff Move point creation to a background job, add months navigation to the sidebar 2024-04-02 17:37:38 +02:00
Eugene Burmakin
b6769676c3 Fix google import and add stats for countries and cities visited and distance traveled by year 2024-03-28 15:11:59 +01:00
Eugene Burmakin
2953ca6499 Add a new page to show stats for a specific year 2024-03-24 19:46:55 +01:00
Eugene Burmakin
29ac8c1136 Add nice charts to the stat cards 2024-03-24 18:55:35 +01:00
Eugene Burmakin
7292115a44 Move import processing to background job & allow to disable reverse geocoding 2024-03-24 18:05:39 +01:00
Eugene Burmakin
2e4390f194 Add very basic export feature 2024-03-23 21:46:18 +01:00
Eugene Burmakin
2e6d05aa40 Add nice statistics 2024-03-23 21:16:11 +01:00
Eugene Burmakin
e1193608ef Add basic stats 2024-03-23 20:29:55 +01:00
Eugene Burmakin
1f3ee41bcb Implement calculation of cities and countries with the number of points and the last timestamp 2024-03-17 17:58:09 +01:00
Eugene Burmakin
e2095bae9c Fix params deep_symbolize_keys in OwnTracks::Params 2024-03-16 00:01:00 +01:00
Eugene Burmakin
3c74bc2937 Migrate from old template 2024-03-15 23:27:31 +01:00
Eugene Burmakin
0722e2d991 Initial Rails 7.0.2.3 template w/ rspec, tailwind, and devise user 2022-04-06 22:46:10 +04:00