Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update timestamp for Delivery service Request Comment to match RFC3339 format #7570

Merged
merged 7 commits into from
Jun 23, 2023

Conversation

srijeet0406
Copy link
Contributor

This PR is not related to any issue. It changes the returned timestamp formats to RFC3339, for Delivery Service Request Comments in API 5.0 of Traffic Ops.


Which Traffic Control components are affected by this PR?

  • Documentation
  • Traffic Ops

What is the best way to verify this PR?

Make sure all the unit/ API tests pass
Run TO and make CRUD requests against API 5.0 for Delivery Service Request Comments.
Ensure the timestamps are returned in RFC3339 format.

If this is a bugfix, which Traffic Control versions contained the bug?

  • master

PR submission checklist

@codecov
Copy link

codecov bot commented Jun 8, 2023

Codecov Report

Merging #7570 (3760a81) into master (c1e70b7) will decrease coverage by 34.51%.
The diff coverage is 3.46%.

@@              Coverage Diff              @@
##             master    #7570       +/-   ##
=============================================
- Coverage     64.80%   30.30%   -34.51%     
  Complexity       98       98               
=============================================
  Files           201      793      +592     
  Lines          8158    83427    +75269     
  Branches        898      898               
=============================================
+ Hits           5287    25281    +19994     
- Misses         2689    56026    +53337     
- Partials        182     2120     +1938     
Flag Coverage Δ
golib_unit 48.57% <ø> (?)
grove_unit 4.60% <ø> (?)
t3c_unit 5.31% <ø> (?)
traffic_monitor_unit 21.35% <ø> (?)
traffic_ops_integration 69.42% <100.00%> (-9.22%) ⬇️
traffic_ops_unit 23.18% <1.76%> (?)
traffic_portal_v2 74.27% <ø> (ø)
traffic_stats_unit 10.14% <ø> (?)
unit_tests 27.41% <1.76%> (-46.87%) ⬇️
v3 57.79% <ø> (?)
v4 79.18% <ø> (?)
v5 78.63% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...golang/deliveryservice/request/comment/comments.go 11.51% <0.00%> (ø)
traffic_ops/traffic_ops_golang/routing/routes.go 95.54% <100.00%> (ø)
..._ops/v5-client/deliveryservice_request_comments.go 100.00% <100.00%> (ø)

... and 592 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more


deliveryServiceRequestComments := []tc.DeliveryServiceRequestCommentV5{}
query := selectQuery() + where + orderBy + pagination
rows, err := inf.Tx.NamedQuery(query, queryValues)

Check failure

Code scanning / CodeQL

Database query built from user-controlled sources

This query depends on a [user-provided value](1).
@ocket8888 ocket8888 added Traffic Ops related to Traffic Ops documentation related to documentation low impact affects only a small portion of a CDN, and cannot itself break one tech debt rework due to choosing easy/limited solution labels Jun 20, 2023
@jagan-parthiban
Copy link
Contributor

Verified Locally. All Good.

Copy link
Contributor

@jagan-parthiban jagan-parthiban left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified Locally. All good.

@rimashah25 rimashah25 merged commit b2ca0f2 into apache:master Jun 23, 2023
jagan-parthiban pushed a commit to jagan-parthiban/trafficcontrol that referenced this pull request Jun 24, 2023
…9 format (apache#7570)

* wip

* add remaining methods

* Add changelog, fix formatting

* code review comments

* add nano
@rimashah25 rimashah25 added this to the 8.0.0 milestone Jul 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation related to documentation low impact affects only a small portion of a CDN, and cannot itself break one tech debt rework due to choosing easy/limited solution Traffic Ops related to Traffic Ops
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants