Skip to content

Commit 45e5507

Browse files
authored
Merge pull request #1699 from Freika/dev
0.30.12
2 parents 4b80f77 + 2020979 commit 45e5507

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+153
-89
lines changed

.app_version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.30.11
1+
0.30.12

CHANGELOG.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/)
55
and this project adheres to [Semantic Versioning](http://semver.org/).
66

7+
# [0.30.12] - 2025-08-26
8+
9+
## Fixed
10+
11+
- Number of user points is not being cached resulting in performance boost on certain pages and operations.
12+
- Logout bug
13+
- Api key is now shown even in trial period
14+
15+
716
# [0.30.11] - 2025-08-23
817

918
## Changed
@@ -14,6 +23,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1423

1524
- Some types of imports were not being detected correctly and were failing to import. #1678
1625

26+
1727
# [0.30.10] - 2025-08-22
1828

1929
## Added
@@ -41,7 +51,6 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
4151
- Trial version for cloud users is now available.
4252

4353

44-
4554
# [0.30.8] - 2025-08-01
4655

4756
## Fixed
@@ -51,7 +60,6 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
5160
- Scratch map is now working correctly.
5261

5362

54-
5563
# [0.30.7] - 2025-08-01
5664

5765
## Fixed
@@ -100,7 +108,6 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
100108

101109
- Prometheus metrics are now available at `/metrics`. Configure `METRICS_USERNAME` and `METRICS_PASSWORD` environment variables for basic authentication, default values are `prometheus` for both. All other prometheus-related environment variables are also necessary.
102110

103-
104111
## Fixed
105112

106113
- The Warden error in jobs is now fixed. #1556

app/assets/builds/tailwind.css

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/controllers/api/v1/countries/visited_cities_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def index
88
end_at = DateTime.parse(params[:end_at]).to_i
99

1010
points = current_api_user
11-
.tracked_points
11+
.points
1212
.where(timestamp: start_at..end_at)
1313

1414
render json: { data: CountriesAndCities.new(points).call }

app/controllers/api/v1/points_controller.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def index
1010
order = params[:order] || 'desc'
1111

1212
points = current_api_user
13-
.tracked_points
13+
.points
1414
.where(timestamp: start_at..end_at)
1515
.order(timestamp: order)
1616
.page(params[:page])
@@ -31,15 +31,15 @@ def create
3131
end
3232

3333
def update
34-
point = current_api_user.tracked_points.find(params[:id])
34+
point = current_api_user.points.find(params[:id])
3535

3636
point.update(lonlat: "POINT(#{point_params[:longitude]} #{point_params[:latitude]})")
3737

3838
render json: point_serializer.new(point).call
3939
end
4040

4141
def destroy
42-
point = current_api_user.tracked_points.find(params[:id])
42+
point = current_api_user.points.find(params[:id])
4343
point.destroy
4444

4545
render json: { message: 'Point deleted successfully' }

app/controllers/home_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ def index
66

77
redirect_to map_url if current_user
88

9-
@points = current_user.tracked_points.without_raw_data if current_user
9+
@points = current_user.points.without_raw_data if current_user
1010
end
1111
end

app/controllers/map_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,6 @@ def points_from_import
8888
end
8989

9090
def points_from_user
91-
current_user.tracked_points.without_raw_data.order(timestamp: :asc)
91+
current_user.points.without_raw_data.order(timestamp: :asc)
9292
end
9393
end

app/controllers/points_controller.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def bulk_destroy
2424
alert: 'No points selected.',
2525
status: :see_other and return if point_ids.blank?
2626

27-
current_user.tracked_points.where(id: point_ids).destroy_all
27+
current_user.points.where(id: point_ids).destroy_all
2828

2929
redirect_to points_url(preserved_params),
3030
notice: 'Points were successfully destroyed.',
@@ -58,7 +58,7 @@ def import_points
5858
end
5959

6060
def user_points
61-
current_user.tracked_points
61+
current_user.points
6262
end
6363

6464
def order_by

app/helpers/application_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def past?(year, month)
8686
end
8787

8888
def points_exist?(year, month, user)
89-
user.tracked_points.where(
89+
user.points.where(
9090
timestamp: DateTime.new(year, month).beginning_of_month..DateTime.new(year, month).end_of_month
9191
).exists?
9292
end

app/javascript/application.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Configure your import map in config/importmap.rb. Read more: https://github.com/rails/importmap-rails
22

3+
import "@rails/ujs"
34
import "@rails/actioncable"
45
import "controllers"
56
import "@hotwired/turbo-rails"

0 commit comments

Comments
 (0)