summaryrefslogtreecommitdiff
path: root/symbol
diff options
context:
space:
mode:
authorDylan Griffith <dyl.griffith@gmail.com>2019-07-10 15:33:09 +1000
committerDylan Griffith <dyl.griffith@gmail.com>2019-07-11 17:22:58 +1000
commitdacd0ee18b617f0c81c4a478a4d801b3c37e0c56 (patch)
treeb129e20413cefe21c2ad33c890b223d0a37a4928 /symbol
parent4efc8574cb45369797cf902d4e9676506a6e4cf7 (diff)
downloadgitlab-ce-dacd0ee18b617f0c81c4a478a4d801b3c37e0c56.tar.gz
Refactor: model errors for multi cluster validation
The current approach requires catching exceptions to handle these errors and callers are already handling model validations so it seems more appropriate. Also it seemed to convoluted to add this logic directly to the model since the model needs to check too many possible associations to determine whether or not there are more than one cluster since the model doesn't know what it's being created on. Additionally we only wanted to validate during create to avoid the risk of existing models becoming invalid by many different edge cases.
Diffstat (limited to 'symbol')
0 files changed, 0 insertions, 0 deletions