Skip to content
This repository was archived by the owner on Nov 24, 2025. It is now read-only.
This repository was archived by the owner on Nov 24, 2025. It is now read-only.

CDN snapshot diff always has a diff with tm_path #1876

@mitchell852

Description

@mitchell852

When performing a snapshot diff in Traffic Portal, the tm_path value under the Stats tab is always different

image

This is because the "old" tm_path always includes the endpoint that was used to perform the current snapshot:

/tools/write_crconfig/cdn1 (if snapshot was performed thru old TO UI)
or
/api/1.3/cdns/:id/snapshot (if snapshot was performed thru the API (or TP))

and the "new" tm_path always includes the path used to fetch the "new" snapshot:

/api/1.3/cdns/cdn1/snapshot/new

hence, always a diff.

my suggestion is that tm_path is removed altogether as it appears to not be used anywhere and is purely informational.

https://github.com/apache/incubator-trafficcontrol/blob/master/traffic_ops/app/lib/UI/Topology.pm#L64

Metadata

Metadata

Assignees

No one assigned

    Labels

    Traffic Opsrelated to Traffic OpsTraffic Portal v1related to Traffic Portal version 1low impactaffects only a small portion of a CDN, and cannot itself break one

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions