Giter Club home page Giter Club logo

chouette2's People

Contributors

albanpeignier avatar anicet avatar brunto avatar gitter-badger avatar gjamotcityway avatar lassetyr avatar lwang-cityway avatar mflorisson avatar nicolasleger avatar xinhui avatar zbouziane avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

chouette2's Issues

GTFS export incomplete due to missing agency.txt file

This might be that I don't understand how the system works, but I could not find an answer in the documentation via git. I assumed that if I have filled in the company details, this would generate needed data for agency.txt file

So far I've been able to export routes data only.

environment:
both SaaS (http://appli.chouette.mobi) and own deployment (ver 3.4.1)

how to repro:
Go to exports. Some data is entered via UI to have some data to export
click "new export"
select GTFS
leave "all" as export option from drop down
select some dates, or leave as is
run the export

expected:
export runs and returns GTFS export with agency.txt in zip file

actual results:
export is done, but no meaningful data is in zip file

other:

Can't bundle install

If I remove the Gemfile.lock file, can't do a bundle install (dependencies versions issues, see below).

Is it expected ? Shouldn't the bundle install command be ok any time ?


❯ bundle install 
Fetching https://github.com/Treize37/language_engine
Fetching https://github.com/afimb/chouette2-i18n.git
Fetching https://github.com/afimb/chouette-projects-i18n.git
Fetching gem metadata from https://rails-assets.org/....
Fetching version metadata from https://rails-assets.org/..
Fetching gem metadata from https://rubygems.org/.........
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Resolving dependencies................................................................................................
Bundler could not find compatible versions for gem "activerecord":
  In Gemfile:
    activerecord-postgis-adapter (~> 3.1.4) was resolved to 3.1.5, which depends on
      activerecord (~> 4.2)

    activerecord-postgis-adapter (~> 3.1.4) was resolved to 3.1.5, which depends on
      activerecord (~> 4.2)

    acts-as-taggable-on (>= 3) was resolved to 4.0.0, which depends on
      activerecord (>= 4.0)

    acts_as_list (~> 0.6.0) was resolved to 0.6.0, which depends on
      activerecord (>= 3.0)

    acts_as_list (~> 0.6.0) was resolved to 0.6.0, which depends on
      activerecord (>= 3.0)

    acts_as_list (~> 0.6.0) was resolved to 0.6.0, which depends on
      activerecord (>= 3.0)

    acts_as_tree (~> 2.1.0) was resolved to 2.1.0, which depends on
      activerecord (>= 3.0.0)

    apartment (~> 1.0.0) was resolved to 1.0.2, which depends on
      activerecord (< 5.0, >= 3.1.2)

    deep_cloneable (~> 2.0.0) was resolved to 2.0.2, which depends on
      activerecord (< 5.0.0, >= 3.1.0)

    delayed_job_active_record was resolved to 4.1.2, which depends on
      activerecord (< 5.2, >= 3.0)

    rails (~> 4.2.7) was resolved to 4.2.7, which depends on
      activerecord (= 4.2.7)

    rails-erd was resolved to 1.5.2, which depends on
      activerecord (>= 3.2)

    squeel was resolved to 0.5.0, which depends on
      activerecord (~> 3.1.0.alpha)
Bundler could not find compatible versions for gem "devise":
  In Gemfile:
    devise (~> 3.5.10)

    devise-async was resolved to 1.0.0, which depends on
      devise (>= 4.0)

    devise_invitable was resolved to 1.6.1, which depends on
      devise (>= 3.2.0)
Bundler could not find compatible versions for gem "polyamorous":
  In Gemfile:
    ransack was resolved to 1.8.8, which depends on
      polyamorous (~> 1.3.2)

    squeel was resolved to 1.1.0, which depends on
      polyamorous (~> 0.6.0)
Bundler could not find compatible versions for gem "rspec-core":
  In Gemfile:
    guard-rspec was resolved to 4.7.3, which depends on
      rspec (< 4.0, >= 2.99.0) was resolved to 3.5.0, which depends on
        rspec-core (~> 3.5.0)

    rspec-rails (~> 3.4.2) was resolved to 3.4.2, which depends on
      rspec-core (~> 3.4.0)

Bkank page after lines bulk delete

On the "Données > Ligne" screen :

  • Check "Activer la sélection multiple" (bulk select)
  • Select one or several lines
  • Click "Supprimer les lignes" delete link

=> redirected to a blank page.

(Thanks for the great work)

Run Chouette2 fails

Hi,

following these instructions: https://github.com/afimb/chouette2/blob/master/INSTALL.md

this fails: RAILS_ENV=production bundle exec rails server

changes made:
production.rb : config.serve_static_files = true (due to failure)
ruby version 2.2.10 (bundle install would not work otherwise)

ilari@scrappy:~/GTFS/chouette2$ RAILS_ENV=production bundle exec rails server
=> Booting WEBrick
=> Rails 4.2.7.1 application starting in production on http://localhost:3000
=> Run rails server -h for more startup options
=> Ctrl-C to shutdown server
DEPRECATION WARNING: Core extensions are deprecated and will be removed in Squeel 2.0. (called from /home/ilari/GTFS/chouette2/config/initializers/squeel.rb:5:in block in <top (required)>') Exiting /home/ilari/.rvm/gems/ruby-2.2.10/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in require': /home/ilari/.rvm/gems/ruby-2.2.10/gems/ievkit_views-0.2.2/app/services/ievkit_views/action_report.rb:27: syntax error, unexpected '.' (SyntaxError)
status: d['status']&.downcase&.to_sym,
^
/home/ilari/.rvm/gems/ruby-2.2.10/gems/ievkit_views-0.2.2/app/services/ievkit_views/action_report.rb:29: syntax error, unexpected tLABEL, expecting '='
count_warning: d['check_point_warning_count'].to_i,
^
/home/ilari/.rvm/gems/ruby-2.2.10/gems/ievkit_views-0.2.2/app/services/ievkit_views/action_report.rb:30: syntax error, unexpected tLABEL, expecting '='
check_point_errors: d['check_point_errors']
^
/home/ilari/.rvm/gems/ruby-2.2.10/gems/ievkit_views-0.2.2/app/services/ievkit_views/action_report.rb:31: syntax error, unexpected '}', expecting keyword_end
}.tap{ |hash|
^
/home/ilari/.rvm/gems/ruby-2.2.10/gems/ievkit_views-0.2.2/app/services/ievkit_views/action_report.rb:48: syntax error, unexpected '.'
status: d['status']&.downcase&.to_sym,
^
/home/ilari/.rvm/gems/ruby-2.2.10/gems/ievkit_views-0.2.2/app/services/ievkit_views/action_report.rb:50: syntax error, unexpected tLABEL, expecting '='
count_warning: d['check_point_warning_count'].to_i,
^
/home/ilari/.rvm/gems/ruby-2.2.10/gems/ievkit_views-0.2.2/app/services/ievkit_views/action_report.rb:51: syntax error, unexpected tLABEL, expecting '='
check_point_errors: d['check_point_errors']
^
/home/ilari/.rvm/gems/ruby-2.2.10/gems/ievkit_views-0.2.2/app/services/ievkit_views/action_report.rb:52: syntax error, unexpected '}', expecting keyword_end
}.tap{ |hash|
^
/home/ilari/.rvm/gems/ruby-2.2.10/gems/ievkit_views-0.2.2/app/services/ievkit_views/action_report.rb:74: syntax error, unexpected '.'
status: d['status']&.downcase&.to_sym,
^
/home/ilari/.rvm/gems/ruby-2.2.10/gems/ievkit_views-0.2.2/app/services/ievkit_views/action_report.rb:76: syntax error, unexpected tLABEL, expecting '='
count_warning: d['check_point_warning_count'].to_i,
^
/home/ilari/.rvm/gems/ruby-2.2.10/gems/ievkit_views-0.2.2/app/services/ievkit_views/action_report.rb:77: syntax error, unexpected tLABEL, expecting '='
check_point_errors: d['check_point_errors']
^
/home/ilari/.rvm/gems/ruby-2.2.10/gems/ievkit_views-0.2.2/app/services/ievkit_views/action_report.rb:78: syntax error, unexpected '}', expecting keyword_end
}.tap{ |hash|
^
from /home/ilari/.rvm/gems/ruby-2.2.10/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in block in require' from /home/ilari/.rvm/gems/ruby-2.2.10/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:240:in load_dependency'
from /home/ilari/.rvm/gems/ruby-2.2.10/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in require' from /home/ilari/.rvm/gems/ruby-2.2.10/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:360:in require_or_load'
from /home/ilari/.rvm/gems/ruby-2.2.10/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:317:in depend_on' from /home/ilari/.rvm/gems/ruby-2.2.10/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:233:in require_dependency'
from /home/ilari/.rvm/gems/ruby-2.2.10/gems/railties-4.2.7.1/lib/rails/engine.rb:472:in block (2 levels) in eager_load!' from /home/ilari/.rvm/gems/ruby-2.2.10/gems/railties-4.2.7.1/lib/rails/engine.rb:471:in each'
from /home/ilari/.rvm/gems/ruby-2.2.10/gems/railties-4.2.7.1/lib/rails/engine.rb:471:in block in eager_load!' from /home/ilari/.rvm/gems/ruby-2.2.10/gems/railties-4.2.7.1/lib/rails/engine.rb:469:in each'
from /home/ilari/.rvm/gems/ruby-2.2.10/gems/railties-4.2.7.1/lib/rails/engine.rb:469:in eager_load!' from /home/ilari/.rvm/gems/ruby-2.2.10/gems/railties-4.2.7.1/lib/rails/engine.rb:346:in eager_load!'
from /home/ilari/.rvm/gems/ruby-2.2.10/gems/railties-4.2.7.1/lib/rails/application/finisher.rb:56:in each' from /home/ilari/.rvm/gems/ruby-2.2.10/gems/railties-4.2.7.1/lib/rails/application/finisher.rb:56:in block in module:Finisher'
from /home/ilari/.rvm/gems/ruby-2.2.10/gems/railties-4.2.7.1/lib/rails/initializable.rb:30:in instance_exec' from /home/ilari/.rvm/gems/ruby-2.2.10/gems/railties-4.2.7.1/lib/rails/initializable.rb:30:in run'
from /home/ilari/.rvm/gems/ruby-2.2.10/gems/railties-4.2.7.1/lib/rails/initializable.rb:55:in block in run_initializers' from /home/ilari/.rvm/rubies/ruby-2.2.10/lib/ruby/2.2.0/tsort.rb:226:in block in tsort_each'
from /home/ilari/.rvm/rubies/ruby-2.2.10/lib/ruby/2.2.0/tsort.rb:348:in block (2 levels) in each_strongly_connected_component' from /home/ilari/.rvm/rubies/ruby-2.2.10/lib/ruby/2.2.0/tsort.rb:429:in each_strongly_connected_component_from'
from /home/ilari/.rvm/rubies/ruby-2.2.10/lib/ruby/2.2.0/tsort.rb:347:in block in each_strongly_connected_component' from /home/ilari/.rvm/rubies/ruby-2.2.10/lib/ruby/2.2.0/tsort.rb:345:in each'
from /home/ilari/.rvm/rubies/ruby-2.2.10/lib/ruby/2.2.0/tsort.rb:345:in call' from /home/ilari/.rvm/rubies/ruby-2.2.10/lib/ruby/2.2.0/tsort.rb:345:in each_strongly_connected_component'
from /home/ilari/.rvm/rubies/ruby-2.2.10/lib/ruby/2.2.0/tsort.rb:224:in tsort_each' from /home/ilari/.rvm/rubies/ruby-2.2.10/lib/ruby/2.2.0/tsort.rb:203:in tsort_each'
from /home/ilari/.rvm/gems/ruby-2.2.10/gems/railties-4.2.7.1/lib/rails/initializable.rb:54:in run_initializers' from /home/ilari/.rvm/gems/ruby-2.2.10/gems/railties-4.2.7.1/lib/rails/application.rb:352:in initialize!'
from /home/ilari/GTFS/chouette2/config/environment.rb:5:in <top (required)>' from /home/ilari/.rvm/gems/ruby-2.2.10/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in require'
from /home/ilari/.rvm/gems/ruby-2.2.10/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in block in require' from /home/ilari/.rvm/gems/ruby-2.2.10/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:240:in load_dependency'
from /home/ilari/.rvm/gems/ruby-2.2.10/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in require' from /home/ilari/GTFS/chouette2/config.ru:3:in block in

'
from /home/ilari/.rvm/gems/ruby-2.2.10/gems/rack-1.6.5/lib/rack/builder.rb:55:in instance_eval' from /home/ilari/.rvm/gems/ruby-2.2.10/gems/rack-1.6.5/lib/rack/builder.rb:55:in initialize'
from /home/ilari/GTFS/chouette2/config.ru:in new' from /home/ilari/GTFS/chouette2/config.ru:in '
from /home/ilari/.rvm/gems/ruby-2.2.10/gems/rack-1.6.5/lib/rack/builder.rb:49:in eval' from /home/ilari/.rvm/gems/ruby-2.2.10/gems/rack-1.6.5/lib/rack/builder.rb:49:in new_from_string'
from /home/ilari/.rvm/gems/ruby-2.2.10/gems/rack-1.6.5/lib/rack/builder.rb:40:in parse_file' from /home/ilari/.rvm/gems/ruby-2.2.10/gems/rack-1.6.5/lib/rack/server.rb:299:in build_app_and_options_from_config'
from /home/ilari/.rvm/gems/ruby-2.2.10/gems/rack-1.6.5/lib/rack/server.rb:208:in app' from /home/ilari/.rvm/gems/ruby-2.2.10/gems/railties-4.2.7.1/lib/rails/commands/server.rb:61:in app'
from /home/ilari/.rvm/gems/ruby-2.2.10/gems/rack-1.6.5/lib/rack/server.rb:336:in wrapped_app' from /home/ilari/.rvm/gems/ruby-2.2.10/gems/rack-1.6.5/lib/rack/server.rb:272:in start'
from /home/ilari/.rvm/gems/ruby-2.2.10/gems/railties-4.2.7.1/lib/rails/commands/server.rb:80:in start' from /home/ilari/.rvm/gems/ruby-2.2.10/gems/railties-4.2.7.1/lib/rails/commands/commands_tasks.rb:80:in block in server'
from /home/ilari/.rvm/gems/ruby-2.2.10/gems/railties-4.2.7.1/lib/rails/commands/commands_tasks.rb:75:in tap' from /home/ilari/.rvm/gems/ruby-2.2.10/gems/railties-4.2.7.1/lib/rails/commands/commands_tasks.rb:75:in server'
from /home/ilari/.rvm/gems/ruby-2.2.10/gems/railties-4.2.7.1/lib/rails/commands/commands_tasks.rb:39:in run_command!' from /home/ilari/.rvm/gems/ruby-2.2.10/gems/railties-4.2.7.1/lib/rails/commands.rb:17:in <top (required)>'
from /home/ilari/GTFS/chouette2/bin/rails:9:in require' from /home/ilari/GTFS/chouette2/bin/rails:9:in <top (required)>'
from /home/ilari/.rvm/gems/ruby-2.2.10/gems/spring-1.7.2/lib/spring/client/rails.rb:28:in load' from /home/ilari/.rvm/gems/ruby-2.2.10/gems/spring-1.7.2/lib/spring/client/rails.rb:28:in call'
from /home/ilari/.rvm/gems/ruby-2.2.10/gems/spring-1.7.2/lib/spring/client/command.rb:7:in call' from /home/ilari/.rvm/gems/ruby-2.2.10/gems/spring-1.7.2/lib/spring/client.rb:30:in run'
from /home/ilari/.rvm/gems/ruby-2.2.10/gems/spring-1.7.2/bin/spring:49:in <top (required)>' from /home/ilari/.rvm/gems/ruby-2.2.10/gems/spring-1.7.2/lib/spring/binstub.rb:11:in load'
from /home/ilari/.rvm/gems/ruby-2.2.10/gems/spring-1.7.2/lib/spring/binstub.rb:11:in <top (required)>' from /home/ilari/GTFS/chouette2/bin/spring:13:in require'
from /home/ilari/GTFS/chouette2/bin/spring:13:in <top (required)>' from bin/rails:3:in load'
from bin/rails:3:in `'

"fix spec for policy" commits make the REST api failed authentication

Hi @brunto
I was testing rest API with docker-chouette, and the REST API wasn't working, returning (for json format):
{
"error": "Vous devez vous connecter ou vous enregistrer pour continuer."
}

I changed the GIT_BRANCH of chouette2 Dockerfile from V3_4 to V3.4.1, and the REST API works.
The only commit difference between the two branch/tag is 620a55f
I think something like assign_user is breaking the REST API use...
Is there a workaround, or is it a regression ?

Deploy with different path

Can I deploy chouette2 in sub path, i.e. my-domain.com/chouette2/... ?

My chouette is behind an nginx proxy. I've set it up to serve chouette2 assets (that's working), but can't find a setting to make chouette generate correct links inside pages.

Thank you.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.