diaspora* v0.1.0.0 Release Notes
-
๐จ Refactor
Replaced Resque with Sidekiq - Migration guide - #3993
We replaced our queue system with Sidekiq. You might know that Resque needs Redis. ๐ Sidekiq does too, so don't remove it, it's still required. Sidekiq uses a threaded model so you'll need far less processes than with Resque to do the same amount of work.
โก๏ธ To update do the following:
โก๏ธ 1. Before updating (even before the
git pull
!) stop your application server (Unicorn by default, started through Foreman).- In case you did already run
git pull
checkout v0.0.3.4:
git fetch origin git checkout v0.0.3.4 bundle
๐ 3. Start Resque web (you'll need temporary access to port 5678, check your Firewall if needed!):
bundle exec resque-web
In case you need it you can adjust the port with the
-p
flag. ๐ท 4. One last time, start a Resque worker:RAILS_ENV=production QUEUE=* bundle exec rake resque:work
Visit Resque web via http://your_host:5678, wait until all queues but the failed one are empty (show 0 jobs). ๐ท 5. Kill the Resque worker by hitting Ctrl+C. Kill Resque web with:
bundle exec resque-web -k
Don't forget to close the port on the Firewall again, if you had to open it.
- In case you needed to do step 2., run:
git checkout master bundle
โก๏ธ 7. Proceed with the update as normal (migrate database, precompile assets).
- Before starting Diaspora again ensure that you reviewed the new
environment.sidekiq
section inconfig/diaspora.yml.example
and, if wanted, transfered it to yourconfig/diaspora.yml
and made any needed changes. In particular increase theenvironment.sidekiq.concurrency
setting on any medium sized pod. If you do change that value, edit yourconfig/database.yml
and add a matchingpool: n
to your database configuration. n should be equal or higher than the amount of threads per Sidekiq worker. This sets how many concurrent connections to the database ActiveRecord allows.
If you aren't using
script/server
but for example passenger, you no ๐ท longer need to start a Resque worker, but a Sidekiq worker now. The command for that is:bundle exec sidekiq
Heroku
The only gotcha for Heroku single gear setups is that the setting name ๐ท to spawn a background worker from the unicorn process changed. Run
heroku config:remove SERVER_EMBED_RESQUE_WORKER heroku config:set SERVER_EMBED_SIDEKIQ_WORKER=true
We're automatically adjusting the ActiveRecord connection pool size for you.
Larger Heroku setups should have enough expertise to figure out what to do by them self.
Removal of Capistrano
๐ The Capistrano deployment scripts were removed from the main source code repository, since they were no longer working. ๐ They will be moved into their own repository with a new maintainer, you'll be able to find them under the Diaspora* Github organization once everything is set up.
Other
- Cleaned up requires of our own libraries #3993
- Refactor people_controller#show and photos_controller#index #4002
- Modularize layout #3944
- โ Add header to the sign up page #3944
- โ Add a configuration entry to set max-age header to Amazon S3 resources. #4048
- Load images via sprites #4039
- โ Delete unnecessary javascript views. #4059
- Cleanup of script/server
- Attempt to stabilize federation of attached photos (fix #3033 #3940 )
- ๐จ Refactor develop install script #4111
- โ Remove special hacks for supporting Ruby 1.8 #4113
- ๐ Moved custom oEmbed providers to config/oembed_providers.yml #4131
- Add specs for Post#find_by_guid_or_id_with_user
๐ Bug fixes
- ๐ Fix mass aspect selection #4127
- ๐ Fix posting functionality on tags show view #4112
- ๐ Fix cancel button on getting_started confirmation box #4073
- Reset comment box height after posting a comment. #4030
- Fade long tag names. #3899
- Avoid posting empty comments. #3836
- Delegate parent_author to the target of a RelayableRetraction
- Do not fail on receiving a SignedRetraction via the public route
- Pass the real values to stderr_path and stdout_path in unicorn.rb since it runs a case statement on them.
- Decode tag name before passing it into a TagFollowingAction #4027
- ๐ Fix reshares in single post-view #4056
- ๐ Fix mobile view of deleted reshares. #4063
- Hide comment button in the mobile view when not signed in. #4065
- Send profile alongside notification #3976
- ๐ Fix off-center close button image on intro popovers #3841
- โ Remove unnecessary dotted CSS borders. #2940
- ๐ Fix default image url in profiles table. #3795
- ๐ Fix mobile buttons are only clickable when scrolled to the top. #4102
- ๐ Fix regression in bookmarklet causing uneditable post contents. #4057
- Redirect all mixed case tags to the lower case equivalents #4058
- ๐ Fix wrong message on infinite scroll on contacts page #3681
- My Activity mobile doesn't show second page when clicking "more". #4109
- โ Remove unnecessary navigation bar to access mobile site and re-add flash warning to mobile registrations. #4085
- ๐ Fix broken reactions link on mobile page #4125
- ๐ Missing translation "Back to top". #4138
- ๐ Fix preview with locator feature. #4147
- ๐ Fix mentions at end of post. #3746
- ๐ Fix missing indent to correct logged-out-header container relative positioning #4134
- Private post dont show error 404 when you are not authorized on mobile page #4129
- ๐ Show 404 instead of 500 if a not signed in user wants to see a non public or non existing post.
๐ Features
- Deleting a post that was shared to Facebook now deletes it from Facebook too #3980
- Include reshares in a users public atom feed #1781
- โ Add the ability to upload photos from the mobile site. #4004
- ๐ Show timestamp when hovering on comment time-ago string. #4042
- If sharing a post with photos to Facebook, always include URL to post #3706
- โ Add possibiltiy to upload multiple photos from mobile. #4067
- โ Add hotkeys to navigate in stream #4089
- โ Add a brief explanatory text about external services connections to services index page #3064
- โ Add a preview for posts in the stream #4099
- โ Add shortcut key Shift to submit comments and publish posts. #4096
- ๐ Show the service username in a tooltip next to the publisher icons #4126
- Ability to add location when creating a post #3803
- โ Added oEmbed provider for MixCloud. #4131
โก๏ธ Gem updates
- โฌ๏ธ Dropped everything related to Capistrano in preparation for maintaining it in a separate repository
- ๐ Replaced Resque with Sidekiq, see above. Added Sinatra and Slim for the Sidekiq Monitor interface
- โ Added sinon-rails, compass-rails
- acts-as-taggable-on 2.3.3 -> 2.4.0
- โ addressable 2.3.2 -> 2.3.4
- client_side_validations 3.2.1 -> 3.2.5
- ๐ง configurate 0.0.2 -> 0.0.7
- ๐ cucumber-rails 1.3.0 -> 1.3.1
- faraday 0.8.5 -> 0.8.7
- fog 1.9.0 -> 1.10.1
- foreigner 1.3.0 -> 1.4.1
- foreman 0.61 -> 0.62
- gon 4.0.2 -> 4.1.0
- guard 1.6.2 -> 1.7.0
- guard-cucumber 1.3.2 -> 1.4.0
- guard-rspec 2.4.0 -> 2.5.3
- guard-spork 1.4.2 -> 1.5.0
- haml 4.0.0 -> 4.0.2
- ๐ฑ handlebars_assets 0.11.0 -> 0.1.2.0
- jasmine 1.3.1 -> 1.3.2
- nokogiri 1.5.6 -> 1.5.9
- oauth2 0.8.0 -> 0.8.1
- omniauth 1.1.3 -> 1.1.4
- omniauth-twitter 0.0.14 -> 0.0.16
- pg 0.14.1 -> 0.15.1
- rack-piwik 0.1.3 -> 0.2.2
- ๐ rails-i18n 0.7.2 -> 0.7.3
- ๐ rails_admin 0.4.5 -> 0.4.7
- ๐ roxml git release -> 3.1.6
- ๐ rspec-rails 2.12.2 -> 2.13.0
- safe_yaml 0.8.0 -> 0.9.1
- selenium-webdriver 2.29.0 -> 2.32.1
- timecop 0.5.9.2 -> 0.6.1
- twitter 4.5.0 -> 4.6.2
- uglifier 1.3.0 -> 2.0.1
- unicorn 4.6.0 -> 4.6.2
- In case you did already run