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

Upgrade to node18 and ng15 #3238

Merged
merged 228 commits into from
Jan 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
228 commits
Select commit Hold shift + click to select a range
e812f0f
upgrade yarn
codaimaster Aug 23, 2023
b0ac2af
upgrade to node-18
codaimaster Aug 23, 2023
c3b0776
temporarily skip CVE checks
codaimaster Aug 23, 2023
40b4d84
link libs at local
codaimaster Aug 23, 2023
7925ad6
ng update @angular/core@12 @angular/cli@12 --force
codaimaster Aug 23, 2023
f22d3e6
ng update @angular/material@12 --force
codaimaster Aug 23, 2023
959c3a5
undo local links
codaimaster Aug 24, 2023
1afcaae
ng update @angular/core@13 @angular/cli@13 --force
codaimaster Aug 24, 2023
1cc1dee
ng update @angular/material@13 --force
codaimaster Aug 24, 2023
788fcb1
ng update @angular/core@14 @angular/cli@14 --force
codaimaster Aug 24, 2023
f3f078b
ng update @angular/core@14 @angular/cli@14 --force
codaimaster Aug 24, 2023
dcdaee9
ng update @angular/material@14 --force
codaimaster Aug 24, 2023
7f97da8
misc upgrades to align with AO's upgrade
codaimaster Aug 24, 2023
6be57e4
ng update @angular/core@15 @angular/cli@15 --force
codaimaster Aug 24, 2023
787ff27
ng update @angular/material@15 --force
codaimaster Aug 24, 2023
0ac03c3
link libs local
codaimaster Aug 24, 2023
e648449
ignore angular cache
codaimaster Aug 24, 2023
52d8122
fix build
codaimaster Aug 24, 2023
28a59ec
fix build
codaimaster Aug 24, 2023
2e7007c
Merge branch 'master' into EXUI-629_EXUI-633_upgrade-node18-and-ng15
codaimaster Aug 29, 2023
f85cb8a
EXUI-629_EXUI-633_upgrade-node18-and-ng15: Setting Preview Deployment ID
codaimaster Aug 29, 2023
a4e87b2
upgrade yarn
codaimaster Aug 23, 2023
d243a87
upgrade to node-18
codaimaster Aug 23, 2023
ea66061
temporarily skip CVE checks
codaimaster Aug 23, 2023
a6fc547
link libs at local
codaimaster Aug 23, 2023
99997a8
ng update @angular/core@12 @angular/cli@12 --force
codaimaster Aug 23, 2023
325288e
ng update @angular/material@12 --force
codaimaster Aug 23, 2023
bd576d8
undo local links
codaimaster Aug 24, 2023
8b909a3
ng update @angular/core@13 @angular/cli@13 --force
codaimaster Aug 24, 2023
a641242
ng update @angular/material@13 --force
codaimaster Aug 24, 2023
ae95f72
ng update @angular/core@14 @angular/cli@14 --force
codaimaster Aug 24, 2023
86a2e2e
ng update @angular/core@14 @angular/cli@14 --force
codaimaster Aug 24, 2023
8587dee
ng update @angular/material@14 --force
codaimaster Aug 24, 2023
19a62a7
misc upgrades to align with AO's upgrade
codaimaster Aug 24, 2023
236bab7
ng update @angular/core@15 @angular/cli@15 --force
codaimaster Aug 24, 2023
0676c51
ng update @angular/material@15 --force
codaimaster Aug 24, 2023
979c4d6
link libs local
codaimaster Aug 24, 2023
c40fdb5
ignore angular cache
codaimaster Aug 24, 2023
af6e14c
fix build
codaimaster Aug 24, 2023
4a75ec0
fix build
codaimaster Aug 24, 2023
60230e6
fresh yarn install after cleanup
codaimaster Aug 29, 2023
bcb2eeb
temp fix local build
codaimaster Aug 29, 2023
4cee70e
Merge remote-tracking branch 'origin/EXUI-629_EXUI-633_upgrade-node18…
codaimaster Sep 1, 2023
6706805
update yarn lock for upgraded dependencies
codaimaster Sep 1, 2023
a76a2be
change node-sass to sass
codaimaster Sep 1, 2023
0145624
restore temp removals
codaimaster Sep 1, 2023
3d583a8
temporarily use ccpay web from local
codaimaster Sep 4, 2023
1cf8f21
fix scss issue and temporarily use ui toolkit from local
codaimaster Sep 4, 2023
277b172
update yarn lock
codaimaster Sep 4, 2023
d9fe857
remove local dist folders
codaimaster Sep 5, 2023
89883c6
use prereleases of libs
codaimaster Sep 5, 2023
9ee9e1e
Merge branch 'master' into EXUI-629_EXUI-633_upgrade-node18-and-ng15
codaimaster Sep 5, 2023
bf48b5c
use prereleases of libs
codaimaster Sep 5, 2023
437d754
fix compilation issues
codaimaster Sep 5, 2023
d6cda13
fix build issues
codaimaster Sep 5, 2023
41120ea
disable converage
codaimaster Sep 5, 2023
8692b9f
use yarn 3.5.0
codaimaster Sep 5, 2023
8814a9b
use upgraded rpx translate
codaimaster Sep 5, 2023
367a414
Merge branch 'master' into EXUI-629_EXUI-633_upgrade-node18-and-ng15
codaimaster Sep 7, 2023
27c2097
EXUI-629_EXUI-633_upgrade-node18-and-ng15: Setting Preview Deployment ID
codaimaster Sep 7, 2023
5010477
fix coverage script
codaimaster Sep 8, 2023
45c9c3f
Merge branch 'EXUI-629_EXUI-633_upgrade-node18-and-ng15' of github.co…
codaimaster Sep 8, 2023
108be49
temp include only some tests
codaimaster Sep 8, 2023
63f2def
Merge branch 'master' into EXUI-629_EXUI-633_upgrade-node18-and-ng15
codaimaster Sep 12, 2023
dfdc8e4
import 'of' from 'rxjs'
codaimaster Sep 12, 2023
6d22094
Merge branch 'EXUI-629_EXUI-633_upgrade-node18-and-ng15' of github.co…
codaimaster Sep 12, 2023
27f59ec
fix compile error and style
codaimaster Sep 12, 2023
e517e5d
clean up
codaimaster Sep 12, 2023
a1c4c16
fix stlye
codaimaster Sep 12, 2023
fc4b204
fix stlye
codaimaster Sep 12, 2023
7e957dd
suppress Effect and Resolve being deprecated
codaimaster Sep 13, 2023
a7022ff
upgrade mv to new rc
codaimaster Sep 13, 2023
db950ec
fix test and lint configs
codaimaster Sep 13, 2023
5d85a2e
fix tests failing upon ngDestroy
codaimaster Sep 13, 2023
c38a52b
temp disable test with error 'You provided 'function wrap() bla bla'
codaimaster Sep 13, 2023
c65628a
fix test failures with 'Injector has already been destroyed.'
codaimaster Sep 13, 2023
8cc601b
fix further test failures
codaimaster Sep 13, 2023
b377737
temp remove spec file with 'Uncaught ReferenceError: process is not d…
codaimaster Sep 13, 2023
931036a
Merge branch 'master' into EXUI-629_EXUI-633_upgrade-node18-and-ng15
codaimaster Sep 13, 2023
5f56e5a
temp disable failing test
codaimaster Sep 13, 2023
b92e39d
temp disable failing test
codaimaster Sep 13, 2023
f67ddec
temp disable failing test
codaimaster Sep 13, 2023
25f7336
fix failing tests
codaimaster Sep 13, 2023
6ab60cf
temp remove spec file with 'Uncaught ReferenceError: process is not d…
codaimaster Sep 14, 2023
1cc846a
temp disable failing tests
codaimaster Sep 14, 2023
dcd9174
fix failing effect tests
codaimaster Sep 14, 2023
b6fb01a
fix failing tests
codaimaster Sep 14, 2023
e4a01ff
temp disable failing test
codaimaster Sep 14, 2023
8bbb700
temp remove failing specs
codaimaster Sep 14, 2023
82e5bec
Merge branch 'master' into EXUI-629_EXUI-633_upgrade-node18-and-ng15
olusegz07 Sep 28, 2023
2da305f
yarn.lock updated
olusegz07 Sep 28, 2023
d28fc02
Merge branch 'master' into EXUI-629_EXUI-633_upgrade-node18-and-ng15
olusegz07 Sep 29, 2023
aa1b437
task: EXUI-845 - yarn-audit-known-issues file updated
olusegz07 Sep 29, 2023
2c7b7de
resolve issue with smoke test
olusegz07 Oct 2, 2023
b8ab3d9
Bumping chart version/ fixing aliases
hmcts-jenkins-j-to-z[bot] Oct 2, 2023
7658ae3
task: EXUI-845 - yarn-audit-known-issues file updated
olusegz07 Sep 29, 2023
952d91e
Merge branch 'task/EXUI-845-yarn-audit-known-issues' of https://githu…
olusegz07 Oct 2, 2023
2077440
Revert "Merge branch 'task/EXUI-845-yarn-audit-known-issues' of https…
olusegz07 Oct 2, 2023
4e06122
Bumping chart version/ fixing aliases
hmcts-jenkins-j-to-z[bot] Oct 2, 2023
68ba6aa
Updated package.json
olusegz07 Oct 2, 2023
6c87165
Merge branch 'task/EXUI-845-yarn-audit-known-issues' of https://githu…
olusegz07 Oct 2, 2023
372454d
Updated package.json
olusegz07 Oct 2, 2023
00603b8
Merge pull request #3302 from hmcts/task/EXUI-845-yarn-audit-known-is…
olusegz07 Oct 2, 2023
a289e98
update yarn-audit-known-issues file
olusegz07 Oct 3, 2023
3b50eab
fix: EXUI-925 fix functional unit test
olusegz07 Oct 3, 2023
5370700
Merge branch 'master' into fix/EXUI-925-functional-unit-test
olusegz07 Oct 4, 2023
65051ce
fix unhandled exception error
olusegz07 Oct 4, 2023
8a0f452
Merge branch 'master' into EXUI-629_EXUI-633_upgrade-node18-and-ng15
olusegz07 Oct 4, 2023
b31aa7d
fixing faiing build.
MunishSharmaHMCTS Oct 4, 2023
89ea0bf
Merge commit '8a0f452a5f02e578a4ec2fe372f5ebb0523d5670' into EXUI-629…
MunishSharmaHMCTS Oct 4, 2023
e60e7ba
package.json update
olusegz07 Oct 4, 2023
1f17030
reverting file
MunishSharmaHMCTS Oct 4, 2023
e511ea8
missing change
MunishSharmaHMCTS Oct 4, 2023
9fc2cd9
missing buildOptimizer in development
MunishSharmaHMCTS Oct 4, 2023
fbcfc37
Merge branch 'EXUI-629_EXUI-633_upgrade-node18-and-ng15' into fix/EXU…
olusegz07 Oct 5, 2023
cbd9a7b
package.json updated
olusegz07 Oct 5, 2023
4690263
Code tidy
olusegz07 Oct 5, 2023
4a96cf7
Merge pull request #3311 from hmcts/EXUI-629-FailingBuildFixes
olusegz07 Oct 5, 2023
50f8041
Merge branch 'EXUI-629_EXUI-633_upgrade-node18-and-ng15' into fix/EXU…
olusegz07 Oct 5, 2023
3ce0990
package.json update
olusegz07 Oct 9, 2023
d2c9cd2
CUSTOM_ELEMENTS_SCHEMA for PaymentLib
MunishSharmaHMCTS Oct 9, 2023
fc8e266
Fix breaking test
olusegz07 Oct 9, 2023
dd80a30
test config updated
olusegz07 Oct 10, 2023
a220125
audit file updated
olusegz07 Oct 10, 2023
8f2fa4b
fixes for broken test
olusegz07 Oct 10, 2023
7490687
updated chart version to 3.0.0
olusegz07 Oct 10, 2023
cdd4492
appTestConfig updated
olusegz07 Oct 11, 2023
4f06d76
yarn aduit file updated
olusegz07 Oct 11, 2023
b18388e
Testcase scenario updated
olusegz07 Oct 11, 2023
9f3b59b
Bumping chart version/ fixing aliases
hmcts-jenkins-j-to-z[bot] Oct 12, 2023
7dcbccd
use legacy angular material to fix broken test
olusegz07 Oct 12, 2023
89ced7b
Code tidy
olusegz07 Oct 13, 2023
908dacd
puppeteer config updated
olusegz07 Oct 13, 2023
b689296
fix: EXUI-933 - Fix issue with header
olusegz07 Oct 16, 2023
cde2666
Bumping chart version/ fixing aliases
hmcts-jenkins-j-to-z[bot] Oct 16, 2023
cca1a4a
Merge branch 'master' into EXUI-629_EXUI-633_upgrade-node18-and-ng15
olusegz07 Oct 16, 2023
13fbe2e
Merge branch 'EXUI-629_EXUI-633_upgrade-node18-and-ng15' of https://g…
olusegz07 Oct 16, 2023
6659bfc
fix broken tests and code tidy, yarn audit file updated, package.json…
olusegz07 Oct 13, 2023
0b04697
Merge branch 'master' into fix/EXUI-925-functional-unit-test
olusegz07 Oct 19, 2023
d59a1db
yarn audit file updated
olusegz07 Oct 19, 2023
91cfaff
update package json
olusegz07 Oct 23, 2023
0745950
update package json
olusegz07 Oct 23, 2023
6701dc0
update package json
olusegz07 Oct 23, 2023
fd12d20
update package json
olusegz07 Oct 23, 2023
e55cc9d
update package json
olusegz07 Oct 23, 2023
7ec873a
update package json
olusegz07 Oct 23, 2023
8b33500
package.json updated
olusegz07 Oct 23, 2023
340a3e9
package.json updated
olusegz07 Oct 23, 2023
d55d6d6
package.json updated
olusegz07 Oct 23, 2023
44d0746
package.json updated
olusegz07 Oct 24, 2023
930b3dc
package.json updated
olusegz07 Oct 24, 2023
2b40958
package.json updated
olusegz07 Oct 24, 2023
e698f47
package.json updated. Fixed test
olusegz07 Oct 24, 2023
04cbde2
Updated package.json
olusegz07 Oct 24, 2023
c91617b
Revert "Updated package.json"
olusegz07 Oct 24, 2023
8e57572
"Updated package.json"
olusegz07 Oct 24, 2023
02f7c4d
package.json
olusegz07 Oct 24, 2023
6f2bb22
Update package.json
olusegz07 Oct 24, 2023
7039834
package.json updated
olusegz07 Oct 24, 2023
2e696ef
updated codecept config
olusegz07 Oct 24, 2023
d842b44
"updated codecept config"
olusegz07 Oct 24, 2023
67260b4
"updated codecept config"
olusegz07 Oct 24, 2023
843d6ca
Revert ""updated codecept config""
olusegz07 Oct 24, 2023
ecf764d
"updated codecept config"
olusegz07 Oct 24, 2023
9c7d50e
update package.json
olusegz07 Oct 24, 2023
0915005
updated package.json
olusegz07 Oct 24, 2023
405fa55
Bumping chart version/ fixing aliases
hmcts-jenkins-j-to-z[bot] Oct 24, 2023
9121eea
update test
olusegz07 Oct 24, 2023
1de9a1a
Merge branch 'fix/EXUI-925-functional-unit-test' of https://github.co…
olusegz07 Oct 24, 2023
c574706
updated index.js
olusegz07 Oct 24, 2023
367b5af
Update package.json
olusegz07 Oct 24, 2023
71285f7
Update package.json
olusegz07 Oct 24, 2023
e8a6fc9
testing playwright
olusegz07 Oct 24, 2023
592b80a
Ignore test
olusegz07 Oct 25, 2023
ee1375e
Update package.json and ignore test TCCreateCase_2.feature that cause…
olusegz07 Oct 23, 2023
c005296
Merge branch 'fix/EXUI-925-functional-unit-tests' into EXUI-629_EXUI-…
olusegz07 Oct 25, 2023
074370d
Update package.json
olusegz07 Oct 25, 2023
016e70e
Bumping chart version/ fixing aliases
hmcts-jenkins-j-to-z[bot] Oct 25, 2023
6be3422
Update package.json
olusegz07 Oct 25, 2023
45b2439
Merge branch 'EXUI-629_EXUI-633_upgrade-node18-and-ng15' of https://g…
olusegz07 Oct 25, 2023
3826679
Code tidy and fix build failing
olusegz07 Oct 25, 2023
c16183c
Merge branch 'master' into EXUI-629_EXUI-633_upgrade-node18-and-ng15
olusegz07 Oct 25, 2023
efef292
Merge branch 'fix/EXUI-925-functional-unit-test' into EXUI-629_EXUI-6…
danlysiak Oct 25, 2023
5318dd3
Update package.json
olusegz07 Oct 25, 2023
f33515e
EXUI-1002 - fix alignment issue with the search form. Code tidy
olusegz07 Oct 27, 2023
47d981c
package.json updated with latest version of toolkit
olusegz07 Oct 31, 2023
4435ef1
package.json update
olusegz07 Nov 1, 2023
4f71deb
Merge branch 'master' into EXUI-629_EXUI-633_upgrade-node18-and-ng15
olusegz07 Nov 1, 2023
977d5b0
updated toilkit version
olusegz07 Nov 2, 2023
a9b5131
Merge branch 'master' into EXUI-629_EXUI-633_upgrade-node18-and-ng15
olusegz07 Nov 6, 2023
17e9bf1
package.json update
olusegz07 Nov 6, 2023
cd413be
styling update
olusegz07 Nov 8, 2023
7d4053e
Update yarn-audit-known-issues
olusegz07 Nov 8, 2023
cc7ab52
Merge branch 'master' into EXUI-629_EXUI-633_upgrade-node18-and-ng15
olusegz07 Nov 8, 2023
63a1aa5
styling update
olusegz07 Nov 8, 2023
f216c4a
toolkit version update
olusegz07 Nov 8, 2023
ebf0b8a
Merge branch 'master' into EXUI-629_EXUI-633_upgrade-node18-and-ng15
olusegz07 Nov 10, 2023
0bbdadc
Update yarn-audit-known-issues
olusegz07 Nov 10, 2023
e1c92ab
Merge branch 'master' into EXUI-629_EXUI-633_upgrade-node18-and-ng15
olusegz07 Nov 10, 2023
598fcd2
Merge branch 'master' into EXUI-629_EXUI-633_upgrade-node18-and-ng15
olusegz07 Nov 23, 2023
a28e8f0
yarn audit update
olusegz07 Nov 23, 2023
08e1299
fix issue with test coverage
olusegz07 Nov 24, 2023
2359f71
karma config updated to resolve coverage reporting issue. yarn audit …
olusegz07 Nov 28, 2023
1aad627
update karma config and sonar
olusegz07 Nov 28, 2023
77d4fc8
ccpay-web-component version updated
olusegz07 Nov 29, 2023
9f9a333
Bumping chart version/ fixing aliases
hmcts-jenkins-j-to-z[bot] Nov 29, 2023
1772855
Merge branch 'master' into EXUI-629_EXUI-633_upgrade-node18-and-ng15
olusegz07 Nov 29, 2023
f24f08e
yarn audit updated
olusegz07 Nov 29, 2023
b5b4767
toolkit version update
olusegz07 Nov 29, 2023
229fae0
Merge branch 'master' into EXUI-629_EXUI-633_upgrade-node18-and-ng15
olusegz07 Nov 30, 2023
e5cb1af
yarn audit update
olusegz07 Nov 30, 2023
2443d63
yarn audit updated
olusegz07 Nov 30, 2023
3bd8de4
Merge branch 'master' into EXUI-629_EXUI-633_upgrade-node18-and-ng15
olusegz07 Nov 30, 2023
feb68cb
yarn audit update
olusegz07 Dec 1, 2023
c9152f8
temporary ignore test
olusegz07 Dec 1, 2023
49a637d
library updates
olusegz07 Dec 5, 2023
50abaa5
Merge branch 'master' into EXUI-629_EXUI-633_upgrade-node18-and-ng15
andywilkinshmcts Dec 5, 2023
e9f6b68
version update
olusegz07 Dec 7, 2023
6935cd3
sourceMap fix for MC after node upgrade
HYadavHMCTS Dec 20, 2023
c09ee96
Merge pull request #3424 from hmcts/feature/exui-1186-source-map-gene…
HYadavHMCTS Dec 21, 2023
fc2ef29
Merge branch 'master' into EXUI-629_EXUI-633_upgrade-node18-and-ng15
olusegz07 Jan 10, 2024
8e75708
yarn audit update
olusegz07 Jan 10, 2024
1622b1b
Dummy change to README.md to force rebuild
andywilkinshmcts Jan 15, 2024
6f7ad26
functional test updates, fix to api tests
sreekanthpuligadda Jan 15, 2024
97196e1
Merge branch 'test/updated_test_users' into EXUI-629_EXUI-633_upgrade…
andywilkinshmcts Jan 15, 2024
8306aa8
set headless:true
andywilkinshmcts Jan 15, 2024
b6faa4a
api test update inline wth 3238 PR preview
sreekanthpuligadda Jan 15, 2024
a226b7e
disabled 2 xui integration tests failing in pipeline
sreekanthpuligadda Jan 15, 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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,5 @@ ignore/
!.yarn/versions

