Commit Graph
1414 Commits
Author SHA1 Message Date
Nate Coraor c4573347d2 Testing hg->buildbot, and notification mail. 2008-07-14 12:21:54 -04:00
Nate Coraor 0e0204e1dc Mercurial doesn't track directories, so these need to be created
automatically at setup time.
2008-07-14 12:15:26 -04:00
James Taylor 0a19252676 Missing separator (visual only). 2008-07-14 02:00:16 +00:00
James Taylor 6906f5a048 Support for sharing workflows (as well as renaming). A shared workflow is
read only for the recipient, however they can always run the latest version of
the workflow. They can also 'clone' the workflow to create their own editable
copy of the current version.
2008-07-14 01:56:50 +00:00
James Taylor 0071b7389e Fix rendering of Select parameters as_display_text when no value is selected. 2008-07-14 01:54:10 +00:00
James Taylor 24fed10a05 Add appropriate padding for table headers. 2008-07-14 01:53:10 +00:00
Greg Von Kuster 3de877519e Migrate cleanup_datasets script to work with new db schema. 2008-07-10 19:54:46 +00:00
James Taylor e0eeef9e43 jquery-ui 1.5.2 (various upstream bug fixes). 2008-07-10 19:29:25 +00:00
James Taylor 1e707938a5 Fix documentation comment in topsort.py 2008-07-10 16:21:27 +00:00
Daniel Blankenberg 1e1a3e81bf Update to latest version (June 30, 2008) of GMAJ. 2008-07-09 19:07:03 +00:00
Daniel Blankenberg 28b89d686f Change database schema to separate Dataset and HistoryDatasetAssociation. This is a significant change, be sure to follow the migration notes exactly.
Make sure to backup your database before updating.


Also fix a long standing bug in the async controller dealing with updating output datasets upon job completion.


Credit for database migration directions go to Greg.

*** This is a significant change, be sure to follow the migration steps below exactly and in order: ***

---------------

0. Stop Galaxy server

---------------

1. Backup database and galaxy_root/database directory

---------------

2. The current validation_error table is not being used, it is left over from Ian's work that was not made functional.  However, if we want to keep it around, we should drop the old version of the table so it will get re-created correctly when the Galaxy server is restarted:

any database - sql command(s):
------------------------------
DROP TABLE validation_error;

---------------

3. Stop server, perform svn update to get latest code, start server to create new history_dataset_association and implicitly_converted_dataset_association tables

---------------

4. Add new columns to dataset table:

postgres sql command(s):
------------------------
ALTER TABLE dataset ADD COLUMN purgable boolean DEFAULT 't';
ALTER TABLE dataset ADD COLUMN external_filename text;
ALTER TABLE dataset ADD COLUMN _extra_files_path text;

mysql sql command(s):
---------------------
ALTER TABLE dataset ADD COLUMN purgable boolean DEFAULT TRUE;
ALTER TABLE dataset ADD COLUMN external_filename text;
ALTER TABLE dataset ADD COLUMN _extra_files_path text;

sqlite sql command(s):
----------------------
ALTER TABLE dataset ADD COLUMN purgable boolean DEFAULT 0;
ALTER TABLE dataset ADD COLUMN external_filename text;
ALTER TABLE dataset ADD COLUMN _extra_files_path text;

---------------

5. Populate new columns:

postgres sql command(s):
------------------------
UPDATE
dataset
SET
external_filename = dataset_filename.filename,
_extra_files_path = dataset_filename.extra_files_path
FROM
dataset_filename
WHERE
dataset.filename_id = dataset_filename.id;

mysql or sqlite sql command(s):
-------------------------------
UPDATE
dataset,
dataset_filename
SET
dataset.external_filename = dataset_filename.filename,
dataset._extra_files_path = dataset_filename.extra_files_path
WHERE
dataset.filename_id = dataset_filename.id;

---------------

6. Populate dataset table with info from dataset_child_association table:

postgres sql command(s):
------------------------
UPDATE
dataset
SET
parent_id = dataset_child_association.parent_dataset_id
FROM
dataset_child_association
WHERE
dataset.id = dataset_child_association.child_dataset_id;

mysql or sqlite sql command(s):
-------------------------------
UPDATE
dataset,
dataset_child_association
SET
dataset.parent_id = dataset_child_association.parent_dataset_id
WHERE
dataset.id = dataset_child_association.child_dataset_id;

---------------

7. Drop dataset_child_association table:

any database - sql command(s):
------------------------------
DROP TABLE dataset_child_association;

---------------

