Move sample library data from seed data into sample data

Bug #1261896 reported by Dan Scott on 2013-12-17
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

* Evergreen master

Ever since the beginning, we have loaded a stock set of actor.org_unit systems, branches, and bookmobiles for demonstration purposes as part of the stock "seed data".

And ever since the beginning, that data has been a pain for anyone who wants to move from the "try out Evergreen" stage to the "deploy Evergreen more seriously" stage, due to foreign key relationships, etc.

We evolved the "concerto" sample data set over the past few releases to support test driving Evergreen; it is easily loadable via the --load-all or --load-concerto flags on the eg_db_config script. So, it's time to move the sample actor.org_unit data over to the sample data set, too.

In addition, we can add other useful sample library data, such as different addresses, contact information such as email addresses and phone numbers, and library settings... all of which can be useful for testing and development purposes as well.

Thus, I offer up;a=shortlog;h=refs/heads/user/dbs/library_sample_data which does just that, over a series of three commits:

Commit 1: simply moves the existing seed library data over to the sample library data instead. *NOTE*: Consortium remains, as we have to have an owner for many of the rows in the database (such as the admin user), and I have not touched the actor.org_unit_type entries.

Commit 2: Gives the branches their own addresses and hours of operation

Commit 3: Gives the branches telephone numbers, email addresses, and external URLs via the library.info_url AOUS.

This branch is the basis of another branch that establishes per-AOU pages to expose this information. In that branch, the library.info_url setting becomes less annoying in record details than in the current implementation.

Bill Erickson (berick) wrote :

Tested load and basic functionality without loading the sample data. Ditto with loading the sample data. Verified presence of orgs, addresses, hours of operation, and settings. Pushed signed-off branch to:;a=shortlog;h=refs/heads/user/berick/library_sample_data

I'll wait to merge since this was just opened, giving others a chance to poke.

Ben Shum (bshum) wrote :

Works for me. Pushed to master, thanks Dan and Bill.

Changed in evergreen:
status: New → Fix Committed
Changed in evergreen:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers