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

Remove "Question:" from question editor input title (creates double "Question:" in displayed title in question page) #708

Closed
7 tasks
jywarren opened this issue Aug 19, 2016 · 16 comments
Labels
bug the issue is regarding one of our programs which faces problems when a certain task is executed first-timers-only They need to be well-formatted using the First-timers_Issue_Template. help wanted requires help by anyone willing to contribute Ruby
Milestone

Comments

@jywarren
Copy link
Member

jywarren commented Aug 19, 2016

Hi, this is a first-timers-only issue. This means we've worked to make it more legible to folks who either haven't contributed to our codebase before, or even folks who haven't contributed to open source before. If you have contributed before, consider leaving this one for someone new, and looking through our general help wanted issues. Thanks!

The Problem

See this question: https://publiclab.org/questions/Anmar/08-19-2016/question-calibration-issues. You see the Question: word shows two times. The first one is present due to as it is explicitly shown in the question page and the next one is in the very title because the user used it in the title. The question editor automatically adds the Question: part in the title box and most users just leave it like that and write down the title. So it is better that we drop off that from the editor template and discourage the use of the word in the title as all question pages contain the word at the beginning of the title and specially formatted.

Solution

The line that auto adds the Question: word in the input title is this: https://github.com/publiclab/plots2/blob/master/app/views/editor/post.html.erb#L89. Just remove that word from there.

Steps to Fix

  • claim this issue with a comment
  • set up a repository locally and make sure that all tests pass
  • start a pull request (see contributing to Public Lab software) but mark it as "in progress"
  • fix the issue following the steps above
  • try the manual test listed above
  • make sure all tests pass with rake test
  • alert someone via either the developers list (see below) to have your pull request merged. This may take a few extra steps depending on when you do it, but we'll help you out!

