Make OverrideThrottle handle modifications of existing throttles

Authored by Glaisher on Mar 23 2015, 5:19 AM.

Description

Make OverrideThrottle handle modifications of existing throttles

If a user enters a target for which there is an existing throttle,
show the user an error and let the user resubmit the form if the
existing rule needs to be modified.

Database table changes

  • Add thr_target which is indexed

Validation

  • If no throttle type is given, don't insert it.
  • Removed dodgy range check; looks like IP::isIPAddress() does that check

Bug: T62423
Change-Id: If989fa5d7f0c9d526f987462a91160d0c40fc9a7

Details