Skip to content

Commit

Permalink
bug 1248475: Rate changes and rule ids not shown on rule history (fixes
Browse files Browse the repository at this point in the history
#113). r=bhearsum
  • Loading branch information
njirap authored and bhearsum committed Sep 7, 2016
1 parent e93c3a4 commit 5cc1691
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions auslib/admin/views/rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,13 +182,13 @@ def get(self, rule_id):
_rules = []
_mapping = {
# return : db name
'id': 'rule_id',
'rule_id': 'rule_id',
'mapping': 'mapping',
'priority': 'priority',
'alias': 'alias',
'product': 'product',
'version': 'version',
'background_rate': 'backgroundRate',
'backgroundRate': 'backgroundRate',
'buildID': 'buildID',
'channel': 'channel',
'locale': 'locale',
Expand Down
2 changes: 2 additions & 0 deletions auslib/test/admin/views/test_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,8 @@ def testGetRevisions(self):
got = json.loads(ret.data)
self.assertEquals(ret.status_code, 200, msg=ret.data)
self.assertEquals(got["count"], 2)
self.assertTrue(u"rule_id" in got["rules"][0])
self.assertTrue(u"backgroundRate" in got["rules"][0])

def testPostRevisionRollback(self):
# Make some changes to a rule
Expand Down

1 comment on commit 5cc1691

@TaskClusterRobot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.