Skip to content
This repository has been archived by the owner on Oct 17, 2018. It is now read-only.

Commit

Permalink
fix mappingRuleView bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake Skelcy committed Jul 31, 2018
1 parent b400256 commit 1edc51c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions rules/mapping.go
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,7 @@ func (mc *mappingRule) mappingRuleView(snapshotIdx int) (view.MappingRule, error
Name: mrs.name,
Tombstoned: mrs.tombstoned,
CutoverMillis: mrs.cutoverNanos / nanosPerMilli,
DropPolicy: mrs.dropPolicy,
Filter: mrs.rawFilter,
AggregationID: mrs.aggregationID,
StoragePolicies: mrs.storagePolicies,
Expand Down
1 change: 1 addition & 0 deletions rules/mapping_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -651,6 +651,7 @@ func TestMappingRuleMappingRuleView(t *testing.T) {
},
LastUpdatedAtMillis: 67890,
LastUpdatedBy: "someone-else",
DropPolicy: res.DropPolicy,
}
require.Equal(t, expected, res)
}
Expand Down

0 comments on commit 1edc51c

Please sign in to comment.