Skip to content
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

Release 196 #500

Merged
merged 250 commits into from
Jan 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
250 commits
Select commit Hold shift + click to select a range
aedb7f9
initial commit of intermediate ccfog start application page
Sep 5, 2023
ace5d4c
cleaned up css
Sep 6, 2023
e60d681
Merge branch 'main' of github.com:bcgov/EDUC-CCOF into feature/ccfri-…
Sep 6, 2023
550e2c0
reverted
Sep 6, 2023
3126e3e
added intermediate page code
Sep 6, 2023
642f26f
Update constants.js
roblo-cgi Sep 6, 2023
d57917c
Merge pull request #423 from bcgov/feature/ccfri-1562
roblo-cgi Sep 6, 2023
7b0fb4d
Merge branch 'main' of github.com:bcgov/EDUC-CCOF into release-195
Sep 7, 2023
c56244f
added fiscal year to messages
Sep 12, 2023
29577bc
Merge pull request #430 from bcgov/feature/ccfri-2160
roblo-cgi Sep 12, 2023
76ad577
Adding Fiscal year slider for Multi fiscal year
vietle-cgi Sep 13, 2023
8ae39bc
Merge branch 'main' of https://github.com/bcgov/EDUC-CCOF into releas…
jenbeckett Sep 14, 2023
5fb4cce
Merge branch 'main' of github.com:bcgov/EDUC-CCOF into release-196
roblo-cgi Sep 14, 2023
7baa713
Merge branch 'main' of github.com:bcgov/EDUC-CCOF into release-196
roblo-cgi Sep 19, 2023
90b951d
updates for multifiscal - loading application array
roblo-cgi Sep 19, 2023
9eae335
update to allow for historical change requests across multi year
jenbeckett Sep 19, 2023
f14b5d6
Merge branch 'release-196-rlo' of https://github.com/bcgov/EDUC-CCOF …
jenbeckett Sep 19, 2023
7f6809b
historical works with a list of application ID
jenbeckett Sep 19, 2023
dd4b8e0
fixed reactiveness of map
roblo-cgi Sep 19, 2023
5e0029a
Merge branch 'release-196-rlo' of https://github.com/bcgov/EDUC-CCOF …
jenbeckett Sep 19, 2023
e0d6b7d
wip
jenbeckett Sep 19, 2023
8c5197e
Merge pull request #441 from bcgov/main
jenbeckett Sep 20, 2023
5ec261b
multi year nav bar
jenbeckett Sep 20, 2023
9642fd7
merge from 196 branch
jenbeckett Sep 20, 2023
c1d9d31
merge from 196 branch
jenbeckett Sep 20, 2023
8165045
move FiscalYearSlider to guiComponent folder
vietle-cgi Sep 20, 2023
842d634
Merge branch 'release-196' into release-195-Viet
vietle-cgi Sep 20, 2023
c412827
tested for multi year
jenbeckett Sep 20, 2023
9c18926
took out 1 thing
jenbeckett Sep 20, 2023
2b38f6f
Message - fix bug and add scoped to style
vietle-cgi Sep 21, 2023
7bcbf57
Merge branch 'release-196-jb' into release-196-Viet
vietle-cgi Sep 21, 2023
87dcc20
small bug fix where org provider type was not loading properly due to…
jenbeckett Sep 21, 2023
79dcaa0
fixed incorrect mapping of new UserProfileFiscal API
vietle-cgi Sep 21, 2023
087e59c
merge Jen branch
vietle-cgi Sep 21, 2023
df77377
add getChangeRequest call to Landing page + update filterNavBar for C…
vietle-cgi Sep 21, 2023
c9fc821
Merge branch 'release-196' of https://github.com/bcgov/EDUC-CCOF into…
jenbeckett Sep 22, 2023
fe94dd7
ability for new pcf to delete their application
jenbeckett Sep 22, 2023
06dff16
refactored change request to not use userprofile change requests
roblo-cgi Sep 23, 2023
917613e
Merge pull request #444 from bcgov/release-196-Viet-rl
jenbeckett Sep 25, 2023
7654dd5
update filterNavBar and Fiscal Year Slider for Multi Fiscal Year
vietle-cgi Sep 26, 2023
95b84d5
merge and resolve conflict Rob's branch
vietle-cgi Sep 26, 2023
131493f
fix bug with Fiscal Year Slider when there is only 1 application
vietle-cgi Sep 26, 2023
3eb4a63
CCFRI-1206-MyCCS ECE-WE Opt-In/Out language update
chendongluo Sep 27, 2023
d03250e
CCFRI-1216-1217-fix-the-lowercases
chendongluo Sep 27, 2023
14857ce
CCFRI-1664-MyCCS-Wording change on MyCCS log-in page
chendongluo Sep 27, 2023
a60cf0b
CCFRI-2043-MyCCS - Estimator > Rows per page Drop list - misaligned f…
chendongluo Sep 27, 2023
8670a83
CCFRI-413-MyCCS - Estimator Input Warning Message Last Line is being …
chendongluo Sep 27, 2023
eae8288
CCFRI-1183-MyCCS - client dashboard hyperlinks not working in read-on…
chendongluo Sep 27, 2023
7e7f8f4
updating map
jenbeckett Sep 28, 2023
b65b7c9
update logic and routing for Update PCF button
vietle-cgi Sep 28, 2023
d647eba
Merge branch 'release-196-Viet' of https://github.com/bcgov/EDUC-CCOF…
jenbeckett Sep 29, 2023
faf1378
update mappings for reportChanges getters
jenbeckett Sep 29, 2023
aa2c116
active previous year CR visible on change request dashboard
jenbeckett Sep 29, 2023
c3a8da1
Multi fiscal year update for Landing page - update button logic + rou…
vietle-cgi Oct 3, 2023
ee91fa2
Merge branch 'release-196-jb2' into release-196-Viet
vietle-cgi Oct 3, 2023
9f5d7e7
Landing page - Update CR button - include all fiscal years
vietle-cgi Oct 3, 2023
0058fe2
Merge pull request #447 from bcgov/release-196-Viet
roblo-cgi Oct 5, 2023
f9d9427
wip debugging CR new fac
jenbeckett Oct 6, 2023
4020a31
before restart
jenbeckett Oct 9, 2023
c345186
wip refactor to fix cr new fac
jenbeckett Oct 10, 2023
46cb533
ticket 2609 prevent PCF submission when user has active CR
jenbeckett Oct 10, 2023
3a58bff
wip summ dec
jenbeckett Oct 10, 2023
1063f6c
date update
jenbeckett Oct 11, 2023
c182107
wip more date tings
jenbeckett Oct 11, 2023
e1d857d
before update to mtfi
jenbeckett Oct 12, 2023
dc039ce
merge main
vietle-cgi Oct 12, 2023
f6a731a
wip
jenbeckett Oct 12, 2023
3f09879
wip2
jenbeckett Oct 12, 2023
61ec6aa
updates to make CR New facility work with the multi fiscal updates
jenbeckett Oct 16, 2023
e46d805
filter change requests by selected fiscal year
vietle-cgi Oct 18, 2023
ab53ad4
merge main
vietle-cgi Oct 18, 2023
1276d9a
update for cr new fac for multi year
jenbeckett Oct 18, 2023
8428340
fixed delete new fac
jenbeckett Oct 20, 2023
88e87fb
update Fiscal Year Slider UI
vietle-cgi Oct 20, 2023
71dbf79
closure dates for mtfi wip
jenbeckett Oct 20, 2023
f86cfed
UI enhancement for Landing page - multi-fiscal year
vietle-cgi Oct 23, 2023
bf458dd
merge main
vietle-cgi Oct 23, 2023
f557614
merge Jen's branch
vietle-cgi Oct 23, 2023
7070923
Multi fiscal release - fix bugs and code smells
vietle-cgi Oct 24, 2023
fbf902f
multi fiscal year - integrate MTFI statuses with multi fiscal year
vietle-cgi Oct 24, 2023
d934163
multi fiscal year - integrate MTFI statuses with multi fiscal year
vietle-cgi Oct 24, 2023
b0f4ca3
Merge pull request #455 from bcgov/release-196-Viet
roblo-cgi Oct 25, 2023
25343b0
closure dates for mtfi complete
jenbeckett Oct 25, 2023
4a42253
merge and pull date code
jenbeckett Oct 26, 2023
6ae142b
updates to prevent PCF submission with active cr, ece fix WIP
jenbeckett Oct 26, 2023
4040b2c
fixed rootstate
jenbeckett Oct 27, 2023
0473e70
Merge pull request #459 from bcgov/release-196-jb3
roblo-cgi Oct 27, 2023
ecd0e06
adjust the behavior nav Button beforeRouteLeave
vietle-cgi Oct 27, 2023
c9c4069
fix ece we , license upload status not completing in navBar, wait for…
jenbeckett Oct 27, 2023
812f7fc
fix Back button in Facility Info page
vietle-cgi Oct 27, 2023
7add4e9
remove unneeded code
jenbeckett Oct 27, 2023
fd5f7bd
fix Back button in Facility Info and Add Facility page page
vietle-cgi Oct 27, 2023
b5c57cd
updates for pull
jenbeckett Oct 27, 2023
c94d20e
Merge pull request #461 from bcgov/release-196-Viet2
jenbeckett Oct 27, 2023
91f3df4
Merge pull request #460 from bcgov/release-196-jb3
vietle-cgi Oct 27, 2023
f91913e
fixed new app, touched up some vue warn errors
jenbeckett Oct 30, 2023
1b8a76d
cleanup and commented out code removal
jenbeckett Oct 30, 2023
44b0f1b
updated working based on new screenshot
roblo-cgi Oct 30, 2023
a2ec0b4
ccfri 3015 and 3016 mtfi bugs
jenbeckett Oct 31, 2023
ae8c24d
one more fix for new applications
jenbeckett Oct 31, 2023
b960024
Merge pull request #462 from bcgov/branching-question-ccfri-1562
jenbeckett Oct 31, 2023
afc8076
Update MtfiSelectFacility.vue
roblo-cgi Oct 31, 2023
016c96e
Merge pull request #463 from bcgov/release-196-jb3
roblo-cgi Oct 31, 2023
d8aae8d
Update CurrentFeeVerification.vue
jenbeckett Oct 31, 2023
46002aa
CCFRI-350-pages-buttons-display
chendongluo Nov 1, 2023
747f445
CCFRI-335-377-Month-Picker-overflow
chendongluo Nov 1, 2023
8b88340
CCFRI-1122-funding-question-validation
chendongluo Nov 1, 2023
6371d4a
CCFRI-821-email-validation
chendongluo Nov 1, 2023
d487116
CCFRI-2696-updated-facility-with-blank-name
chendongluo Nov 1, 2023
6c2a66d
Merge branch 'release-196' into release-196-chendong
chendongluo Nov 1, 2023
36d0079
fixed the pcf update button issue
jenbeckett Nov 2, 2023
7ec834c
Merge pull request #464 from bcgov/release-196-jb3
roblo-cgi Nov 2, 2023
7a7796d
Changes made in local system for 1.9.6 release
poornimaaabhat Nov 2, 2023
88d8e1b
Merge branch 'release-196' into release-196-poornima
poornimaaabhat Nov 2, 2023
6fd2453
Removed local changes in package-lock.json
poornimaaabhat Nov 3, 2023
d0dc419
fixed spelling, simplified fn to check for active CR, remove new faci…
jenbeckett Nov 3, 2023
eb77835
wording change on info page
jenbeckett Nov 3, 2023
8bedd54
Updated FundAmount.vue
poornimaaabhat Nov 3, 2023
d301d4f
Update with upper case R in FundAmount.vue
poornimaaabhat Nov 3, 2023
c7635f9
Simplify updateNavBar action in navBar.js
chendongluo Nov 3, 2023
9dd709a
Update FamilyFunding.vue
poornimaaabhat Nov 4, 2023
0cc802d
fixed delete application button ccfri 3094
jenbeckett Nov 6, 2023
bf9eccc
Update the text field to whole number FamilyFunding.vue
poornimaaabhat Nov 6, 2023
024db8d
ccfri 2990 link renewORG page to report change page
jenbeckett Nov 6, 2023
5a7cd38
Addition of whole number rule Update FamilyFunding.vue
poornimaaabhat Nov 6, 2023
0371ffe
add scoped to style section of FacilitySearch page
vietle-cgi Nov 6, 2023
ff20e01
Merge branch 'release-196-chendong' of github.com:bcgov/EDUC-CCOF int…
vietle-cgi Nov 6, 2023
7744932
Merge branch 'release-196' into release-196-jb3
vietle-cgi Nov 6, 2023
a341162
wording
jenbeckett Nov 6, 2023
77a0756
Merge branch 'release-196-jb3' of https://github.com/bcgov/EDUC-CCOF …
jenbeckett Nov 6, 2023
ef3fba6
wording
jenbeckett Nov 6, 2023
dc5cd67
Update NewAppIntermediatePage.vue
jenbeckett Nov 6, 2023
da239cb
Merge pull request #468 from bcgov/release-196-jb3
vietle-cgi Nov 6, 2023
256da72
update wholeNumber rule to allow empty input
vietle-cgi Nov 7, 2023
5d7df25
Merge pull request #465 from bcgov/release-196-poornima
jenbeckett Nov 7, 2023
ce2ca06
Merge pull request #467 from bcgov/release-196-chendong
jenbeckett Nov 7, 2023
4e557bc
fixed a bug where RFI does not trigger immediately on a renewal
roblo-cgi Nov 7, 2023
4e246b4
Merge pull request #469 from bcgov/release-196-timing-issue-ccfri-3071
roblo-cgi Nov 7, 2023
b5a2e04
update to delete pcf
jenbeckett Nov 7, 2023
82f67c4
Merge branch 'release-196' of https://github.com/bcgov/EDUC-CCOF into…
jenbeckett Nov 7, 2023
21c17f3
CCFRI-3069 - update MTFI Info page - the user will not be able to cre…
vietle-cgi Nov 8, 2023
14903c1
Merge pull request #470 from bcgov/release-196-Viet
jenbeckett Nov 9, 2023
0fe854d
wip - language updates for certain fiscal years, ecewe question, bugf…
jenbeckett Nov 9, 2023
b1db47f
wording updates, language for specific year, update OOSC and OOSK labels
jenbeckett Nov 10, 2023
7739e68
improvment to showing language for historical years
jenbeckett Nov 10, 2023
fda3142
compile warmings fixed
jenbeckett Nov 10, 2023
479f96e
remove logs
jenbeckett Nov 10, 2023
95c5872
link fix, change label name for RFI so medians can still be found
jenbeckett Nov 10, 2023
9569a45
ok labeling working good now
jenbeckett Nov 10, 2023
d5414b3
Update app.js
roblo-cgi Nov 10, 2023
86ad854
Merge pull request #471 from bcgov/release-196-jb3
roblo-cgi Nov 10, 2023
6d0fc84
updated permissions on the tmp/npm log folder
roblo-cgi Nov 15, 2023
270bdd6
Merge pull request #473 from bcgov/release-196-docker-tmp-file-fix
jenbeckett Nov 15, 2023
bcf6381
testing with updated permissions on dockerfile
roblo-cgi Nov 15, 2023
d4d356f
Merge pull request #474 from bcgov/release-196-docker-tmp-file-fix
roblo-cgi Nov 15, 2023
9f420ac
Update Dockerfile
roblo-cgi Nov 15, 2023
0a2afab
banners to notify provider when viewing PCF while CR in progress
jenbeckett Nov 16, 2023
b9392bc
banners to notify provider when viewing PCF while CR in progress
jenbeckett Nov 16, 2023
d3495c5
update isreadonly to isLocked
jenbeckett Nov 16, 2023
33c47e0
added bcssa region links, updated heading on landing page to show ren…
jenbeckett Nov 20, 2023
5cd40b9
added ecewe summary dec logic
jenbeckett Nov 20, 2023
4b4860c
Merge pull request #476 from bcgov/release-196-jb3
jenbeckett Nov 20, 2023
6bcb430
CCFRI-2682 and CCFRI-2694 - update filterFacilityListForPCF to match …
vietle-cgi Nov 21, 2023
f145e05
Merge pull request #477 from bcgov/release-196-Viet
jenbeckett Nov 21, 2023
54f0bee
fixed RFI so deletes after fee reduction, ccfri 3339
jenbeckett Nov 28, 2023
287e7f6
removed spacing
jenbeckett Nov 28, 2023
c8a07c2
mtfi code moved so nav is happy when app is locked
jenbeckett Nov 28, 2023
3e0d077
Merge pull request #478 from bcgov/release-196-jb4
roblo-cgi Nov 28, 2023
619647b
updates so app doesn't break when viewing histocial CR's.
jenbeckett Nov 29, 2023
02094f9
removed 1 thing
jenbeckett Nov 29, 2023
e25895f
update isReadOnly summary Dec
jenbeckett Nov 29, 2023
09a682c
Merge pull request #479 from bcgov/release-196-jb4
roblo-cgi Nov 29, 2023
7a99913
Merge branch 'main' of github.com:bcgov/EDUC-CCOF into release-196-ma…
roblo-cgi Nov 29, 2023
fe5d3bf
Merge pull request #480 from bcgov/release-196-main-merge
jenbeckett Nov 30, 2023
e832904
timing fix for CCFRI-3071
roblo-cgi Nov 30, 2023
9dde3f6
fix for summary dec so it works on first time app no refresh
jenbeckett Nov 30, 2023
fbf34a0
hopefully fix mtfi
jenbeckett Nov 30, 2023
3df1a69
remove words landing page ccfri 3373
jenbeckett Dec 1, 2023
5fd43e0
Merge pull request #481 from bcgov/release-196-median-fee-bug
roblo-cgi Dec 1, 2023
a05ea43
Merge pull request #482 from bcgov/release-196-jb4
roblo-cgi Dec 1, 2023
1a89b8f
load cr store on renewal page
jenbeckett Dec 1, 2023
e5237f6
Merge branch 'release-196' of https://github.com/bcgov/EDUC-CCOF into…
jenbeckett Dec 1, 2023
91d53e7
Merge pull request #483 from bcgov/release-196-median-fee-bug
jenbeckett Dec 1, 2023
8fe12bc
update formatting new app
jenbeckett Dec 1, 2023
a76f428
fixed issue where closed facility not showing up on MTFI
roblo-cgi Dec 5, 2023
7e0be47
QA UAT Bugs
jenbeckett Dec 5, 2023
155e4d2
updated basefunding in facility Mixin
jenbeckett Dec 5, 2023
7a7b825
fix naming for oosc and oosck on renewal
jenbeckett Dec 6, 2023
7a62b25
Merge pull request #485 from bcgov/release-196-median-fee-bug
roblo-cgi Dec 6, 2023
7ddf0a9
Merge pull request #484 from bcgov/release-196-CCFRI-2694
jenbeckett Dec 6, 2023
301bf39
More UAT bugs
jenbeckett Dec 6, 2023
2eba475
comments
jenbeckett Dec 6, 2023
1e4197a
Merge pull request #486 from bcgov/release-196-jb5
roblo-cgi Dec 6, 2023
702584b
fixed bug so that update pcf shows on left tile when renew my funding…
roblo-cgi Dec 7, 2023
1197378
added timezone to deal with date offset
roblo-cgi Dec 7, 2023
7c26d68
Merge pull request #487 from bcgov/release-196-ccfri-3387
jenbeckett Dec 7, 2023
7aa6f8d
Merge pull request #488 from bcgov/release-196-ccfri-3386
jenbeckett Dec 7, 2023
8604583
resolved. also fixed navigation issues
roblo-cgi Dec 8, 2023
4a04fed
fixed file upload for change notification form add new fac
jenbeckett Dec 8, 2023
2f4a6c8
Merge pull request #489 from bcgov/release-196-ccfri-3393
jenbeckett Dec 8, 2023
127337b
remove
jenbeckett Dec 8, 2023
36e3347
Merge pull request #490 from bcgov/release-196-jb5
roblo-cgi Dec 8, 2023
ebdd6da
unlock for change noti
jenbeckett Dec 9, 2023
fe12344
update to mtfi closure date logic
jenbeckett Dec 10, 2023
414bc55
update to mtfi closure date logic
jenbeckett Dec 10, 2023
dbae5ee
updated ece-we so that public sector question is included. ensured e…
roblo-cgi Dec 12, 2023
80854ac
restrict date picker to only use dates within Fiscal Year
jenbeckett Dec 12, 2023
4eb94fb
date picker
jenbeckett Dec 12, 2023
cff3422
removed a log
jenbeckett Dec 12, 2023
ccdc581
removed a log
jenbeckett Dec 12, 2023
60915a0
prevented new applications from being renewed if not approved
roblo-cgi Dec 12, 2023
23bd952
Merge pull request #491 from bcgov/release-196-jb5
roblo-cgi Dec 12, 2023
702dbf0
Merge pull request #493 from bcgov/release-196-jb6
roblo-cgi Dec 12, 2023
2e9e915
Merge pull request #492 from bcgov/release-196-ccfri-3430
jenbeckett Dec 12, 2023
407cafe
Merge pull request #494 from bcgov/release-196-ccfri-3431
jenbeckett Dec 12, 2023
b889786
Update ReportChanges.vue
jenbeckett Dec 12, 2023
2c62d04
Hide Funding agreement number for 2024 25 applications
jenbeckett Dec 13, 2023
54fada6
Merge pull request #495 from bcgov/release-196-jb6
jenbeckett Dec 13, 2023
0f24dac
landing page buttons
jenbeckett Dec 15, 2023
3860dfa
remove blue text on renewal card landing page
jenbeckett Dec 15, 2023
b1182ff
button
jenbeckett Dec 15, 2023
2119cea
update view button
jenbeckett Dec 15, 2023
47848a1
updating display renewl logic
jenbeckett Dec 15, 2023
c7a0ae8
remove year label for renew app brand new application, hide view appl…
jenbeckett Dec 15, 2023
1ecac3f
big update to allow renewal based on what's next in program year, not…
jenbeckett Dec 15, 2023
c4b2c1e
added null checks in router
jenbeckett Dec 15, 2023
02e8164
Merge pull request #496 from bcgov/release-196-jb6
jenbeckett Dec 15, 2023
b02252f
changed substring to replace
jenbeckett Dec 15, 2023
ad76fed
Merge branch 'release-196' of https://github.com/bcgov/EDUC-CCOF into…
jenbeckett Dec 15, 2023
986e711
update wording
jenbeckett Dec 15, 2023
a249edd
update code so facility does not keep saving post code
jenbeckett Dec 15, 2023
31b0998
post code update
jenbeckett Dec 18, 2023
fef15b7
ccfri 3444 mapping for Ever applied for CCOF question incorrectly loa…
jenbeckett Dec 18, 2023
cf0656f
fix renew button
jenbeckett Dec 19, 2023
9af943e
more renewal button updates
jenbeckett Dec 20, 2023
71278ff
updates for Renewal button and CCOF status text
jenbeckett Dec 20, 2023
7aa8de8
fixed unlock not working for ccfri NEW fac CR, Update PCF button, add…
jenbeckett Dec 21, 2023
5faa31b
remove
jenbeckett Dec 21, 2023
0477ff4
Merge pull request #497 from bcgov/release-196-jb7
jenbeckett Dec 21, 2023
b238673
Add program year label to months in Existing Fees Grid
jenbeckett Dec 27, 2023
fc00330
Update ExistingFacilityFees.vue
jenbeckett Dec 27, 2023
06fbbe3
Added more validation on Closure Dates
jenbeckett Dec 28, 2023
d44ac35
Update CurrentFeeVerification.vue date validations to run more
jenbeckett Dec 28, 2023
247751f
Merge pull request #498 from bcgov/jenbeckett-validation
jenbeckett Dec 28, 2023
f406510
Update AddNewFees validation
jenbeckett Dec 28, 2023
6a8361f
Update CurrentFeeVerification.vue date validation
jenbeckett Dec 28, 2023
2f990bc
Made a facility header component to be re used across many pages disp…
jenbeckett Jan 5, 2024
82dfb81
spacing
jenbeckett Jan 5, 2024
ca15976
Merge pull request #499 from bcgov/release-196-jb8
jenbeckett Jan 5, 2024
f273c61
Wording change addNewFees
jenbeckett Jan 11, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 53 additions & 7 deletions backend/src/components/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ async function postClosureDates(dates, ccfriApplicationGuid, res) {

async function getECEWEApplication(req, res) {
try {
let operation = 'ccof_applications(' + req.params.applicationId + ')?$select=ccof_ecewe_optin,ccof_ecewe_employeeunion,ccof_ecewe_selecttheapplicablefundingmodel,ccof_ecewe_selecttheapplicablesector,ccof_ecewe_confirmation&$expand=ccof_ccof_application_ccof_applicationecewe_application($select=ccof_name,_ccof_facility_value,ccof_optintoecewe,statuscode)';
let operation = 'ccof_applications(' + req.params.applicationId + ')?$select=ccof_ecewe_optin,ccof_ecewe_employeeunion,ccof_ecewe_selecttheapplicablefundingmodel,ccof_ecewe_selecttheapplicablesector,ccof_public_sector_employer,ccof_ecewe_confirmation&$expand=ccof_ccof_application_ccof_applicationecewe_application($select=ccof_name,_ccof_facility_value,ccof_optintoecewe,statuscode)';
let eceweApp = await getOperation(operation);
eceweApp = new MappableObjectForFront(eceweApp, ECEWEApplicationMappings);
let forFrontFacilities = [];
Expand Down Expand Up @@ -705,16 +705,37 @@ async function getMTFIChangeData(changeActionId) {
});
return mtfi;
}
//and Microsoft.Dynamics.CRM.In(PropertyName='_ccof_application_value',PropertyValues=[${applicationId}]));
async function getChangeRequestsFromApplicationId(applicationIds){

let str = '[';

const regex = new RegExp('([^,]+)' , 'g');
const found = applicationIds.match(regex);
found.forEach((app, index) => {
str = str + `'${app}'`;
if (index != found.length -1 ){
str = str + ',';
}
else{
str = str + ']';
}
});

log.info(str);

async function getChangeRequestsFromApplicationId(applicationId){
try {
let operation = `ccof_change_requests?$expand=ccof_change_action_change_request&$select=${getMappingString(ChangeRequestMappings)}&$filter=_ccof_application_value eq ${applicationId}`;
let operation = `ccof_change_requests?$expand=ccof_change_action_change_request&$select=${getMappingString(ChangeRequestMappings)}&$filter=(Microsoft.Dynamics.CRM.In(PropertyName='ccof_application',PropertyValues=${str}))`;
//let operation = `ccof_change_requests?$expand=ccof_change_action_change_request&$select=${getMappingString(ChangeRequestMappings)}&$filter=_ccof_application_value eq ${applicationId}`;
let changeRequests = await getOperation(operation);
changeRequests = changeRequests.value;

// log.info('ALL CHANGE REQZ');
// log.info(changeRequests);

let payload = [];

log.verbose(changeRequests);
//log.verbose(changeRequests);
await Promise.all(changeRequests.map(async (request) => {

let req = new MappableObjectForFront(request, ChangeRequestMappings).toJSON();
Expand All @@ -735,11 +756,11 @@ async function getChangeRequestsFromApplicationId(applicationId){
payload.push(req);
}));

log.info('final payload', payload);
//log.info('final payload', payload);
return payload;
} catch (e) {
log.error('An error occurred while getting change request', e);
return res.status(HttpStatus.INTERNAL_SERVER_ERROR).json(e.data ? e.data : e?.status);
throw e;
}

}
Expand All @@ -758,6 +779,30 @@ async function getChangeRequest(req, res){

}

async function deletePcfApplication(req, res){
try {
let operation = `ccof_applications(${req.params.applicationId})?$expand=ccof_application_basefunding_Application($select=_ccof_facility_value)`;
let application = await getOperation(operation);

//loop thru to grab facility ID's and delete all of them
await Promise.all(application['ccof_application_basefunding_Application'].map(async (facility) => {
await deleteOperationWithObjectId('accounts', facility['_ccof_facility_value']);
//log.info(response);
}));

//delete the application
await deleteOperationWithObjectId('ccof_applications', req.params.applicationId);

//and delete the org. We must delete the org otherwise the user will be linked to multiple orgs in dynamics
await deleteOperationWithObjectId('accounts', application['_ccof_organization_value']);

return res.status(HttpStatus.OK).json();
} catch (e) {
log.error('An error occurred while deleting PCF', e);
return res.status(HttpStatus.INTERNAL_SERVER_ERROR).json(e.data ? e.data : e?.status);
}
}

module.exports = {
updateCCFRIApplication,
upsertParentFees,
Expand All @@ -772,5 +817,6 @@ module.exports = {
getChangeRequest,
patchCCFRIApplication,
deleteCCFRIApplication,
printPdf
printPdf,
deletePcfApplication
};
51 changes: 41 additions & 10 deletions backend/src/components/changeRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
const log = require('./logger');
const { MappableObjectForFront, MappableObjectForBack, getMappingString } = require('../util/mapping/MappableObject');
const { ChangeRequestMappings, ChangeActionRequestMappings, MtfiMappings, NewFacilityMappings } = require('../util/mapping/ChangeRequestMappings');
const { UserProfileBaseCCFRIMappings } = require('../util/mapping/Mappings');
const { UserProfileBaseCCFRIMappings, UserProfileBaseFundingMappings, UserProfileECEWEMappings, UserProfileApplicationMappings} = require('../util/mapping/Mappings');
const { ChangeRequestUnlockMapping } = require('../util/mapping/ChangeRequestMappings');

const { mapFacilityObjectForBack } = require('./facility');
const { printPdf } = require('./application');
Expand Down Expand Up @@ -32,6 +33,34 @@ function mapChangeRequestForBack(data, changeType) {
return changeRequestForBack;
}

async function getChangeActionNewFacilitityDetails(changeActionId) {
if (changeActionId) {
try {
let operation = `ccof_change_request_new_facilities?$filter=_ccof_change_action_value eq '${changeActionId}'&$expand=ccof_ccfri($select=${getMappingString(UserProfileBaseCCFRIMappings)}),ccof_ecewe($select=${getMappingString(UserProfileECEWEMappings)}),ccof_CCOF($select=${getMappingString(UserProfileBaseFundingMappings)})`;
let changeActionDetails = await getOperation(operation);
let details = changeActionDetails?.value;

log.info('!!!!!!!!!!');
log.info(details);
let retVal = [];
details?.forEach(el => {
let data = new MappableObjectForFront(el, NewFacilityMappings).toJSON();
data.ccfri = new MappableObjectForFront(el.ccof_ccfri, UserProfileBaseCCFRIMappings).toJSON();
data.ecewe = new MappableObjectForFront(el.ccof_ecewe, UserProfileECEWEMappings).toJSON();
log.info(data.ecewe);
data.baseFunding = new MappableObjectForFront(el.ccof_CCOF, UserProfileBaseFundingMappings).toJSON();
retVal.push(data);
});
return retVal;
} catch (e) {
log.error('Unable to get change action details',e);
}
} else {
return undefined;
}
}


// get Change Action details. depending on the entity, we may want to get details 2 level below change action
async function getChangeActionDetails(changeActionId, changeDetailEntity, changeDetailMapper, joiningTable, joiningTableMapping) {
if (changeActionId && changeDetailEntity && changeDetailMapper) {
Expand Down Expand Up @@ -65,6 +94,7 @@ async function getChangeActionDetails(changeActionId, changeDetailEntity, change

async function mapChangeRequestObjectForFront(data) {
let retVal = new MappableObjectForFront(data, ChangeRequestMappings).toJSON();

let changeList = [];
await Promise.all( retVal.changeActions?.map(async (el) => {
let changeAction = new MappableObjectForFront(el, ChangeActionRequestMappings).toJSON();
Expand All @@ -74,10 +104,13 @@ async function mapChangeRequestObjectForFront(data) {
item.ccfriStatus = getLabelFromValue(item.ccfriStatus, CCFRI_STATUS_CODES, 'NOT STARTED');
});
changeAction.mtfi = mtfi;
} else if (changeAction.changeType == CHANGE_REQUEST_TYPES.NEW_FACILITY) {
const newFacilities = await getChangeActionDetails(changeAction.changeActionId, 'ccof_change_request_new_facilities', NewFacilityMappings);
}
else if (changeAction.changeType == CHANGE_REQUEST_TYPES.NEW_FACILITY) {
const newFacilities = await getChangeActionNewFacilitityDetails(changeAction.changeActionId);
changeAction.newFacilities = newFacilities;
}
let unlockVals = new MappableObjectForFront(el, ChangeRequestUnlockMapping).toJSON();
changeAction = {...changeAction, ...unlockVals};
changeList.push(changeAction);
}));
retVal.changeActions = changeList;
Expand All @@ -89,16 +122,12 @@ async function mapChangeRequestObjectForFront(data) {

// get Change Request
async function getChangeRequest(req, res) {
log.info('get changeRequest called');

try {
let operation = `ccof_change_requests(${req.params.changeRequestId})?$expand=ccof_change_action_change_request($select=ccof_change_actionid,statuscode,ccof_changetype,createdon)`;
let operation = `ccof_change_requests(${req.params.changeRequestId})?$expand=ccof_change_action_change_request($select=ccof_change_actionid,statuscode,ccof_changetype,createdon,ccof_unlock_ecewe,ccof_unlock_ccof,ccof_unlock_supporting_document,ccof_unlock_other_changes_document,ccof_unlock_change_request,ccof_unlock_licence_upload)`;
let changeRequest = await getOperation(operation);
changeRequest = await mapChangeRequestObjectForFront(changeRequest);
changeRequest.providerType = getLabelFromValue(changeRequest.providerType , ORGANIZATION_PROVIDER_TYPES);
changeRequest.externalStatus = getLabelFromValue(changeRequest.externalStatus , CHANGE_REQUEST_EXTERNAL_STATUS_CODES);
log.info(changeRequest);
log.info(CHANGE_REQUEST_EXTERNAL_STATUS_CODES);
return res.status(HttpStatus.OK).json(changeRequest);
} catch (e) {
console.log('e', e);
Expand Down Expand Up @@ -146,7 +175,7 @@ async function createChangeRequest(req, res) {
else if(changeType === 'PDF_CHANGE'){
changeType = CHANGE_REQUEST_TYPES.PDF_CHANGE;
}
log.info('change type', changeType);
//log.info('change type', changeType);
changeRequest = mapChangeRequestForBack(changeRequest, changeType);
const changeRequestId = await postOperation('ccof_change_requests', changeRequest);
let operation = `ccof_change_requests(${changeRequestId})?$select=ccof_change_requestid&$expand=ccof_change_action_change_request($select=ccof_change_actionid,statuscode)`;
Expand Down Expand Up @@ -313,8 +342,10 @@ async function getChangeRequestMTFIByCcfriId(req, res){
let operation = `ccof_applicationccfris(${req.params.ccfriId})?$expand=ccof_change_request_mtfi_application_ccfri`;
let response = await getOperation(operation);
let mtfiDetails = [];
let rfiDetails = new MappableObjectForFront(response, UserProfileBaseCCFRIMappings).toJSON();
//Add in the rfi details mapping so on the front when we update hasRFI for the first time, we have the value needed to update it
response?.ccof_change_request_mtfi_application_ccfri?.forEach(mtfiFacility => {
mtfiDetails.push(new MappableObjectForFront(mtfiFacility, MtfiMappings).toJSON());
mtfiDetails.push({...new MappableObjectForFront(mtfiFacility, MtfiMappings).toJSON(), ...rfiDetails});
});
return res.status(HttpStatus.OK).json(mtfiDetails);
}
Expand Down
29 changes: 22 additions & 7 deletions backend/src/components/facility.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,13 @@ function mapFacilityObjectForBack(data) {
if (facilityForBack.ccof_facilitystartdate) {
facilityForBack.ccof_facilitystartdate = `${facilityForBack.ccof_facilitystartdate}-01-01`;
}

if (facilityForBack.ccof_licensestartdate) {
facilityForBack.ccof_licensestartdate = facilityForBack.ccof_licensestartdate + 'T12:00:00-07:00';
}
if (data.hasReceivedFunding === 'no') {
facilityForBack.ccof_everreceivedfundingundertheccofprogram = 100000000;
} else if (data.hasReceivedFunding === 'yes') {
facilityForBack.ccof_everreceivedfundingundertheccofprogram = 100000001;
} else if (data.hasReceivedFunding === 'yes') {
facilityForBack.ccof_everreceivedfundingundertheccofprogram = 100000000;
} else if (data.hasReceivedFunding === 'yesFacility') {
facilityForBack.ccof_everreceivedfundingundertheccofprogram = 100000002;
} else if (data.hasReceivedFunding) {
Expand All @@ -60,9 +62,9 @@ function mapFacilityObjectForFront(data) {
let obj = new MappableObjectForFront(data, FacilityMappings).toJSON();

//TODO: map this if it is returned from dynamics
if (data.ccof_everreceivedfundingundertheccofprogram === 100000000) {
if (data.ccof_everreceivedfundingundertheccofprogram === 100000001) {
obj.hasReceivedFunding = 'no';
} else if (data.ccof_everreceivedfundingundertheccofprogram === 100000001) {
} else if (data.ccof_everreceivedfundingundertheccofprogram === 100000000) {
obj.hasReceivedFunding = 'yes';
} else if (data.ccof_everreceivedfundingundertheccofprogram === 100000002) {
obj.hasReceivedFunding = 'yesFacility';
Expand Down Expand Up @@ -169,6 +171,17 @@ async function getFacilityChildCareTypes(req, res){
return res.status(HttpStatus.INTERNAL_SERVER_ERROR).json(e.data? e.data : e?.status );
}
}
//a wrapper fn as getCCFRIClosureDates does not take in a req/res
async function returnCCFRIClosureDates(req, res){
try {
const dateData = {dates: await getCCFRIClosureDates(req.params.ccfriId)};
return res.status(HttpStatus.OK).json(dateData);

} catch (e) {
log.error('failed with error', e);
return res.status(HttpStatus.INTERNAL_SERVER_ERROR).json(e.data? e.data : e?.status );
}
}

async function getCCFRIClosureDates(ccfriId){
const url = `ccof_applicationccfris(${ccfriId})?$select=ccof_name,&$expand=ccof_ccfri_closure_application_ccfri`;
Expand Down Expand Up @@ -379,9 +392,10 @@ async function getApprovedParentFees(req, res) {
}
);
}); //end for each

const retVal = {
facilityId: facilityId,
childCareTypes: childCareTypes
childCareTypes: childCareTypes,
};
return res.status(200).json(retVal);
} catch (e) {
Expand All @@ -402,6 +416,7 @@ module.exports = {
updateFacilityLicenseType,
getCCFRIClosureDates,
mapFacilityObjectForBack,
getApprovedParentFees
getApprovedParentFees,
returnCCFRIClosureDates
};

8 changes: 3 additions & 5 deletions backend/src/components/message.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,15 @@ function sortByPropertyDesc(property){

async function getAllMessages(req, res) {
try {
let operation = 'emails?$select=activityid,createdon,description,lastopenedtime ,_regardingobjectid_value,subject&$expand=regardingobjectid_account_email($select=accountid,accountnumber,name)&$filter=(regardingobjectid_account_email/accountid eq ' + req.params.organizationId + ' and statecode eq 1)';
let operation = 'emails?$select=activityid,createdon,description,lastopenedtime,ccof_program_year,_regardingobjectid_value,subject&$expand=regardingobjectid_account_email($select=accountid,accountnumber,name)&$filter=(regardingobjectid_account_email/accountid eq ' + req.params.organizationId + ' and statecode eq 1)';
log.info('operation: ', operation);
let operationResponse = await getOperation(operation);
operationResponse.value.sort(sortByPropertyDesc('createdon'));
let allMessages = [];
operationResponse.value.forEach(item => {
let message = mapMessageObjectForFront(item);
if (message.lastOpenedTime)
message['isRead'] = true;
else
message['isRead'] = false;
message.isRead = message.lastOpenedTime ? true : false;
message.programYearValue = message.programYearValue?.replace(/[^\d/]/g, '');
allMessages.push(message);
});
return res.status(HttpStatus.OK).json(allMessages);
Expand Down
26 changes: 23 additions & 3 deletions backend/src/components/rfiApplication.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,25 @@ function formatDate(data, columnName) {
return data;
}

async function deleteRfiApplication(req, res){
let query = `ccof_rfipfis?$filter=(_ccof_applicationccfri_value eq ${req.params.ccfriId} and statuscode eq 1)`;

try {
const response = await getOperation(query);

//there should only every be one RFI application per ccfri app.
//if array empty - don't try to delete anything.
if (response?.value?.length > 0) {
log.info(response.value[0]);
await deleteOperationWithObjectId('ccof_rfipfis', response.value[0].ccof_rfipfiid);
}

return res.status(HttpStatus.OK).json({});
} catch (e) {
log.error(e);
return res.status(HttpStatus.INTERNAL_SERVER_ERROR).json(e.data? e.data : e?.status );
}
}

async function getRFIApplication(req, res) {
let query = `ccof_rfipfis?$filter=(_ccof_applicationccfri_value eq ${req.params.ccfriId} and statuscode eq 1)&$expand=ccof_ccof_rfipfi_ccof_rfi_pfi_fee_history_deta($select=ccof_feeafterincrease),ccof_ccof_rfipfi_ccof_rfipfiserviceexpansiondetail_rfipfi,ccof_rfi_pfi_other_funding_RFI_PFI, ccof_rfi_pfi_dcs_wi_detail_RFI_PFI_Detail,ccof_ccof_rfipfi_ccof_rfipfiexpenseinfo_rfipfi,ccof_rfipfi_ccof_rfipfi_IndegenousService`;
Expand All @@ -71,7 +90,7 @@ async function getRFIApplication(req, res) {
rfiApplication.data['expenseList'] = response.value[0].ccof_ccof_rfipfi_ccof_rfipfiexpenseinfo_rfipfi?.map(el=> formatDate(new MappableObjectForFront(el,ExpenseInformationMappings).data, 'date'));
rfiApplication.data['fundingList'] = response.value[0].ccof_rfi_pfi_other_funding_RFI_PFI?.map(el=> formatDate(new MappableObjectForFront(el,OtherFundingProgramMappings).data, 'date'));
rfiApplication.data['indigenousExpenseList'] = response.value[0].ccof_rfipfi_ccof_rfipfi_IndegenousService?.map(el=> formatDate(new MappableObjectForFront(el,IndigenousExpenseMappings).data, 'date'));

return res.status(HttpStatus.OK).json(rfiApplication);
} else {
return res.status(HttpStatus.OK).json({});
Expand Down Expand Up @@ -158,7 +177,7 @@ async function updateRFIApplication(req, res) {
payload['ccof_rfipfi@odata.bind'] = `/ccof_rfipfis(${rfipfiid})`;
await postOperation('ccof_rfipfiexpenseinfos', payload);
await sleep(100);
});
});
}

//rfipfiid, entityName, selectorName, filterName) {
Expand All @@ -172,7 +191,7 @@ async function updateRFIApplication(req, res) {
payload['ccof_rfipfi_IndegenousServiceExpansion@odata.bind'] = `/ccof_rfipfis(${rfipfiid})`;
await postOperation('ccof_rfipfiserviceexpansionindigenouscommunities', payload);
await sleep(100);
});
});
}

return res.status(HttpStatus.OK).json(friApplicationResponse);
Expand Down Expand Up @@ -218,4 +237,5 @@ module.exports = {
createRFIApplication,
updateRFIApplication,
getRFIMedian,
deleteRfiApplication
};
Loading
Loading