Userprofile
The user profile is an InterMine ObjectStore which stores profile information such as username and password, tags, queries, lists and templates.
#
Creating a new UserProfile databaseFirst, you must create the empty database in Postgres.
These commands are needed in the webapp to initialise a userprofile database:
#
Releasing a webapp with a new production databaseIf you already have a userprofile database and want to keep the data it contains, you can do this:
Verify that the
serialNumber
in the new production db and in the userprofile are different. Only in this case, the upgrading list process updates the lists when the user logs in.Release the webapp pointing to the new production db.
In the
savedbag
table, the fieldintermine_state
should be set tofalse
.When the user logs in, the upgrading list process will update the list (using
bagvalues
table).If there are no conflicts, the flag will be set to
true
and the user will not have to take any actionIf there are issues (eg. if a gene has merged with another) the flag will be set to
false
, and the user will have to manually upgrade their list.
#
Templates and tagsDefault templates and tags are defined in default-template-queries.xml
.
These are loaded when you build a userprofile database.
#
Back upsFor our mines, we have a script to back up the user databases every five minutes, but only if there has been a change.