Please email the developers list (see https://publiclab.org/developers) if you have questions!

@ananyo2012 ananyo2012 added this to the Q & A Project milestone Aug 20, 2016
@ananyo2012 ananyo2012 changed the title remove "question" from question template title (creates double "question" in displayed title) Remove "Question:" from question editor input title (creates double "Question:" in displayed title in question page) Aug 20, 2016
@ananyo2012 ananyo2012 added bug the issue is regarding one of our programs which faces problems when a certain task is executed help wanted requires help by anyone willing to contribute Ruby first-timers-only They need to be well-formatted using the First-timers_Issue_Template. labels Aug 20, 2016
@ananyo2012 ananyo2012 modified the milestone: Q & A Project Aug 21, 2016
@ryzokuken
Copy link
Member

Hey @jywarren! Among other's I'd like to claim this issue as my first one, thus maintaining the sanctity of the first-timers tag. (If there's no problem with that)

@jywarren
Copy link
Member Author

:-) that would be great, thanks!

On Tue, Sep 27, 2016 at 1:43 PM, Ujjwal Sharma notifications@github.com
wrote:

Hey @jywarren https://github.com/jywarren! Among other's I'd like to
claim this issue as my first one, thus maintaining the sanctity of the
first-timers tag. (If there's no problem with that)


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#708 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABfJ_8Umj2GbLEI4otEWDMrgBus05Ruks5quVW3gaJpZM4Jo6Qt
.

@neeleshn
Copy link

Hey,

I am a first timer too. Can only person claim an issue or many people can claim the same issue at once?

Thanks,
Neel.

@jywarren
Copy link
Member Author

Hi! We'd prefer each first timer take a distinct issue -- there ought to be
enough to go around! Thanks!

On Tue, Sep 27, 2016 at 3:07 PM, Neelesh Nidadhavolu <
notifications@github.com> wrote:

Hey,

I am a first timer too. Can only person claim an issue or many people can
claim the same issue at once?

Thanks,
Neel.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#708 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABfJ9DVAeNavZJsdjnwtzumeCHGGRgKks5quWlZgaJpZM4Jo6Qt
.

@ryzokuken
Copy link
Member

ryzokuken commented Sep 28, 2016

@jywarren I'm having some issues installing the dependencies on cloud9 using ./install_cloud9.sh.

I'll try setting up the project in my local machine. As this issue just involves removing the block <%= "Question: " if params[:template] == "question" && @node && @node.title == nil %> from the file, should I try removing this in the editor and committing the changes? Warning: Although I don't think removing this would break the application, I guess we should run the tests anyway. Maybe passing the Travis build tests is enough?

If you're curious, here's the errors it has been throwing:
1.

rake aborted!
Errno::ENOENT: No such file or directory @ rb_sysopen - /home/ubuntu/workspace/config/database.yml
/usr/local/rvm/gems/ruby-2.1.2/gems/railties-3.2.22.5/lib/rails/application/configuration.rb:115:in `read'
/usr/local/rvm/gems/ruby-2.1.2/gems/railties-3.2.22.5/lib/rails/application/configuration.rb:115:in `database_configuration'
/usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-3.2.22.5/lib/active_record/railties/databases.rake:25:in `block (2 levels) in <top (required)>'
/usr/local/rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in `eval'
/usr/local/rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in `<main>'
Tasks: TOP => db:setup => db:schema:load_if_ruby => db:create => db:load_config
(See full trace by running task with --trace)

This was fixed (to some extent) by re-running ./install_cloud9.sh, but here's what happened next:

Connection refused - {:data=>"<?xml version=\"1.0\" encoding=\"UTF-8\"?><add><doc><field name=\"id\">DrupalUsers 1</field><field name=\"type\">DrupalUsers</field><field name=\"type\">ActiveRecord::Base</field><field name=\"class_name\">DrupalUsers</field><field name=\"name_s\">ryzokuken</field><field name=\"mail_s\">usharma1998@gmail.com</field><field name=\"status_s\">1</field></doc></add>", :headers=>{"Content-Type"=>"text/xml"}, :method=>:post, :params=>{:wt=>:ruby}, :query=>"wt=ruby", :path=>"update", :uri=>#<URI::HTTP:0x007fcec427ec60 URL:http://localhost:8982/solr/development/update?wt=ruby>, :open_timeout=>nil, :read_timeout=>nil, :retry_503=>nil, :retry_after_limit=>nil}

EDIT:

Specifically, here's the line which is throwing the error (IMO): -- assume_migrated_upto_version(20160818201147, ["/home/ubuntu/workspace/db/migrate"]) -> 0.0016s

Here's the error:

rake aborted!
RSolr::Error::ConnectionRefused: Connection refused - {:data=>"<?xml version=\"1.0\" encoding=\"UTF-8\"?><add><doc><field name=\"id\">DrupalUsers 1</field><field name=\"type\">DrupalUsers</field><field name=\"type\">ActiveRecord::Base</field><field name=\"class_name\">DrupalUsers</field><field name=\"name_s\">admin</field><field name=\"mail_s\">admin@example.com</field><field name=\"status_s\">1</field></doc></add>", :headers=>{"Content-Type"=>"text/xml"}, :method=>:post, :params=>{:wt=>:ruby}, :query=>"wt=ruby", :path=>"update", :uri=>#<URI::HTTP:0x00000005a5cb98 URL:http://localhost:8982/solr/development/update?wt=ruby>, :open_timeout=>nil, :read_timeout=>nil, :retry_503=>nil, :retry_after_limit=>nil}
/usr/local/rvm/gems/ruby-2.1.2/gems/rsolr-1.1.2/lib/rsolr/connection.rb:19:in `rescue in execute'
/usr/local/rvm/gems/ruby-2.1.2/gems/rsolr-1.1.2/lib/rsolr/connection.rb:14:in `execute'
/usr/local/rvm/gems/ruby-2.1.2/gems/rsolr-1.1.2/lib/rsolr/client.rb:181:in `execute'
/usr/local/rvm/gems/ruby-2.1.2/gems/rsolr-1.1.2/lib/rsolr/client.rb:175:in `send_and_receive'
/usr/local/rvm/gems/ruby-2.1.2/gems/sunspot_rails-2.2.6/lib/sunspot/rails/solr_instrumentation.rb:16:in `block in send_and_receive_with_as_instrumentation'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-3.2.22.5/lib/active_support/notifications.rb:123:in `block in instrument'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-3.2.22.5/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-3.2.22.5/lib/active_support/notifications.rb:123:in `instrument'
/usr/local/rvm/gems/ruby-2.1.2/gems/sunspot_rails-2.2.6/lib/sunspot/rails/solr_instrumentation.rb:15:in `send_and_receive_with_as_instrumentation'
(eval):2:in `post'
/usr/local/rvm/gems/ruby-2.1.2/gems/rsolr-1.1.2/lib/rsolr/client.rb:84:in `update'
/usr/local/rvm/gems/ruby-2.1.2/gems/rsolr-1.1.2/lib/rsolr/client.rb:104:in `add'
/usr/local/rvm/gems/ruby-2.1.2/gems/sunspot-2.2.6/lib/sunspot/indexer.rb:127:in `add_documents'
/usr/local/rvm/gems/ruby-2.1.2/gems/sunspot-2.2.6/lib/sunspot/indexer.rb:134:in `add_batch_documents'
/usr/local/rvm/gems/ruby-2.1.2/gems/sunspot-2.2.6/lib/sunspot/indexer.rb:26:in `add'
/usr/local/rvm/gems/ruby-2.1.2/gems/sunspot-2.2.6/lib/sunspot/session.rb:91:in `index'
/usr/local/rvm/gems/ruby-2.1.2/gems/sunspot-2.2.6/lib/sunspot/session_proxy/abstract_session_proxy.rb:11:in `index'
/usr/local/rvm/gems/ruby-2.1.2/gems/sunspot-2.2.6/lib/sunspot.rb:184:in `index'
/usr/local/rvm/gems/ruby-2.1.2/gems/sunspot_rails-2.2.6/lib/sunspot/rails/searchable.rb:434:in `solr_index'
/usr/local/rvm/gems/ruby-2.1.2/gems/sunspot_rails-2.2.6/lib/sunspot/rails/searchable.rb:551:in `perform_index_tasks'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-3.2.22.5/lib/active_support/callbacks.rb:427:in `_run__2803887055456237888__save__1739137994141273429__callbacks'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-3.2.22.5/lib/active_support/callbacks.rb:405:in `__run_callback'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-3.2.22.5/lib/active_support/callbacks.rb:385:in `_run_save_callbacks'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-3.2.22.5/lib/active_support/callbacks.rb:81:in `run_callbacks'
/usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-3.2.22.5/lib/active_record/callbacks.rb:264:in `create_or_update'
/usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-3.2.22.5/lib/active_record/persistence.rb:104:in `save!'
/usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-3.2.22.5/lib/active_record/validations.rb:56:in `save!'
/usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-3.2.22.5/lib/active_record/attribute_methods/dirty.rb:33:in `save!'
/usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-3.2.22.5/lib/active_record/transactions.rb:264:in `block in save!'
/usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-3.2.22.5/lib/active_record/transactions.rb:313:in `block in with_transaction_returning_status'
/usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-3.2.22.5/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'
/usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-3.2.22.5/lib/active_record/transactions.rb:208:in `transaction'
/usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-3.2.22.5/lib/active_record/transactions.rb:311:in `with_transaction_returning_status'
/usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-3.2.22.5/lib/active_record/transactions.rb:264:in `save!'
/home/ubuntu/workspace/app/models/user.rb:67:in `create_drupal_user'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-3.2.22.5/lib/active_support/callbacks.rb:407:in `_run__2198648469412967413__create__1739137994141273429__callbacks'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-3.2.22.5/lib/active_support/callbacks.rb:405:in `__run_callback'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-3.2.22.5/lib/active_support/callbacks.rb:385:in `_run_create_callbacks'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-3.2.22.5/lib/active_support/callbacks.rb:81:in `run_callbacks'
/usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-3.2.22.5/lib/active_record/callbacks.rb:268:in `create'
/usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-3.2.22.5/lib/active_record/persistence.rb:348:in `create_or_update'
/usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-3.2.22.5/lib/active_record/callbacks.rb:264:in `block in create_or_update'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-3.2.22.5/lib/active_support/callbacks.rb:447:in `_run__2198648469412967413__save__1739137994141273429__callbacks'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-3.2.22.5/lib/active_support/callbacks.rb:405:in `__run_callback'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-3.2.22.5/lib/active_support/callbacks.rb:385:in `_run_save_callbacks'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-3.2.22.5/lib/active_support/callbacks.rb:81:in `run_callbacks'
/usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-3.2.22.5/lib/active_record/callbacks.rb:264:in `create_or_update'
/usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-3.2.22.5/lib/active_record/persistence.rb:104:in `save!'
/usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-3.2.22.5/lib/active_record/validations.rb:56:in `save!'
/usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-3.2.22.5/lib/active_record/attribute_methods/dirty.rb:33:in `save!'
/usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-3.2.22.5/lib/active_record/transactions.rb:264:in `block in save!'
/usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-3.2.22.5/lib/active_record/transactions.rb:313:in `block in with_transaction_returning_status'
/usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-3.2.22.5/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'
/usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-3.2.22.5/lib/active_record/transactions.rb:208:in `transaction'
/usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-3.2.22.5/lib/active_record/transactions.rb:311:in `with_transaction_returning_status'
/usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-3.2.22.5/lib/active_record/transactions.rb:264:in `save!'
/usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-3.2.22.5/lib/active_record/validations.rb:41:in `create!'
/home/ubuntu/workspace/db/seeds.rb:13:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-3.2.22.5/lib/active_support/dependencies.rb:245:in `load'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-3.2.22.5/lib/active_support/dependencies.rb:245:in `block in load'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-3.2.22.5/lib/active_support/dependencies.rb:236:in `load_dependency'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-3.2.22.5/lib/active_support/dependencies.rb:245:in `load'
/usr/local/rvm/gems/ruby-2.1.2/gems/railties-3.2.22.5/lib/rails/engine.rb:525:in `load_seed'
/usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-3.2.22.5/lib/active_record/railties/databases.rake:347:in `block (2 levels) in <top (required)>'
/usr/local/rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in `eval'
/usr/local/rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in `<main>'
Errno::ECONNREFUSED: Connection refused - connect(2) for "localhost" port 8982
/usr/local/rvm/gems/ruby-2.1.2/gems/rsolr-1.1.2/lib/rsolr/connection.rb:15:in `execute'
/usr/local/rvm/gems/ruby-2.1.2/gems/rsolr-1.1.2/lib/rsolr/client.rb:181:in `execute'
/usr/local/rvm/gems/ruby-2.1.2/gems/rsolr-1.1.2/lib/rsolr/client.rb:175:in `send_and_receive'
/usr/local/rvm/gems/ruby-2.1.2/gems/sunspot_rails-2.2.6/lib/sunspot/rails/solr_instrumentation.rb:16:in `block in send_and_receive_with_as_instrumentation'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-3.2.22.5/lib/active_support/notifications.rb:123:in `block in instrument'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-3.2.22.5/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-3.2.22.5/lib/active_support/notifications.rb:123:in `instrument'
/usr/local/rvm/gems/ruby-2.1.2/gems/sunspot_rails-2.2.6/lib/sunspot/rails/solr_instrumentation.rb:15:in `send_and_receive_with_as_instrumentation'
(eval):2:in `post'
/usr/local/rvm/gems/ruby-2.1.2/gems/rsolr-1.1.2/lib/rsolr/client.rb:84:in `update'
/usr/local/rvm/gems/ruby-2.1.2/gems/rsolr-1.1.2/lib/rsolr/client.rb:104:in `add'
/usr/local/rvm/gems/ruby-2.1.2/gems/sunspot-2.2.6/lib/sunspot/indexer.rb:127:in `add_documents'
/usr/local/rvm/gems/ruby-2.1.2/gems/sunspot-2.2.6/lib/sunspot/indexer.rb:134:in `add_batch_documents'
/usr/local/rvm/gems/ruby-2.1.2/gems/sunspot-2.2.6/lib/sunspot/indexer.rb:26:in `add'
/usr/local/rvm/gems/ruby-2.1.2/gems/sunspot-2.2.6/lib/sunspot/session.rb:91:in `index'
/usr/local/rvm/gems/ruby-2.1.2/gems/sunspot-2.2.6/lib/sunspot/session_proxy/abstract_session_proxy.rb:11:in `index'
/usr/local/rvm/gems/ruby-2.1.2/gems/sunspot-2.2.6/lib/sunspot.rb:184:in `index'
/usr/local/rvm/gems/ruby-2.1.2/gems/sunspot_rails-2.2.6/lib/sunspot/rails/searchable.rb:434:in `solr_index'
/usr/local/rvm/gems/ruby-2.1.2/gems/sunspot_rails-2.2.6/lib/sunspot/rails/searchable.rb:551:in `perform_index_tasks'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-3.2.22.5/lib/active_support/callbacks.rb:427:in `_run__2803887055456237888__save__1739137994141273429__callbacks'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-3.2.22.5/lib/active_support/callbacks.rb:405:in `__run_callback'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-3.2.22.5/lib/active_support/callbacks.rb:385:in `_run_save_callbacks'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-3.2.22.5/lib/active_support/callbacks.rb:81:in `run_callbacks'
/usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-3.2.22.5/lib/active_record/callbacks.rb:264:in `create_or_update'
/usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-3.2.22.5/lib/active_record/persistence.rb:104:in `save!'
/usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-3.2.22.5/lib/active_record/validations.rb:56:in `save!'
/usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-3.2.22.5/lib/active_record/attribute_methods/dirty.rb:33:in `save!'
/usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-3.2.22.5/lib/active_record/transactions.rb:264:in `block in save!'
/usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-3.2.22.5/lib/active_record/transactions.rb:313:in `block in with_transaction_returning_status'
/usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-3.2.22.5/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'
/usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-3.2.22.5/lib/active_record/transactions.rb:208:in `transaction'
/usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-3.2.22.5/lib/active_record/transactions.rb:311:in `with_transaction_returning_status'
/usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-3.2.22.5/lib/active_record/transactions.rb:264:in `save!'
/home/ubuntu/workspace/app/models/user.rb:67:in `create_drupal_user'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-3.2.22.5/lib/active_support/callbacks.rb:407:in `_run__2198648469412967413__create__1739137994141273429__callbacks'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-3.2.22.5/lib/active_support/callbacks.rb:405:in `__run_callback'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-3.2.22.5/lib/active_support/callbacks.rb:385:in `_run_create_callbacks'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-3.2.22.5/lib/active_support/callbacks.rb:81:in `run_callbacks'
/usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-3.2.22.5/lib/active_record/callbacks.rb:268:in `create'
/usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-3.2.22.5/lib/active_record/persistence.rb:348:in `create_or_update'
/usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-3.2.22.5/lib/active_record/callbacks.rb:264:in `block in create_or_update'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-3.2.22.5/lib/active_support/callbacks.rb:447:in `_run__2198648469412967413__save__1739137994141273429__callbacks'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-3.2.22.5/lib/active_support/callbacks.rb:405:in `__run_callback'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-3.2.22.5/lib/active_support/callbacks.rb:385:in `_run_save_callbacks'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-3.2.22.5/lib/active_support/callbacks.rb:81:in `run_callbacks'
/usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-3.2.22.5/lib/active_record/callbacks.rb:264:in `create_or_update'
/usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-3.2.22.5/lib/active_record/persistence.rb:104:in `save!'
/usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-3.2.22.5/lib/active_record/validations.rb:56:in `save!'
/usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-3.2.22.5/lib/active_record/attribute_methods/dirty.rb:33:in `save!'
/usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-3.2.22.5/lib/active_record/transactions.rb:264:in `block in save!'
/usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-3.2.22.5/lib/active_record/transactions.rb:313:in `block in with_transaction_returning_status'
/usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-3.2.22.5/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'
/usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-3.2.22.5/lib/active_record/transactions.rb:208:in `transaction'
/usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-3.2.22.5/lib/active_record/transactions.rb:311:in `with_transaction_returning_status'
/usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-3.2.22.5/lib/active_record/transactions.rb:264:in `save!'
/usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-3.2.22.5/lib/active_record/validations.rb:41:in `create!'
/home/ubuntu/workspace/db/seeds.rb:13:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-3.2.22.5/lib/active_support/dependencies.rb:245:in `load'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-3.2.22.5/lib/active_support/dependencies.rb:245:in `block in load'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-3.2.22.5/lib/active_support/dependencies.rb:236:in `load_dependency'
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-3.2.22.5/lib/active_support/dependencies.rb:245:in `load'
/usr/local/rvm/gems/ruby-2.1.2/gems/railties-3.2.22.5/lib/rails/engine.rb:525:in `load_seed'
/usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-3.2.22.5/lib/active_record/railties/databases.rake:347:in `block (2 levels) in <top (required)>'
/usr/local/rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in `eval'
/usr/local/rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in `<main>'
Tasks: TOP => db:setup => db:seed
(See full trace by running task with --trace)

This happens in the db initialization phase, after the gems have been installed successfully.

@ryzokuken
Copy link
Member

Apparently, I cannot connect to the Drupal users database. The problem is in drupal_user.save! in /app/models/user.rb.

@ananyo2012
Copy link
Member

Ah ok this is a solr related issue since. We haven't still added the steps in the readme for the cloud9 installation. Please follow the installation steps. Follow the steps 8,9,10 before start the server and that should start the server successfully.

@jywarren
Copy link
Member Author

yes -- apologies -- we're working on the Solr install steps for Cloud9 (thanks to Ananyo!) and will have better instructions there soon.

@neeleshn -- if you'd like to pick up another, there should be a number of issues available at first-timers-only They need to be well-formatted using the First-timers_Issue_Template. -- I'd be happy to help you choose one! Thanks!

@jywarren
Copy link
Member Author

Also -- if you've made the changes you think should work, and you want to try running the tests to see if everything still runs fine, you can submit your changes in a pull request with "IN PROGRESS" in the title -- and our TravisCI service will run all the tests and show you the output. I know this is not /quite/ as good, but if it's a simple change, it's fine with us!

You can learn more about opening a PR based on your feature branch here: https://publiclab.org/wiki/contributing-to-public-lab-software

Thanks!

@ryzokuken
Copy link
Member

ryzokuken commented Sep 28, 2016

@jywarren @ananyo2012 passenger start runs the server on port 3000 while c9 expects apps to run on port 8080. Is there some way I could specify it to use 8080?

EDIT: p $PORT works. Stupid me. Sorry.

@jywarren
Copy link
Member Author

Hmm, well you can say passenger start -p 8080 -- but I don't remember
that being necessary!

On Wed, Sep 28, 2016 at 11:03 AM, Ujjwal Sharma notifications@github.com
wrote:

@jywarren https://github.com/jywarren @ananyo2012
https://github.com/ananyo2012 passenger start runs the server on port
3000 while c9 expects apps to run on port 8080. Is there some way I could
specify it to use 8080?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#708 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABfJzLxfzNw6Kp_lapuXfE-eq2ZawVbks5quoGogaJpZM4Jo6Qt
.

@ananyo2012
Copy link
Member

@ryzokuken Yes the command for starting server in cloud9 is rails s -b $IP -p $PORT

ryzokuken added a commit to ryzokuken/plots2 that referenced this issue Sep 29, 2016
@ryzokuken ryzokuken mentioned this issue Sep 29, 2016
6 tasks
ryzokuken added a commit to ryzokuken/plots2 that referenced this issue Oct 14, 2016
ryzokuken added a commit to ryzokuken/plots2 that referenced this issue Oct 19, 2016
@ebarry
Copy link
Member

ebarry commented Oct 31, 2016

Hi @ryzokuken! Thank you again for your valuable contribution to Public Lab. I would like to invite you to join us in a video conference to say a few words about what you contributed and how your experience was. The event is https://publiclab.org/openhour, and it’s coming right up on November 7th, at 1pm EDT which is UTC/GMT -4.

Please feel free to respond here, or else email liz@publiclab.org, stevie@publiclab.org, jeff@publiclab.org.

@ryzokuken
Copy link
Member

ryzokuken commented Nov 1, 2016

Hey @ebarry! Firstly, thanks for the invitation. However, I'd like to mention that I'm just a kid wanting to contribute to the project. Also, 1:00 PM EDT is 11:30 PM in my timezone and I'd most probably be having school the next day, so I don't really know if I'd be able to attend this.

@ebarry
Copy link
Member

ebarry commented Nov 1, 2016

Hi @ryzokuken, there are no age limits on being awesome!
If it works for your schedule considering school the next day, and if it works for your family, you are most welcome to join us. Feel free to have a family member get in touch with me directly with any questions -- liz@publiclab.org

@ryzokuken
Copy link
Member

ryzokuken commented Nov 1, 2016

Thanks @ebarry, I'll try my best.
Also, I had been thinking how you guys have made a wonderful community (and are working on making it larger and better) and I personally think that a public chatroom would work well to attract new contributors. IRC is great but something like Slack or Gitter is more organized and a little less intimidating, also, you get free logs. What do you think about this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug the issue is regarding one of our programs which faces problems when a certain task is executed first-timers-only They need to be well-formatted using the First-timers_Issue_Template. help wanted requires help by anyone willing to contribute Ruby
Projects
None yet
Development

No branches or pull requests

5 participants