-
Notifications
You must be signed in to change notification settings - Fork 2
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
Ig 767 #196
Ig 767 #196
Conversation
…e approved and rejected status
src/resources/stats/kpis.router.js
Outdated
{"applicationStatus":"submitted"}, | ||
{"applicationStatus":"approved"}, | ||
{"applicationStatus":"rejected"} |
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.
There are a couple of other application statuses that I assume we want to detect here, 'inProgress' and 'approved with conditions'. The only one I assume we want to filter out is 'withdrawn' so you could just change it to NOT withdrawn?
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.
Is 'inProgress' an application in progress prior to being submitted? We only want from submitted and after, so I should probably update to add in a check for 'approved with conditions'
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.
That's correct, then just 'approved with conditions'
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.
Updated now
src/resources/stats/kpis.router.js
Outdated
console.log(`selectedMonthStart - ${selectedMonthStart}`) | ||
console.log(`selectedMonthEnd - ${selectedMonthEnd}`) |
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.
Should remove console logs, but could in future use Moment to format the date passed in, which would save a few lines of code
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.
@RobinKavPA @CiaraWardPA It could be something like this, depending on the passed in params you could do this....
moment('01/04/2021').startOf('month').format("DD/MM/YYYY 00:00:000");
"01/04/2021 00:00:000"
moment('18/04/2021').endOf('month').format("DD/MM/YYYY 23:59:59");
"31/04/2021 23:59:59"
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.
Console logs removed
No description provided.