apache / trafficcontrol

Apache Traffic Control is an Open Source implementation of a Content Delivery Network
https://trafficcontrol.apache.org/
Apache License 2.0
1.03k stars 339 forks source link

parent cachegroup is required for all cachegroup types in portal #1183

Closed DylanVolz closed 6 years ago

DylanVolz commented 6 years ago

With a db with no cachegroups you cannot create any cachegroups via the portal because you cannot select a parent cachegroup.

If the type is set to mid_loc (and perhaps others) parent cachegroup should not be required.

mitchell852 commented 6 years ago

@DylanVolz - it looks like parentcachegroupid is not required for a cachegroup create/update so maybe just remove the requirement from the UI field altogether

https://github.com/apache/incubator-trafficcontrol/blob/master/traffic_ops/app/lib/API/Cachegroup.pm#L456