summaryrefslogtreecommitdiff
path: root/api/api_test.go
diff options
context:
space:
mode:
author Yuri Lin <yurilin@google.com> 2023-08-28 17:25:08 -0400
committer Yuri Lin <yurilin@google.com> 2023-08-29 14:03:18 -0400
commit42d9c6d3149b60a2a86acbda570ea43b9b835494 (patch)
treeb5c11f9c8294f468ff4ef79cbaec22a38b4aa388 /api/api_test.go
parent9a0e3f774e3acf07c997cbd2f46d5b92df3b3147 (diff)
Apply default policy for enabled rules without custom policy
When an automatic zen rule doesn't have a custom policy set, we were not applying the default rule until the end to fill in any settings that were unset by any other rule's specific policy. This means that when an enabled rule used the default policy, it would not apply even if the merged consolidated policy would otherwise have kept the default policy's setting due to it being stricter. Fixes: 297415089 Test: manual, ZenModeHelperTest Change-Id: I641fdb53f023c0b37b5871550e59962717ef529c
Diffstat (limited to 'api/api_test.go')
0 files changed, 0 insertions, 0 deletions