8. Copy parts of the current dataset table to the new history_dataset_association table:

postgres sql command(s):
------------------------
INSERT INTO history_dataset_association
SELECT
id,
history_id,
id AS dataset_id,
create_time,
update_time,
hid,
name,
info,
blurb,
peek,
extension,
metadata,
parent_id,
designation,
deleted,
visible
FROM dataset
ORDER BY id;

mysql or sqlite sql command(s):
-------------------------------
INSERT INTO
history_dataset_association
(
history_id,
dataset_id,
create_time,
update_time,
hid,
name,
info,
blurb,
peek,
extension,
metadata,
parent_id,
designation,
deleted,
visible
)
SELECT
history_id,
id,
create_time,
update_time,
hid,
name,
info,
blurb,
peek,
extension,
metadata,
parent_id,
designation,
deleted,
visible
FROM
dataset
ORDER BY
id;

---------------

9. Update the nextval value of the primary key sequence in the history_dataset_association table

NOTE: THIS IS NOT NECESSARY FOR MYSQL OR SQLITE!

postgres sql command(s):
------------------------
SELECT
setval('history_dataset_association_id_seq', max(id))
FROM
history_dataset_association;

---------------

10. Update dataset table to mark dataset_associated_file dataset as deleted:

postgres sql command(s):
------------------------
UPDATE dataset
SET
deleted = 't'
WHERE
id IN
(SELECT dataset_id FROM dataset_associated_file ORDER BY dataset_id DESC);

mysql or sqlite sql command(s):
-------------------------------
UPDATE dataset
SET
deleted = TRUE
WHERE
id IN
(SELECT dataset_id FROM dataset_associated_file ORDER BY dataset_id DESC);

---------------

11. Drop the dataset_associated_file table:

any database - sql command(s):
------------------------------
DROP TABLE dataset_associated_file;

---------------

12. Alter foreign keys on job_to_input_dataset table:

postgres or sqlite sql command(s):
------------------------
ALTER TABLE
job_to_input_dataset
DROP CONSTRAINT
job_to_input_dataset_dataset_id_fkey;

ALTER TABLE
job_to_input_dataset
ADD CONSTRAINT job_to_input_dataset_dataset_id_fkey
FOREIGN KEY
(dataset_id)
REFERENCES
history_dataset_association(id);


mysql sql command(s):
-------------------------------
ALTER TABLE
job_to_input_dataset
DROP FOREIGN KEY
ix_job_to_input_dataset_dataset_id;

ALTER TABLE
job_to_input_dataset
ADD FOREIGN KEY
ix_job_to_input_dataset_dataset_id (dataset_id)
REFERENCES
history_dataset_association(id);

---------------

13. Alter foreign keys on job_to_output_dataset table:

postgres or sqlite sql command(s):
------------------------
ALTER TABLE
job_to_output_dataset
DROP CONSTRAINT
job_to_output_dataset_dataset_id_fkey;

ALTER TABLE
job_to_output_dataset
ADD CONSTRAINT
job_to_output_dataset_dataset_id_fkey
FOREIGN KEY (dataset_id)
REFERENCES history_dataset_association(id);

mysql sql command(s):
-------------------------------
ALTER TABLE
job_to_output_dataset
DROP FOREIGN KEY
ix_job_to_output_dataset_dataset_id;

ALTER TABLE
job_to_output_dataset
ADD FOREIGN KEY
ix_job_to_output_dataset_dataset_id
FOREIGN KEY (dataset_id)
REFERENCES history_dataset_association(id);

---------------

14. Eliminate columns from the dataset table previously copied to history_dataset_association:

