-
Notifications
You must be signed in to change notification settings - Fork 15
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
Migrate date management from momentjs to dayjs #483
base: main
Are you sure you want to change the base?
Conversation
5c75f54
to
bc4deb8
Compare
…or "Open Test Page button"
This reverts commit d09df2f.
* Updating jest environment and babel configuration * Trying nodegit 18 to fix builds * New github config to fix builds * Cacheing nodegit and fixing failing tests * Upgrade lighthouse
3b3543c
to
7f2c2b2
Compare
bc4deb8
to
817bcdb
Compare
Fix fake data seeder
Remove nodegit dependency
* Update React * Revert "Update React" This reverts commit d09df2f. * Fix misspellings in the readme * Fix files affected by revert on source branch --------- Co-authored-by: Howard Edwards <[email protected]>
be7adaa
to
7bdaae9
Compare
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.
One non-blocking question, but it looks good to me overall!
|
||
const issuesResolver = async testPlanReport => { | ||
if (!testPlanReport.candidateStatusReachedAt) return []; | ||
|
||
const searchPrefix = `${testPlanReport.at.name} Feedback: "`; | ||
const searchTestPlanVersionTitle = | ||
testPlanReport.testPlanVersion.dataValues.title; | ||
const searchTestPlanVersionDate = moment( | ||
const searchTestPlanVersionDate = dayjs( |
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.
Non-blocking: Would it be better to use one of the util functions instead of dayjs
directly?
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.
Which util functions are you referring to there?
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 like this is the same as convertDateToString
# Conflicts: # .github/workflows/runtest.yml # client/components/CandidateTests/CandidateTestPlanRun/index.jsx # client/package.json # client/tests/TestQueue.test.jsx # client/utils/gitUtils.test.js # server/package.json # yarn.lock
Due to its size, mutability of the date objects, dropped support and more that can be found here, moving away from
moment
would be preferred at this time especially since it's footprint is small in the application.day.js
was found to be a widely accepted community alternative.