There is a newer version of this record available.

Software Open Access

BETYdb 4.20 Upgrade to Rails 4.2

Scott Rohde; Carl Crott; David LeBauer; Patrick Mulrooney; Rob Kooper; Jeremy Kemball; Jimmy Chen; Andrew Shirk; Zhengqi Yang; Max Burnette; Haotian Jiang; Yilin Dong; Uday Saraf; Michael Dietze; Chris Black

Dublin Core Export

<?xml version='1.0' encoding='utf-8'?>
<oai_dc:dc xmlns:dc="" xmlns:oai_dc="" xmlns:xsi="" xsi:schemaLocation="">
  <dc:creator>Scott Rohde</dc:creator>
  <dc:creator>Carl Crott</dc:creator>
  <dc:creator>David LeBauer</dc:creator>
  <dc:creator>Patrick Mulrooney</dc:creator>
  <dc:creator>Rob Kooper</dc:creator>
  <dc:creator>Jeremy Kemball</dc:creator>
  <dc:creator>Jimmy Chen</dc:creator>
  <dc:creator>Andrew Shirk</dc:creator>
  <dc:creator>Zhengqi Yang</dc:creator>
  <dc:creator>Max Burnette</dc:creator>
  <dc:creator>Haotian 	Jiang</dc:creator>
  <dc:creator>Yilin Dong</dc:creator>
  <dc:creator>Uday Saraf</dc:creator>
  <dc:creator>Michael Dietze</dc:creator>
  <dc:creator>Chris Black</dc:creator>
  <dc:description>Draft Release Notes (Rails 4.2)

Upgrade to Rails 4.2; several bug fixes. Summary of Changes

This release upgrades the version of Rails used from 3.2 to 4.2.

New features

	Added Rake tasks for dumping and updating SQL comments using YAML files (pull request #543).
	On the Advanced Search page, traits and yields are now searchable by method name (pull request #506)
	When creating or editing Managements, possible management types now include "thining" and "other" (pull request #546).

Bug fixes

	Issue #533 ("Trait/entity notes don't get populated through Bulk Upload Wizard")

	If a Bulk Upload file has a "notes" column, those notes now show up in the newly-created traits or yields.
	Issue #552 ("Travis fails trying to create postgis extension.")

	Travis now runs RSpec successfully so builds no longer always fail.

Other Changes

	Updated DBMS named in the README file from MySQL to PostgreSQL (long overdue).
	Docker cleanup (pull requests #537 and #550).

Steps Needed for Upgrade

	Log in to the server.
	cd to the Rails root directory.
	Run git pull to get the lastest version of the master branch.
	Run bundle to upgrade several Gems (including Rails itself) and to add new Gems that are no longer part of Rails proper are that are needed to support legacy Rails behaviors until code is updated to no longer need this legacy support.
	The file config/secrets.yml expects a variable called SECRET_KEY_BASE to be in the environment. To generate a suitable value for this variable, run rake secret.
	Ensure this variable is in the environment seen by the HTTP server. If you run your BETYdb app under Apache HTTP server, one way to do this is to put a directive of the form
	SetEnv SECRET_KEY_BASE some_secret_key

	in the &lt;Directory&gt; section of the configuration file corresponding to the BETYdb instance you have deployed.
	Restart the HTTP server, e.g. sudo apachectl restart.

[In lieu of steps 6 and 7, you could also edit config/secrets.yml directly, replacing

&lt;%= ENV["SECRET_KEY_BASE"] %&gt;

with the value you generated in step 5; then restart PhusionPassenger by running touch tmp/restart.txt. This is not the preferred way of doing things, however, since Git will then always show this file as modified.]

Status of RSpec Tests

All non-pending tests pass when run in the default environment. (There is one pending test having to do with site-group editing permissions.)

Complete details for running the RSpec tests are at</dc:description>
  <dc:description>Development of BETYdb is supported by the National Science Foundation (ABI #1062547, ABI #1458021),  the Department of Energy (ARPA-E awards #DE-AR0000594 and DE-AR0000598), and the Energy Biosciences Institute.</dc:description>
  <dc:title>BETYdb 4.20 Upgrade to Rails 4.2</dc:title>
All versions This version
Views 22847
Downloads 240
Data volume 326.7 MB0 Bytes
Unique views 15742
Unique downloads 130


Cite as