-
Notifications
You must be signed in to change notification settings - Fork 7
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
Replace the legacy format functions with formatDate #7387
Conversation
data-hub-frontend Run #57910
Run Properties:
|
Project |
data-hub-frontend
|
Branch Review |
fix/remove-format-functions
|
Run status |
Passed #57910
|
Run duration | 01m 39s |
Commit |
a376ecc7ed: Fix typo
|
Committer | Paul Gain |
View all properties for this run ↗︎ |
Test results | |
---|---|
Failures |
0
|
Flaky |
0
|
Pending |
0
|
Skipped |
0
|
Passing |
15
|
View all changes introduced in this branch ↗︎ |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7387 +/- ##
==========================================
- Coverage 87.98% 87.80% -0.18%
==========================================
Files 1168 1168
Lines 18171 18163 -8
Branches 5138 5136 -2
==========================================
- Hits 15987 15948 -39
- Misses 2184 2215 +31 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Worth adding tests for the missing lines?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Had a couple of comments, but nothing blocking the PR.
We turned off the coverage as a required check so I'm not sure whether we really need to make all those lines covered. But the coverage report reveals some fundamental issues with our code: How can Does it make sense for Should we really validate date strings in ad hoc places and just fall back to a not set placeholder if it is invalid? All the dates come |
@peterhudec it looks like |
@baarkerlounger I've fixed 3 of these, however, there are still 3 outstanding, the top 2 will be addressed in the next PR as I need to remove the |
@peterhudec and I jumped on a call to discuss his comments in detail 😄 . |
…tions generated from commit 6d5a9a2
Description of change
This PR replaces the following format functions with the
dateFormat
function:formatMediumDate
formatMediumDateTime
formatMediumDateTimeWithoutParsing
formatLongDate
formatShortDate
formatMediumDateParsed
Checklist