any database - sql command(s):
------------------------------
ALTER TABLE dataset DROP COLUMN hid;
ALTER TABLE dataset DROP COLUMN history_id;
ALTER TABLE dataset DROP COLUMN name;
ALTER TABLE dataset DROP COLUMN info;
ALTER TABLE dataset DROP COLUMN blurb;
ALTER TABLE dataset DROP COLUMN peek;
ALTER TABLE dataset DROP COLUMN extension;
ALTER TABLE dataset DROP COLUMN dbkey;
ALTER TABLE dataset DROP COLUMN metadata;
ALTER TABLE dataset DROP COLUMN parent_id;
ALTER TABLE dataset DROP COLUMN designation;
ALTER TABLE dataset DROP COLUMN visible;
ALTER TABLE dataset DROP COLUMN filename_id;
2008-07-09 17:41:08 +00:00
Anton Nekrutenko 49c8e44bee typo 2008-07-07 15:17:32 +00:00
Guruprasad Anada 255fee9ba8 Added new option to Grouping tool to randomly pick an entry from a chosen column.
Also corrected a typo in concatenate tool.
2008-07-03 17:48:28 +00:00
Greg Von Kuster d02838ce8b Missed a couple of order_by's in the job reports. 2008-07-03 12:55:55 +00:00
Guruprasad Anada 4c520e8ce2 Rewrote "convert delimiters to tab" tool in python.
Modified "Concatenate queries tail-to-head" tool to include multiple queries.
2008-07-02 19:43:08 +00:00
Greg Von Kuster 8053e0fe0c Fix for the user reports. 2008-07-02 19:12:52 +00:00
Greg Von Kuster 8a4e65b40d Optimized report queries. 2008-07-02 18:13:34 +00:00
Greg Von Kuster f931001667 Added more information to the sample .loc files, fixed a typo in extract genomic dna tool. 2008-06-30 18:02:53 +00:00
Greg Von Kuster aa66fa9a61 Missed a place in cleanup_datasets.py where I wanted to turn off logging. 2008-06-27 13:16:36 +00:00
James Taylor 69c4444de2 Workflow: create a new python module for 'WorkflowModules'. Tools are now another type of module, which removes a lot of special cases in the controller. Fixed some problems with validation and parameter groups. 2008-06-27 00:22:02 +00:00
James Taylor a662635a38 Workflow validation should work again with empty select lists (broken by changes to validation which caused empty selects to no longer submit a value). 2008-06-26 20:11:20 +00:00
Greg Von Kuster 27a34e9f21 More Galaxy reports - this should suffice for a while...
Number of jobs today - displays the total number of jobs for today
Number of jobs per Internet domain - displays the number of jobs that have been submitted per Internet domain
Number of registered users - displays the total number of registered users
2008-06-26 18:52:38 +00:00
Daniel Blankenberg 3539922e65 Fix typo on last commit 2008-06-26 14:59:41 +00:00
Daniel Blankenberg 7606f2681f Minor fix for dynamically filtered datasettool parameter when no valid datasets exist. 2008-06-26 14:02:41 +00:00
Anton Nekrutenko bb59d8a00d long overdue join wrapper fix. Needs to be rewritten in python down the road 2008-06-25 16:27:17 +00:00
Greg Von Kuster 80ac564669 Galaxy Jobs reports
Number of jobs per day for current month - displays days of the current month with the total number of jobs for each day
Number of jobs in error per day for current month - displays days of the current month with the total number of jobs in error for each day
All unfinished jobs - displays jobs that are currently in a "new" state, a "queued" state or a "running" state
Number of jobs per month - displays a list of months with the total number of jobs for each month
Number of jobs in error per month - displays a list of months with the total number of jobs in error for each month
Number of jobs per user - displays users sorted in descending order by the number of jobs they have submitted
Number of jobs per tool - displays tools sorted in alphabetical order by tool id and the number of jobs created by the tool
2008-06-25 14:45:28 +00:00
Daniel Blankenberg d96c1cd065 Minor performance enhancement for anotation profiler summaries. 2008-06-24 15:11:19 +00:00
James Taylor 3b39fb87f3 Upgrade jquery to 1.2.6 and jquery-ui to 1.5, drag and drop should be a bit
faster. Improvements to scrolling panel in workflow editor. Removed unused
and obsolete jquery plugins.
2008-06-21 03:04:28 +00:00
Greg Von Kuster 55cbdf9905 Tweak to cleanup_datasets script, only log error messages. 2008-06-20 13:45:38 +00:00
Greg Von Kuster fac1a8e2b7 Fix for my last "fix" to SecurityHelper which actually broke it, need more bytes in the RandomPool. 2008-06-19 18:19:09 +00:00
Greg Von Kuster a1d98205e1 Change to SecurityHelper, no need to cache RandomPool, just create a new RandomPool with exactly 128 bits of entropy each time. 2008-06-19 15:22:07 +00:00
Greg Von Kuster 3443e25e06 Introducing basic session security - REQUIRES DATABASE SCHEMA CHANGE and REQUIRES CONFIG CHANGE.
SQL commands for schema changes:

ALTER TABLE galaxy_session ADD COLUMN current_history_id INTEGER;
ALTER TABLE galaxy_session ADD FOREIGN KEY (current_history_id) REFERENCES history(id);
ALTER TABLE galaxy_session ADD COLUMN session_key VARCHAR(255) UNIQUE;
ALTER TABLE galaxy_session ADD COLUMN is_valid BOOLEAN DEFAULT false;
ALTER TABLE galaxy_session ADD COLUMN prev_session_id INTEGER;

