Software Open Access
Scott Rohde; Carl Crott; David LeBauer; mulroony; Jeremy Kemball; Rob Kooper; Jimmy Chen; andrewshirk; Zhengqi Yang; Max Burnette; MarvinJ; phenolphtalein; Uday Saraf; The Gitter Badger; Michael Dietze; Chris Black
Implements API query of sites by geographical coordinates; fixes constraints and sequence numbering of sites_cultivars
table
Changes Pertinent to PEcAn Users
Administrators will need to do a database migration.
Summary of Changes New FeaturesQuerying sites by geographical coordinates
It is now possibly to query sites by geographical coordinates. For example, a URL of the form [hostname]/api/beta/sites?containing=40.064,-88.195
will return the site or sites containing the point at latitude 40.064 and longitude -88.195.
Issue #521 (Two bugs in sites_cultivars)
The migration SitesCultivarsUniqueness
guarantees that site_id
is unique in the sites_cultivars
table. This means sites referenced by that table uniquely determine a cultivar.
Administrators will need to do a database migration.
The database version for this release is 20170712171513.
Gem InstallationNo new Gems need be installed.
Status of RSpec TestsAll non-pending tests pass when run in the default environment. (There is one pending test having to do with site-group editing permissions.) The tests can be run using the command
bundle exec rspec
Complete details for running the RSpec tests are at https://pecan.gitbooks.io/betydb-documentation/content/automated_tests.html.
Name | Size | |
---|---|---|
PecanProject/bety-betydb_4.18.zip
md5:dcfcbb0cbac8a07cfde99b5c11582fd5 |
12.6 MB | Download |
All versions | This version | |
---|---|---|
Views | 253 | 14 |
Downloads | 24 | 1 |
Data volume | 326.7 MB | 12.6 MB |
Unique views | 181 | 13 |
Unique downloads | 13 | 1 |