Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 00021010d439c86dd211440154a2b4b4a760a544 1 parent bfd561a
Sean Cribbs authored
View
6 db/migrate/2012091411521347637960_remove_platform.rb
@@ -0,0 +1,6 @@
+class RemovePlatform < ActiveRecord::Migration
+ def change
+ remove_table :platforms
+ remove_table :platforms_tests
+ end
+end
View
6 lib/giddyup/records.rb
@@ -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
10 lib/giddyup/serializers.rb
@@ -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
View
0  scorecards.json → samples/scorecards.json
File renamed without changes
View
11 samples/suite.json
@@ -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"}}
+ ]
+ }
+}
Please sign in to comment.
Something went wrong with that request. Please try again.