projects
/
arvados.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8012f6c
)
2875: add description to jobs and pipeline_instances.
author
radhika <radhika@curoverse.com>
Thu, 11 Sep 2014 23:20:04 +0000
(19:20 -0400)
committer
radhika <radhika@curoverse.com>
Thu, 11 Sep 2014 23:20:04 +0000
(19:20 -0400)
services/api/app/models/job.rb
patch
|
blob
|
history
services/api/app/models/pipeline_instance.rb
patch
|
blob
|
history
services/api/db/migrate/20140911221252_add_description_to_pipeline_instances_and_jobs.rb
[new file with mode: 0644]
patch
|
blob
services/api/db/structure.sql
patch
|
blob
|
history
diff --git
a/services/api/app/models/job.rb
b/services/api/app/models/job.rb
index 75de61cb3a9c3733d49c45ab9c83ea5b47836913..32f28e3582d509930a4bdf3339659035f6d9b5d5 100644
(file)
--- a/
services/api/app/models/job.rb
+++ b/
services/api/app/models/job.rb
@@
-40,6
+40,7
@@
class Job < ArvadosModel
t.add :repository
t.add :supplied_script_version
t.add :docker_image_locator
t.add :repository
t.add :supplied_script_version
t.add :docker_image_locator
+ t.add :description
end
def assert_finished
end
def assert_finished
diff --git
a/services/api/app/models/pipeline_instance.rb
b/services/api/app/models/pipeline_instance.rb
index 354c8924e78f691cce4f327edb75ca37ec261f71..9f7a67cb1b5106233c1918f073db8b85477bbfdf 100644
(file)
--- a/
services/api/app/models/pipeline_instance.rb
+++ b/
services/api/app/models/pipeline_instance.rb
@@
-22,6
+22,7
@@
class PipelineInstance < ArvadosModel
t.add :properties
t.add :state
t.add :components_summary
t.add :properties
t.add :state
t.add :components_summary
+ t.add :description
end
# Supported states for a pipeline instance
end
# Supported states for a pipeline instance
diff --git a/services/api/db/migrate/20140911221252_add_description_to_pipeline_instances_and_jobs.rb
b/services/api/db/migrate/20140911221252_add_description_to_pipeline_instances_and_jobs.rb
new file mode 100644
(file)
index 0000000..
53d3a13
--- /dev/null
+++ b/
services/api/db/migrate/20140911221252_add_description_to_pipeline_instances_and_jobs.rb
@@ -0,0
+1,11
@@
+class AddDescriptionToPipelineInstancesAndJobs < ActiveRecord::Migration
+ def up
+ add_column :pipeline_instances, :description, :text, null: true
+ add_column :jobs, :description, :text, null: true
+ end
+
+ def down
+ remove_column :jobs, :description
+ remove_column :pipeline_instances, :description
+ end
+end
diff --git
a/services/api/db/structure.sql
b/services/api/db/structure.sql
index bd86826f3859c52ae39a7fcc939dd8033df540f6..5bb08de8367a993d8ea98db98ab87e845964989c 100644
(file)
--- a/
services/api/db/structure.sql
+++ b/
services/api/db/structure.sql
@@
-428,7
+428,8
@@
CREATE TABLE jobs (
repository character varying(255),
supplied_script_version character varying(255),
docker_image_locator character varying(255),
repository character varying(255),
supplied_script_version character varying(255),
docker_image_locator character varying(255),
- priority integer DEFAULT 0 NOT NULL
+ priority integer DEFAULT 0 NOT NULL,
+ description text
);
);
@@
-1981,20
+1982,32
@@
INSERT INTO schema_migrations (version) VALUES ('20140423133559');
INSERT INTO schema_migrations (version) VALUES ('20140501165548');
INSERT INTO schema_migrations (version) VALUES ('20140501165548');
+INSERT INTO schema_migrations (version) VALUES ('20140509143351');
+
INSERT INTO schema_migrations (version) VALUES ('20140519205916');
INSERT INTO schema_migrations (version) VALUES ('20140527152921');
INSERT INTO schema_migrations (version) VALUES ('20140519205916');
INSERT INTO schema_migrations (version) VALUES ('20140527152921');
+INSERT INTO schema_migrations (version) VALUES ('20140528143351');
+
INSERT INTO schema_migrations (version) VALUES ('20140530200539');
INSERT INTO schema_migrations (version) VALUES ('20140601022548');
INSERT INTO schema_migrations (version) VALUES ('20140602143352');
INSERT INTO schema_migrations (version) VALUES ('20140530200539');
INSERT INTO schema_migrations (version) VALUES ('20140601022548');
INSERT INTO schema_migrations (version) VALUES ('20140602143352');
+INSERT INTO schema_migrations (version) VALUES ('20140602143353');
+
INSERT INTO schema_migrations (version) VALUES ('20140607150616');
INSERT INTO schema_migrations (version) VALUES ('20140607150616');
+INSERT INTO schema_migrations (version) VALUES ('20140610210836');
+
+INSERT INTO schema_migrations (version) VALUES ('20140610210837');
+
INSERT INTO schema_migrations (version) VALUES ('20140611173003');
INSERT INTO schema_migrations (version) VALUES ('20140611173003');
+INSERT INTO schema_migrations (version) VALUES ('20140613210837');
+
INSERT INTO schema_migrations (version) VALUES ('20140627210837');
INSERT INTO schema_migrations (version) VALUES ('20140709172343');
INSERT INTO schema_migrations (version) VALUES ('20140627210837');
INSERT INTO schema_migrations (version) VALUES ('20140709172343');
@@
-2003,8
+2016,6
@@
INSERT INTO schema_migrations (version) VALUES ('20140714184006');
INSERT INTO schema_migrations (version) VALUES ('20140811184643');
INSERT INTO schema_migrations (version) VALUES ('20140811184643');
-INSERT INTO schema_migrations (version) VALUES ('20140815171049');
-
INSERT INTO schema_migrations (version) VALUES ('20140817035914');
INSERT INTO schema_migrations (version) VALUES ('20140818125735');
INSERT INTO schema_migrations (version) VALUES ('20140817035914');
INSERT INTO schema_migrations (version) VALUES ('20140818125735');
@@
-2012,3
+2023,5
@@
INSERT INTO schema_migrations (version) VALUES ('20140818125735');
INSERT INTO schema_migrations (version) VALUES ('20140826180337');
INSERT INTO schema_migrations (version) VALUES ('20140828141043');
INSERT INTO schema_migrations (version) VALUES ('20140826180337');
INSERT INTO schema_migrations (version) VALUES ('20140828141043');
+
+INSERT INTO schema_migrations (version) VALUES ('20140911221252');
\ No newline at end of file