Creating types dynamically through the API should be limited to type where useintable=server #3728
Labels
database
relating to setup/installation/structure of the Traffic Ops database
medium impact
impacts a significant portion of a CDN, or has the potential to do so
tech debt
rework due to choosing easy/limited solution
Traffic Ops
related to Traffic Ops
The types table currently has types associated with
as far as i know, only one type of type can be added dynamically - server types. The other types are "static" and would require supporting code changes if new types are introduced.
For example, you can create an EDGE_FOO or MID_FOO type and the system will treat those servers as edges and mids respectively because they start with EDGE or MID. no code changes required.
however, if you create a DNS_FOO delivery service type, the system can't handle that without code changes.
Therefore, I think the CRUD apis for types should only work if useintable=server. otherwise, you should get back a 400 Bad Request.
The text was updated successfully, but these errors were encountered: