mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 09:41:40 -05:00
Merge pull request #1551 from Freika/chore/disable-tracks-generation
Temporary disable track creation
This commit is contained in:
commit
685f7eebd2
5 changed files with 15 additions and 10 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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'])
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue