Skip to content

Update rule priority ID when a new rule added or removed

  • Keep rules priority ID always starting from 1 to N.
  • If a new rule with priority ID 1 is created, assign the existing rule of priority ID 1 a new priority ID 2.
  • If the rule of priority ID 1 is removed, assign the rule of priority ID 2 a new priority ID 1.