Skip to content

BETYdb 4.2.2

Compare
Choose a tag to compare
@gsrohde gsrohde released this 30 Jun 22:13
· 946 commits to master since this release

DOI

The is a minor release to tie up some loose ends, but it also contains one substantial new feature--a script for inserting new managements from data fed in from a CSV file.

The primary new feature of this release is a new script, script/insert_managements.rb, which turns a CSV file of management data into a file of SQL commands for inserting new managements and associated managements_treatments entries.

In addition, this release contains many refinements to the the bety:dbdocs rake task that produces the database schema documentation viewable within the BETYdb Rails application making it easier to use, and it removes from the Git repository the several files generated by this script. And it contains one minor bug fix.

Changes Pertinent to PEcAn Users (if applicable)

There are no migrations included in this script. Users who want to have a working copy of the database schema documentation, however, will have to generate the schema documentation with the new rake bety:dbdocs task since the (outdated!) files previously used have been removed from the Git repository.

Summary of Changes

New Features

Insert New Managements Script

The new script is called insert_managements.rb. Full instructions and documentation of its use may be had by running the command

bundle exec script/insert_managements --man

from the Rails root directory. (The bundle exec prefix is not necessary if using RVM.)

Refinements to the bety:dbdocs Rake Task

It is now possible to set the java command to use for generating the schema documentation in the task configuration file. If not set, it defaults to "java".

Bug Fixes

  • GH Issue #293: Pre-filled-in species name shouldn't disappear in Cultivar update form when a validation error occurs.

    This is now fixed.

Steps Needed for Upgrade

Database Changes

No database migrations are required.

The database version for this release is (still) 20150625184958.

Gem Installation

Administrators need to run the bundler to install the trollop Gem.

This Gem is required by the new insert_managements.rb script.

Status of RSpec Tests

  • All tests continue to pass when run in the default environment and can be run using the command

    bundle exec rspec
    

Complete details for running the rspec tests are on the updated Wiki page at https://github.com/PecanProject/bety/wiki/Automated-Tests