Galaxy config change:

In the [app:main] section, add:

# Galaxy session security
id_secret = changethisinproductiontoo

1) The "universe", "universe_user" and "universe_session" cookies are deprecated and replaced with 1 new cookie named galaxysession".  The deprecated cookies are still supported and will be for at least 90 days, but when a valid one is found, the value is taken and used to create a new "galaxysession" cookie and the deprecated cookie is immediately expired.

2) The value of the new "galaxysession" cookie is an encrypted unique, high entropy 128 bit random number.  The decoded value is the value stored in the new session_key column of the galaxy_session table.

3) Whenever a user logs in or out they get a new GalaxySession, and the old one in the database is marked as invalidated, so a compromised cookie won't survive across login/logout. Also, when creating the new session, a reference to the previous one is saved ( via the new prev_session_id column in the galaxy_session table ) so we have a way to chain them together.
2008-06-19 14:13:00 +00:00
Daniel Blankenberg ecdfb6d3c0 Update implicit dataset conversion to work with tools that use config_files.
There was a case where a dataset could have been converted multiple times if the conversion took place in a previous input in the same tool.

Also several other miscellaneous bug fixes.
2008-06-13 17:41:23 +00:00
Greg Von Kuster 2b4df13a23 Grouping tool version updateed due to tool behvioral change. Also do not read entire fatsa / fastq dataset twice to create blurb. 2008-06-12 12:20:41 +00:00
Guruprasad Anada 36eaa51b9b Changed display of decimal numbers in the output. 2008-06-11 19:15:46 +00:00
Nate Coraor 66cbefc09c Use the more recent POSIX standard '-k 1...' option to *nix sort rather
than the obsolete POSIX standard '+0'.
2008-06-11 19:13:19 +00:00
Nate Coraor 80c829fd32 Fixed maf loc files in buildbot setup script. 2008-06-11 13:11:15 +00:00
Nate Coraor 44c68cfe2f Since it's more complex now, a script for buildbot to run to set up
stuff that needs to exist for tests to run.
2008-06-09 21:20:20 +00:00
Greg Von Kuster 666de20b4d Cleanup for fastqsolexa data type converters. We are currently supporting only the Solexa variant and will add support for other variants when the formats stabilize. 2008-06-09 20:15:04 +00:00
Greg Von Kuster 9f46fd2098 Fixes for column maker, columns and column_types tabular metadata elements are now used, no more memory errors. Also corrected some syntax / examples text for filtering tool. 2008-06-09 20:10:14 +00:00
Greg Von Kuster 74da99d8f2 Fix a typo in Chromatin and Chromosomes exec_after_process hook. 2008-06-09 17:13:38 +00:00
Daniel Blankenberg a2bb0fe114 Call set_meta() on child datasets when they are created. 2008-06-09 15:58:57 +00:00
Greg Von Kuster 599fd15a00 Requires Galaxy config change - merged former Galaxy config [datatypes] and [sniff order] sections, along with former datatype_converters.xml into 1 xml file, datatypes_conf.xml.
The new datatypes_conf.xml.sample should be copied to datatypes_conf.xml.
2008-06-09 15:20:42 +00:00
Guruprasad Anada f27ef3634f Changing liftOver input from BED to Interval in order to preserve the contents of columns other than the chromosome, start and end columns. This information was previously being lost during Interval to BED conversion. 2008-06-08 19:28:45 +00:00
James Taylor 33baa1ebec Child datasets can now be deleted, and deleting the parent recursively
deletes the child.
2008-06-07 00:45:20 +00:00
Wen-Yu Chung 2073b002d0 fix fastq sniff test. 2008-06-06 19:32:14 +00:00
Wen-Yu Chung 782d7db6be Update fastq format.
Now we only support FastqSolexa variants.
If the quality scores are presented as characters,
the integer values are obtained by their ascii code subtract 64.
2008-06-06 18:52:11 +00:00
Greg Von Kuster e767816519 Fix fastq_to_qual_converter to use 33 as default rather than 64 - now the same as fastq_to_fasta_qual tool. Added fastqsolexa as additional format for fastq converters. 2008-06-06 14:53:19 +00:00
Greg Von Kuster f896510573 Use a different directory for report's compiled mako template cache. 2008-06-05 19:47:53 +00:00
Daniel Blankenberg 70b22fbc60 All datasets are now properly wrapped by DatasetFilenameWrapper. Certain cases had some datasets wrapped by InputValueWrapper. 2008-06-05 18:52:26 +00:00