Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local Copy: Home Page breaks due to Geokit Gem #5

Closed
rjaltman opened this issue Feb 26, 2017 · 3 comments
Closed

Local Copy: Home Page breaks due to Geokit Gem #5

rjaltman opened this issue Feb 26, 2017 · 3 comments
Labels
bug An issue how in how the project works

Comments

@rjaltman
Copy link
Contributor

When running locally using development or test, SQLite is called upon for database management. However, this leads to problems with another gem in the project, Geokit, and the way it calculates distance within a one mile radius to nearby stops. Much like with other platforms that Geokit breaks on, the least() function is called when trying to complete this operation. However, since this method does not exist in SQLite (but does exist in MySQL2, and thus does not break on production), an error occurs on the majority of dashboard loads. Attached below is a screenshot at 360x640 resolution of the error's appearance.

image

@grant-rez grant-rez added the bug An issue how in how the project works label Feb 26, 2017
@vkoves
Copy link
Contributor

vkoves commented Feb 27, 2017

The documentation for GeoKit Rails seems to indicate this might be a problem. From there README:

Database Compatability

Geokit works with MySQL (tested with version 5.0.41), PostgreSQL (tested with version 8.2.6) and Microsoft SQL Server (tested with 2000).

However, SQLite seems to offer the functionality of the least function in the form of the MIN function so it might be possible to modify the gem to use MIN for SQLite.

@rjaltman
Copy link
Contributor Author

@vkoves, this sounds like a good approach. Just to be safe, I made sure the MySQL documentation lists the MIN function for use as well. I'll try and continue to spot any possible ignored ramifications involved in doing the substitution, but otherwise would approve this.

@vkoves
Copy link
Contributor

vkoves commented Feb 27, 2017

I've opened an issue on geokit-rails for this that has specifics into what is going on via some research into the problem.

@SorenSpicknall SorenSpicknall added this to the Basic Functionality (generalized for any GTFS system) milestone Apr 12, 2017
@SorenSpicknall SorenSpicknall removed this from the Basic Functionality (generalized for any GTFS system) milestone Mar 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An issue how in how the project works
Projects
None yet
Development

No branches or pull requests

4 participants