--- /dev/null
+# Place all the behaviors and hooks related to the matching controller here.
+# All this logic will automatically be available in application.js.
+# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
--- /dev/null
+// Place all the styles related to the Traits controller here.
+// They will automatically be included in application.css.
+// You can use Sass (SCSS) here: http://sass-lang.com/
--- /dev/null
+class TraitsController < ApplicationController
+end
--- /dev/null
+module TraitsHelper
+end
--- /dev/null
+class Trait < ArvadosBase
+end
ArvadosWorkbench::Application.routes.draw do
+ resources :traits
+
+
resources :api_client_authorizations
resources :repositories
resources :virtual_machines
--- /dev/null
+# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
+
+# This model initially had no columns defined. If you add columns to the
+# model remove the '{}' from the fixture names and add the columns immediately
+# below each fixture, per the syntax in the comments below
+#
+one: {}
+# column: value
+#
+two: {}
+# column: value
--- /dev/null
+require 'test_helper'
+
+class TraitsControllerTest < ActionController::TestCase
+ # test "the truth" do
+ # assert true
+ # end
+end
--- /dev/null
+require 'test_helper'
+
+class TraitsHelperTest < ActionView::TestCase
+end
--- /dev/null
+require 'test_helper'
+
+class TraitTest < ActiveSupport::TestCase
+ # test "the truth" do
+ # assert true
+ # end
+end
* PipelineInstances
* Groups
* Specimens
+* Traits
* Users
* Variants
* VariantAnnotations
--- /dev/null
+# Place all the behaviors and hooks related to the matching controller here.
+# All this logic will automatically be available in application.js.
+# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
--- /dev/null
+// Place all the styles related to the Traits controller here.
+// They will automatically be included in application.css.
+// You can use Sass (SCSS) here: http://sass-lang.com/
--- /dev/null
+class Arvados::V1::TraitsController < ApplicationController
+end
--- /dev/null
+module TraitsHelper
+end
--- /dev/null
+class Trait < ArvadosModel
+ include AssignUuid
+ include KindAndEtag
+ include CommonApiTemplate
+ serialize :properties, Hash
+
+ api_accessible :superuser, :extend => :common do |t|
+ t.add :name
+ t.add :properties
+ end
+end
Server::Application.routes.draw do
+ resources :traits
resources :repositories
resources :virtual_machines
resources :authorized_keys
resources :authorized_keys
resources :virtual_machines
resources :repositories
+ resources :traits
end
end
--- /dev/null
+class CreateTraits < ActiveRecord::Migration
+ def change
+ create_table :traits do |t|
+ t.string :uuid, :null => false
+ t.string :owner, :null => false
+ t.string :modified_by_client
+ t.string :modified_by_user
+ t.datetime :modified_at
+ t.string :name
+ t.text :properties
+
+ t.timestamps
+ end
+ add_index :traits, :uuid, :unique => true
+ add_index :traits, :name
+ end
+end
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20130626022810) do
+ActiveRecord::Schema.define(:version => 20130627154537) do
create_table "api_client_authorizations", :force => true do |t|
t.string "api_token", :null => false
add_index "specimens", ["modified_at"], :name => "index_specimens_on_modified_at"
add_index "specimens", ["uuid"], :name => "index_specimens_on_uuid", :unique => true
+ create_table "traits", :force => true do |t|
+ t.string "uuid", :null => false
+ t.string "owner", :null => false
+ t.string "modified_by_client"
+ t.string "modified_by_user"
+ t.datetime "modified_at"
+ t.string "name"
+ t.text "properties"
+ t.datetime "created_at"
+ t.datetime "updated_at"
+ end
+
+ add_index "traits", ["name"], :name => "index_traits_on_name"
+ add_index "traits", ["uuid"], :name => "index_traits_on_uuid", :unique => true
+
create_table "users", :force => true do |t|
t.string "uuid"
t.string "owner"
--- /dev/null
+# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
+
+one:
+ uuid: MyString
+ owner: MyString
+ modified_by_client: MyString
+ modified_by_user: MyString
+ modified_at: 2013-06-27 11:45:37
+ name: MyString
+ properties: MyText
+
+two:
+ uuid: MyString
+ owner: MyString
+ modified_by_client: MyString
+ modified_by_user: MyString
+ modified_at: 2013-06-27 11:45:37
+ name: MyString
+ properties: MyText
--- /dev/null
+require 'test_helper'
+
+class TraitsControllerTest < ActionController::TestCase
+ # test "the truth" do
+ # assert true
+ # end
+end
--- /dev/null
+require 'test_helper'
+
+class TraitsHelperTest < ActionView::TestCase
+end
--- /dev/null
+require 'test_helper'
+
+class TraitTest < ActiveSupport::TestCase
+ # test "the truth" do
+ # assert true
+ # end
+end