From 22c8a210b1f70ccbb53e3a981b5b6745c7ff31ec Mon Sep 17 00:00:00 2001 From: Eugene Burmakin Date: Tue, 21 May 2024 23:09:21 +0200 Subject: [PATCH] Disable the `ignored_columns` feature for now --- .app_version | 2 +- CHANGELOG.md | 6 ++++++ app/javascript/controllers/maps_controller.js | 2 +- app/models/import.rb | 2 +- app/models/point.rb | 2 +- 5 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.app_version b/.app_version index abd41058..3a4036fb 100644 --- a/.app_version +++ b/.app_version @@ -1 +1 @@ -0.2.4 +0.2.5 diff --git a/CHANGELOG.md b/CHANGELOG.md index 9be23fd4..2ad09ea5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ 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.2.5] — 2024-05-21 + +### Fixed + +- Stop ignoring `raw_data` column during requests to `imports` and `points` tables. This was preventing points from being created. + ## [0.2.4] — 2024-05-19 ### Added diff --git a/app/javascript/controllers/maps_controller.js b/app/javascript/controllers/maps_controller.js index 00f57553..eadb3a5f 100644 --- a/app/javascript/controllers/maps_controller.js +++ b/app/javascript/controllers/maps_controller.js @@ -19,7 +19,7 @@ export default class extends Controller { var markersLayer = L.layerGroup(markersArray) var polylineCoordinates = markers.map(element => element.slice(0, 2)); - var polylineLayer = L.polyline(polylineCoordinates) + var polylineLayer = L.polyline(polylineCoordinates, { color: 'blue', opacity: 0.6, weight: 3 }) var controlsLayer = { "Points": markersLayer, diff --git a/app/models/import.rb b/app/models/import.rb index 7101d018..dcbf8b2a 100644 --- a/app/models/import.rb +++ b/app/models/import.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true class Import < ApplicationRecord - self.ignored_columns = %w[raw_data] + # self.ignored_columns = %w[raw_data] belongs_to :user has_many :points, dependent: :destroy diff --git a/app/models/point.rb b/app/models/point.rb index 356a4664..d3d379dd 100644 --- a/app/models/point.rb +++ b/app/models/point.rb @@ -1,5 +1,5 @@ class Point < ApplicationRecord - self.ignored_columns = %w[raw_data] + # self.ignored_columns = %w[raw_data] belongs_to :import, optional: true