This is an automated email from the ASF dual-hosted git repository.
ericholguin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git
The following commit(s) were added to refs/heads/master by this push:
new ff64922647 Fixing DELETE delivery service request comments getting
null xml_id (#7664)
ff64922647 is described below
commit ff649226473433013807f0b9ce4932ef7878612b
Author: Srijeet Chatterjee <[email protected]>
AuthorDate: Thu Jul 20 12:44:28 2023 -0600
Fixing DELETE delivery service request comments getting null xml_id (#7664)
---
.../traffic_ops_golang/deliveryservice/request/comment/comments.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/traffic_ops/traffic_ops_golang/deliveryservice/request/comment/comments.go
b/traffic_ops/traffic_ops_golang/deliveryservice/request/comment/comments.go
index 19d761cfdf..b4e119d14d 100644
--- a/traffic_ops/traffic_ops_golang/deliveryservice/request/comment/comments.go
+++ b/traffic_ops/traffic_ops_golang/deliveryservice/request/comment/comments.go
@@ -176,7 +176,7 @@ func selectQuery() string {
a.username AS author,
dsrc.author_id,
dsrc.deliveryservice_request_id,
-dsr.deliveryservice->>'xmlId' as xml_id,
+COALESCE(dsr.deliveryservice->>'xmlId', dsr.original->>'xmlId') as xml_id,
dsrc.id,
dsrc.last_updated,
dsrc.value