/infrastructure/.terraform/
.angular/cache/*
install-state.gz
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
15.14.0
18.17.0
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM hmctspublic.azurecr.io/base/node:14-alpine as base
FROM hmctspublic.azurecr.io/base/node:18-alpine as base
LABEL maintainer = "HMCTS Expert UI <https://github.com/hmcts>"

USER root
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ Property 'cookies' does not exist on type 'EnhancedRequest' - you will need to m
sure @types/express-session is added ie.
`yarn add @types/express-session`

### The following is legacy readme.
### The following is the legacy readme.

## Code scaffolding

Expand Down
25 changes: 13 additions & 12 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"aot": true,
"buildOptimizer": true,
"outputPath": "dist/rpx-exui",
"sourceMap": true,
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
Expand All @@ -27,7 +28,6 @@
"includePaths": [
"node_modules/govuk_frontend_toolkit/stylesheets",
"node_modules/govuk-elements-sass/public/sass",
"node_modules/govuk-frontend/govuk/all",
"node_modules"
]
},
Expand Down Expand Up @@ -148,12 +148,17 @@
"stylePreprocessorOptions": {
"includePaths": [
"node_modules/govuk_frontend_toolkit/stylesheets",
"node_modules/govuk-elements-sass/public/sass"
"node_modules/govuk-elements-sass/public/sass",
"node_modules"
]
},
"styles": [
"src/styles.scss"
],
"include": [
"src/**/*.spec.*"
],
"exclude": [],
"scripts": [],
"assets": [
"src/favicon.ico",
Expand All @@ -162,15 +167,11 @@
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"builder": "@angular-eslint/builder:lint",
"options": {
"tsConfig": [
"src/tsconfig.app.json",
"src/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**",
"**/api/**"
"eslintConfig": ".eslintrc.cjs",
"lintFilePatterns": [
"src/**/*.ts"
]
}
}
Expand All @@ -194,8 +195,9 @@
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"builder": "@angular-eslint/builder:lint",
"options": {
"eslintConfig": ".eslintrc.js",
"tsConfig": "e2e/tsconfig.e2e.json",
"exclude": [
"**/node_modules/**"
Expand All @@ -205,7 +207,6 @@
}
}
},
"defaultProject": "rpx-exui",
"schematics": {
"@schematics/angular:component": {
"style": "scss"
Expand Down
Binary file added api/.yarn/install-state.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion api/common/httpMockAdapter.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { AxiosInstance } from 'axios';
import MockAdapter from 'axios-mock-adapter';
import MockAdapter = require('axios-mock-adapter');
import { HttpMock } from './httpMock';

export class HttpMockAdapter {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describe('getFormattedSupportedServicesCaseTypes', () => {
});

it('should return null if the config value is null', () => {
const formattedServiceCasetypes = service.getFormattedSupportedServicesCaseTypes(null);
const formattedServiceCasetypes = service.getFormattedSupportedServicesCaseTypes('');
expect(formattedServiceCasetypes).to.equal(null);
});

Expand Down
33 changes: 18 additions & 15 deletions api/configuration/waSupportedServicesCaseTypesHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,24 @@ export interface WAFeatureConfig {

export function getFormattedSupportedServicesCaseTypes(waSupportedServices: string): WAFeatureConfig {
try {
const formattedWAFeatureConfig: WAFeatureConfig = { configurations: [] };
waSupportedServices.split(',').forEach((service) => {
const caseTypes = getConfigValue(`waSupportedServiceandCaseTypes.${service}.caseTypes`);
const releaseVersion = getConfigValue(`waSupportedServiceandCaseTypes.${service}.releaseVersion`);
const serviceConfig: ServiceConfig = {
caseTypes: caseTypes.split(','),
releaseVersion,
serviceName: service
};
serviceConfig.caseTypes = caseTypes.split(',');
serviceConfig.releaseVersion = releaseVersion;
serviceConfig.serviceName = service;
formattedWAFeatureConfig.configurations.push(serviceConfig);
});
return formattedWAFeatureConfig;
if (waSupportedServices) {
const formattedWAFeatureConfig: WAFeatureConfig = { configurations: [] };
waSupportedServices.split(',').forEach((service) => {
const caseTypes = getConfigValue(`waSupportedServiceandCaseTypes.${service}.caseTypes`);
const releaseVersion = getConfigValue(`waSupportedServiceandCaseTypes.${service}.releaseVersion`);
const serviceConfig: ServiceConfig = {
caseTypes: caseTypes.split(','),
releaseVersion,
serviceName: service
};
serviceConfig.caseTypes = caseTypes.split(',');
serviceConfig.releaseVersion = releaseVersion;
serviceConfig.serviceName = service;
formattedWAFeatureConfig.configurations.push(serviceConfig);
});
return formattedWAFeatureConfig;
}
return null;
} catch (error) {
logger.error('Error in formatting the supported service and case types - ', error);
return null;
Expand Down
2 changes: 1 addition & 1 deletion api/hearings/hearing.mock.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import MockAdapter from 'axios-mock-adapter';
import MockAdapter = require('axios-mock-adapter');
import { HttpMockAdapter } from '../common/httpMockAdapter';
import {
HEARING_ACTUAL, HEARING_ACTUAL_ADJOURNED, HEARING_ACTUAL_AWAITING,
Expand Down
2 changes: 1 addition & 1 deletion api/noc/noCService.mock.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import MockAdapter from 'axios-mock-adapter';
import MockAdapter = require('axios-mock-adapter');
import * as faker from 'faker/locale/en_GB';
import { httpMock } from './httpMock';
import { NoCQuestion } from './models/noCQuestion.interface';
Expand Down
2 changes: 1 addition & 1 deletion api/prd/caseFlag/caseFlag.mock.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import MockAdapter from 'axios-mock-adapter';
import MockAdapter = require('axios-mock-adapter');
import { HttpMockAdapter } from '../../common/httpMockAdapter';
import { CASE_FLAG_REFERENCE_VALUES } from './data/caseFlagReference.mock.data';

Expand Down
2 changes: 1 addition & 1 deletion api/prd/judicial/judicial.mock.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import MockAdapter from 'axios-mock-adapter';
import MockAdapter = require('axios-mock-adapter');
import { HttpMockAdapter } from '../../common/httpMockAdapter';
import { ALL_JUDICIAL_USERS, RAW_JUDICIAL_USERS } from './data/judicial.mock.data';
import { JudicialUserModel, RawJudicialUserModel } from './models/judicialUser.model';
Expand Down
2 changes: 1 addition & 1 deletion api/prd/location/location.mock.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import MockAdapter from 'axios-mock-adapter';
import MockAdapter = require('axios-mock-adapter');
import { HttpMockAdapter } from '../../common/httpMockAdapter';
import { ALL_COURT_LOCATIONS } from './data/location.mock.data';
import { toEpimmsLocation } from './models/location.model';
Expand Down
2 changes: 1 addition & 1 deletion api/prd/lov/lov.mock.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import MockAdapter from 'axios-mock-adapter';
import MockAdapter = require('axios-mock-adapter');
import { HttpMockAdapter } from '../../common/httpMockAdapter';
import { ALL_REF_DATA } from './data/lov.mock.data';

Expand Down
2 changes: 1 addition & 1 deletion api/roleAccess/roleAccessService.mock.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import MockAdapter from 'axios-mock-adapter';
import MockAdapter = require('axios-mock-adapter');
import { HttpMockAdapter } from '../common/httpMockAdapter';

export const init = () => {
Expand Down
2 changes: 1 addition & 1 deletion api/staff-ref-data/staff-ref-data.mock.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import MockAdapter from 'axios-mock-adapter';
import MockAdapter = require('axios-mock-adapter');
import * as _ from 'lodash';
import { HttpMockAdapter } from '../common/httpMockAdapter';

Expand Down
2 changes: 1 addition & 1 deletion api/workAllocation/caseService.mock.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import MockAdapter from 'axios-mock-adapter';
import MockAdapter = require('axios-mock-adapter');
import { HttpMockAdapter } from '../common/httpMockAdapter';
import { filterAllWorkCases } from './caseService';
import { CASEWORKER_ALL_CASES, CASEWORKER_MY_CASES, JUDICIAL_ALL_CASES, JUDICIAL_MY_CASES } from './constants/mock.data';
Expand Down
2 changes: 1 addition & 1 deletion api/workAllocation/roleService.mock.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import MockAdapter from 'axios-mock-adapter';
import MockAdapter = require('axios-mock-adapter');
import { HttpMockAdapter } from '../common/httpMockAdapter';
import { CASEROLES } from './constants/roles.mock.data';

Expand Down
2 changes: 1 addition & 1 deletion charts/xui-webapp/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: xui-webapp
home: https://github.com/hmcts/rpx-xui-webapp
version: 1.0.13
version: 1.0.14
description: Expert UI
maintainers:
- name: HMCTS RPX XUI
Expand Down
Loading