Skip to content

Commit

Permalink
Disable the ignored_columns feature for now
Browse files Browse the repository at this point in the history
  • Loading branch information
Freika committed May 21, 2024
1 parent cb21fbc commit 22c8a21
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .app_version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.2.4
0.2.5
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion app/javascript/controllers/maps_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion app/models/import.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion app/models/point.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class Point < ApplicationRecord
self.ignored_columns = %w[raw_data]
# self.ignored_columns = %w[raw_data]

belongs_to :import, optional: true

Expand Down

0 comments on commit 22c8a21

Please sign in to comment.