Fixes Divisions V5 apis to respond with RFC3339 date/time Format#7612
Conversation
5512b58 to
675aa9d
Compare
Codecov Report
@@ Coverage Diff @@
## master #7612 +/- ##
============================================
+ Coverage 30.13% 35.67% +5.53%
Complexity 98 98
============================================
Files 794 408 -386
Lines 84095 31320 -52775
Branches 907 90 -817
============================================
- Hits 25344 11173 -14171
+ Misses 56622 19073 -37549
+ Partials 2129 1074 -1055
Flags with carried forward coverage won't be shown. Click here to find out more. see 389 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
|
|
||
| selectQuery := "SELECT id, name, last_updated FROM division d" | ||
| query := selectQuery + where + orderBy + pagination | ||
| rows, err := tx.NamedQuery(query, queryValues) |
Check failure
Code scanning / CodeQL
Database query built from user-controlled sources
There was a problem hiding this comment.
Can you make the query assembly compliant with CodeQL?
66ddbdc to
de81ab9
Compare
|
|
||
| selectQuery := "SELECT id, name, last_updated FROM division d" | ||
| query := selectQuery + where + orderBy + pagination | ||
| rows, err := tx.NamedQuery(query, queryValues) |
There was a problem hiding this comment.
Can you make the query assembly compliant with CodeQL?
No, CodeQL will complain every time we write a query unless/until we adopt an ORM. |
Closes: #7611
Related: #5911
What is the best way to verify this PR?
Make Api calls to Divisions 5.0
Divisions to Use RFC3339 Format
If this is a bugfix, which Traffic Control versions contained the bug?
PR submission checklist