bety: BETYdb 4.8
Creators
- 1. <( '.' <) <( '.' )> (> '.' )>
- 2. University of Illinois
- 3. NCSA
- 4. Gitter
- 5. Boston University
Description
Added new site-grouping features. Minor bug fixes and upgrades. Ruby 2.1 or greater is now required.
Changes Pertinent to PEcAn UsersAdministrators need to do a database migration.
See "Database Changes" below.
Summary of Changes New Features Grouping of SitesThis release of BETY now allows the user to create a grouping of sites. The user can make this grouping publicly accessible or make it private for the user only. The grouping can be used in the BETYdb web interface to quickly get to sites of interest, or in the PEcAn interface to show only those sites the user is interested in.
Upgrade to RSpec 3The version of RSpec that we use for testing has been upgraded from version 2.14 to version 3.4. This shouldn't affect end users, but developers will now be able to use the latest version of RSpec when writing new tests.
Other Notable Changes Ruby Versions and TravisAlthough Ruby 2.1.5 is the Ruby version "officially" supported by BETYdb, up until recently, BETYdb would run with versions 1.9.3 and 2.0. This is no longer the case.
Since tests will now fail under both Ruby 1.9.3 and 2.0.0, these version have been removed from the set of versions run by Travis (our automated testing service). Travis instead now runs tests under the following Ruby versions: 2.1.5 (the "official" version), 2.1.8, 2.2.4, and 2.3.0.
Although users are strongly encouraged to upgrade Ruby to at least version 2.1, users who still want to run BETYdb under older versions may be able to do so for the time being by making certain changes to their code. If you are a user who wishes to do this, please contact BETYdb support.
Bug Fixes GitHub issues #386 and #387An issue arose with bulk uploads when a trait or covariate variable was used that had a maximum value set to +Infinity (GH issue #386). This was because the code would treat such values as being zero, so that no positive value was acceptable (GH issue #387). (A minimum value of -Infinity was also treated as zero, making negative values unacceptable as well.) This has been fixed.
Problems with Travis and Database MigrationsA problem with Travis (an automated test-running service) used to occur when a database migration was committed. If any test code depended on the migration, the test would fail until the file db/production_structure.sql was updated. Even worse, if a test fixture depended on the migration, the test setup would fail and no tests at all would run. Since db/production_structures.sql is updated only upon deployment of new code to www.betydb.org, this meant that Travis tests would fail from the time the migration was first committed to GitHub until the time of deployment.
Now Travis uses the (new) file test_structure.sql. This file should be regenerated and the update should be added to the GitHub repository each time a new migration is added.
Steps Needed for Upgrade Database Changes (if applicable)Administrators need to do database migrations!
There is one migration, which adds the sitegroups table and an associated join table.
The database version for this release is 20160412030352.
Gem InstallationAdministrators need to run the bundler to update versions of some of the Ruby Gems.
Status of RSpec TestsAll tests continue to pass when run in the default environment and can be run using the command
bundle exec rspecAs noted above, we are now using RSpec version 3.4.
Complete instructions for setting up the test database and running the RSpec tests are on the Wiki page at https://github.com/PecanProject/bety/wiki/Automated-Tests
Files
bety-betydb_4.8.zip
Files
(13.9 MB)
Name | Size | Download all |
---|---|---|
md5:12e973b1497fab66a4b693113236313c
|
13.9 MB | Preview Download |
Additional details
Related works
- Is supplement to
- https://github.com/PecanProject/bety/tree/betydb_4.8 (URL)