Servers RFC3339 timestamps#7718
Conversation
Codecov Report
@@ Coverage Diff @@
## master #7718 +/- ##
============================================
+ Coverage 31.94% 32.24% +0.30%
============================================
Files 710 681 -29
Lines 80707 79622 -1085
Branches 965 875 -90
============================================
- Hits 25779 25677 -102
+ Misses 52777 51833 -944
+ Partials 2151 2112 -39
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 31 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
d97a48f to
1cb3a57
Compare
|
TP integration tests are failing because they always fail |
ec30669 to
324fe57
Compare
zrhoffman
left a comment
There was a problem hiding this comment.
LessThanis logically the same as!GreaterThanOrEqualToandLessThanOrEqualTois logically the same is!GreaterThan, but sometimes one representation is more readable than another, and being constrained to have to use!any time you wantOrEqualTomakes the code less readable
You resolved this conversation but went ahead and did it anyway? Please revert the Version changes not directly related to this PR. If you still think those changes are worthwhile, you can open a separate PR with those changes.
I... don't know what you mean? I resolved the conversation because I made changes which I believed resolved the conversation. You requested I do something, not that I not do anything? |
From the commit message of 324fe57
That is what I was pushing back against in #7718 (comment) (and just now in #7718 (comment)). That part has no place in #7718, it messes with a bunch of stuff totally unrelated to using RFC 3339 timestamps for servers. |
(cherry picked from commit eae7f40652d11609a4d1f55b62d88d3cd8bc0732)
(cherry picked from commit 887033af01cd8f9a64d29bbcb2d7f816ab8190e9)
(cherry picked from commit 1c02baea02c23d93a80c850b0eea1f999af7e300)
Also converted the handler to make use of api.Wrap
Previously, comparison would consider equal timestamps to mean that updates were in order, but now the update flag must have been set strictly after the queued flag is set.
e2ecd69 to
0a9f4d4
Compare
Well, sure, but that was after I already made the changes and resolved the conversation. So I'm confused how you could think I "went ahead and did it anyway", since when I did it there couldn't have been any objections yet to that which hadn't been done.
Fair. |
zrhoffman
left a comment
There was a problem hiding this comment.
Looks good! Presumably the TPv2 tests due to the ChromeDriver version not being the very latest.
…pache#7718 (apache#49) * Updated TP field names based on TO changes from PRs apache#7806, apache#7718, * Updated TP field name (cdn) in server capability and updated changelog
…pache#7718 Updated TP field name (cdn) in server capability and updated changelog
…pache#7718 Updated TP field name (cdn) in server capability and updated changelog
* * Fixed broken capability links for DS * Updated CHANGELOG.md * Updated based on review comment as well as removed deleteServerCapability button(DS table) and menu-option(right click) * Updated TP field names based on TO changes from ATC PRs #7806, #7718 Updated TP field name (cdn) in server capability and updated changelog * Updated broken links in DS's right click menu
Updated based on review comment as well as removed deleteServerCapability button(DS table) and menu-option(right click) Updated TP field names based on TO changes from ATC PRs #7806, #7718 Updated TP field name (cdn) in server capability and updated changelog Updated broken links in DS's right click menu
Related: #5911
This PR changes the
lastUpdatedfield of server objects to use RFC3339 formatting to be consistent with all of the other timestamps used by that endpoint. It also makes some other tiny naming changes for consistency within the API:cachegroupandcachegroupIdare now camelCase:cacheGroupandcacheGroupID.profileNamesis nowprofilesbecasue there is no other identifying information for any Profiles on server objects from which it needs to be distinguished.physLocationandphysLocationIdare now actual camelCase forms of "Physical Location" and "Physical Location ID", respectively. Finally,updPendingandrevalPendinghave been removed, because they provide no information that isn't trivially calculable from other properties, and are a remnant of a legacy system.At a more implementation-detail-level, things which are never allowed to be
nilaccording to API and/or database rules are now no longer allowed to benilby Go's rules - because they aren't pointers anymore since they never needed to be. Also a lot of boilerplate from the method handlers was moved to a common API wrapper function.Which Traffic Control components are affected by this PR?
What is the best way to verify this PR?
Make sure the provided tests all pass.
PR submission checklist