diff --git a/CHANGELOG.md b/CHANGELOG.md index 0c244831..02ab8cb0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,13 +4,18 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). -# [0.30.1] - 2025-07-21 +# [0.30.1] - 2025-07-22 ## Fixed - Points limit exceeded check is now cached. - Reverse geocoding for places is now significantly faster. +## Changed + +- Stats page should load faster now. +- Track creation is temporarily disabled. + # [0.30.0] - 2025-07-21 diff --git a/app/javascript/controllers/maps_controller.js b/app/javascript/controllers/maps_controller.js index a675c0e9..12092891 100644 --- a/app/javascript/controllers/maps_controller.js +++ b/app/javascript/controllers/maps_controller.js @@ -219,7 +219,7 @@ export default class extends BaseController { this.setupTracksSubscription(); // Handle routes/tracks mode selection - this.addRoutesTracksSelector(); + // this.addRoutesTracksSelector(); # Temporarily disabled this.switchRouteMode('routes', true); // Initialize layers based on settings diff --git a/app/models/point.rb b/app/models/point.rb index 75566be3..7be8524a 100644 --- a/app/models/point.rb +++ b/app/models/point.rb @@ -33,8 +33,8 @@ class Point < ApplicationRecord after_create :async_reverse_geocode, if: -> { DawarichSettings.store_geodata? && !reverse_geocoded? } after_create :set_country after_create_commit :broadcast_coordinates - after_create_commit :trigger_incremental_track_generation, if: -> { import_id.nil? } - after_commit :recalculate_track, on: :update, if: -> { track.present? } + # after_create_commit :trigger_incremental_track_generation, if: -> { import_id.nil? } + # after_commit :recalculate_track, on: :update, if: -> { track.present? } def self.without_raw_data select(column_names - ['raw_data']) diff --git a/config/schedule.yml b/config/schedule.yml index dee572ce..0dc3c9e8 100644 --- a/config/schedule.yml +++ b/config/schedule.yml @@ -30,10 +30,10 @@ cache_preheating_job: class: "Cache::PreheatingJob" queue: default -tracks_cleanup_job: - cron: "0 2 * * 0" # every Sunday at 02:00 - class: "Tracks::CleanupJob" - queue: tracks +# tracks_cleanup_job: +# cron: "0 2 * * 0" # every Sunday at 02:00 +# class: "Tracks::CleanupJob" +# queue: tracks place_name_fetching_job: cron: "30 0 * * *" # every day at 00:30 diff --git a/spec/models/point_spec.rb b/spec/models/point_spec.rb index 644f8003..eaf3d4ba 100644 --- a/spec/models/point_spec.rb +++ b/spec/models/point_spec.rb @@ -30,7 +30,7 @@ RSpec.describe Point, type: :model do end end - describe '#recalculate_track' do + xdescribe '#recalculate_track' do let(:point) { create(:point, track: track) } let(:track) { create(:track) } @@ -121,7 +121,7 @@ RSpec.describe Point, type: :model do end end - describe '#trigger_incremental_track_generation' do + xdescribe '#trigger_incremental_track_generation' do let(:point) do create(:point, track: track, import_id: nil, timestamp: 1.hour.ago.to_i, reverse_geocoded_at: 1.hour.ago) end