Permalink
Browse files

Remove platform as a thing, we'll just use tags on the test model.

  • Loading branch information...
1 parent bfd561a commit 00021010d439c86dd211440154a2b4b4a760a544 @seancribbs seancribbs committed Sep 15, 2012
@@ -0,0 +1,6 @@
+class RemovePlatform < ActiveRecord::Migration
+ def change
+ remove_table :platforms
+ remove_table :platforms_tests
+ end
+end
View
@@ -7,12 +7,6 @@ def next_id
end
end
-class Platform < ActiveRecord::Base
- # name string
- # position integer
- default_scope order(:position)
-end
-
class Test < ActiveRecord::Base
# name string
# tags hstore
View
@@ -1,13 +1,5 @@
class TestResultSerializer < ActiveModel::Serializer
- attributes :id, :result, :author, :log_url, :test, :platform, :tags
-
- def test
- test_result.test.name
- end
-
- def platform
- test_result.platform.name
- end
+ attributes :id, :result, :author, :log_url, :test_id, :scorecard_id
end
class ScorecardSerializer < ActiveModel::Serializer
File renamed without changes.
View
@@ -0,0 +1,11 @@
+{
+ "project":{
+ "name":"riak",
+ "tests":[
+ {"id":1, "name":"verify_build_cluster",
+ "tags":{"platform":"ubuntu-1004-64"}},
+ {"id":2, "name":"secondary_index_tests",
+ "tags":{"backend":"eleveldb", "platform":"ubuntu-1004-64"}}
+ ]
+ }
+}

0 comments on commit 0002101

Please sign in to comment.