From 75036ee05359efdad5a1a905f0c708a931e96593 Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 25 Feb 2015 16:18:29 +0000 Subject: [PATCH] Remove the 'default' attribute, make all rules have rule IDs & make server default rules IDs start with '.'. --- drafts/push_csapi.rst | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drafts/push_csapi.rst b/drafts/push_csapi.rst index b1d759ff..67ddfb8b 100644 --- a/drafts/push_csapi.rst +++ b/drafts/push_csapi.rst @@ -94,15 +94,14 @@ be redundant. Actions for the highest priority rule and only that rule apply (for example, a set_tweak action in a lower priority rule will not apply if a higher priority rule matches, even if that rule does not specify any tweaks). -Rules also have an identifier, rule_id, which is a string. The rule_id is +Rules also have an identifier, rule_id, which is a string. The rule_id is unique within the kind of rule and scope: rule_ids need not be unique between rules of the same kind on different devices. A home server may also have server default rules of each kind and in each scope. Server default rules are lower priority than user-defined rules in each scope. -Server defined rules do not have a rule_id except when it is necessary to derive -the function of the rule (ie. in room and sender rules). Server default rules -have an attribute, "default" set to true. +Server default rules (and only server default rules) begin with a dot ('.') +character. In addition, all rules may be enabled or disabled. Disabled rules never match.