Add error handling to improve user experience 56/456/7
authorLott, Christopher (cl778h) <cl778h@att.com>
Fri, 28 Jun 2019 12:17:04 +0000 (08:17 -0400)
committerLott, Christopher (cl778h) <cl778h@att.com>
Fri, 5 Jul 2019 12:44:55 +0000 (08:44 -0400)
commit226fd436a085f717d4cbf81bf1719bdaf1468414
tree1591eb5b4a784cc8f4d562142a9f2753dd32c362
parentbaba2efde0ab32026b1d13941dcc9e9dc95dc640
Add error handling to improve user experience

Add front-end error handlers to indicate when data
could not be fetched, which explains an empty table.
Revise back-end error handling to reduce lines of code;
add a central ControllerAdvice class that catches any
HttpStatusCodeException and generates a JSON response.

Change-Id: I434e602a89d05ed4de13cddc31633970aa2c8e5d
Signed-off-by: Lott, Christopher (cl778h) <cl778h@att.com>
56 files changed:
docs/release-notes.rst
webapp-backend/src/main/java/org/oransc/ric/portal/dashboard/controller/AcXappController.java
webapp-backend/src/main/java/org/oransc/ric/portal/dashboard/controller/AnrXappController.java
webapp-backend/src/main/java/org/oransc/ric/portal/dashboard/controller/AppManagerController.java
webapp-backend/src/main/java/org/oransc/ric/portal/dashboard/controller/CustomizedResponseEntityExceptionHandler.java [new file with mode: 0644]
webapp-backend/src/main/java/org/oransc/ric/portal/dashboard/controller/E2ManagerController.java
webapp-backend/src/main/java/org/oransc/ric/portal/dashboard/controller/SimpleErrorController.java
webapp-frontend/src/app/anr-xapp/anr-xapp.component.html
webapp-frontend/src/app/anr-xapp/anr-xapp.component.scss
webapp-frontend/src/app/anr-xapp/anr-xapp.component.ts
webapp-frontend/src/app/anr-xapp/anr-xapp.datasource.ts
webapp-frontend/src/app/app-control/app-control.component.html
webapp-frontend/src/app/app-control/app-control.component.scss [moved from webapp-frontend/src/app/app-control/app-control.component.css with 92% similarity]
webapp-frontend/src/app/app-control/app-control.component.ts
webapp-frontend/src/app/app-control/app-control.datasource.ts
webapp-frontend/src/app/catalog/catalog.component.html
webapp-frontend/src/app/catalog/catalog.component.scss [moved from webapp-frontend/src/app/catalog/catalog.component.css with 93% similarity]
webapp-frontend/src/app/catalog/catalog.component.ts
webapp-frontend/src/app/catalog/catalog.datasource.ts
webapp-frontend/src/app/control/control.component.scss [moved from webapp-frontend/src/app/control/control.component.css with 100% similarity]
webapp-frontend/src/app/control/control.component.ts
webapp-frontend/src/app/interfaces/e2-mgr.types.ts
webapp-frontend/src/app/login/login.component.scss [moved from webapp-frontend/src/app/login/login.component.css with 100% similarity]
webapp-frontend/src/app/login/login.component.ts
webapp-frontend/src/app/navigation/sidenav-list/sidenav-list.component.html
webapp-frontend/src/app/navigation/sidenav-list/sidenav-list.component.scss [moved from webapp-frontend/src/app/navigation/sidenav-list/sidenav-list.component.css with 100% similarity]
webapp-frontend/src/app/navigation/sidenav-list/sidenav-list.component.ts
webapp-frontend/src/app/ran-control/ran-connection-dialog.component.scss [moved from webapp-frontend/src/app/ran-control/ran-connection-dialog.component.css with 100% similarity]
webapp-frontend/src/app/ran-control/ran-connection-dialog.component.ts
webapp-frontend/src/app/ran-control/ran-control.component.html
webapp-frontend/src/app/ran-control/ran-control.component.scss
webapp-frontend/src/app/ran-control/ran-control.component.ts
webapp-frontend/src/app/ran-control/ran-control.datasource.ts
webapp-frontend/src/app/rd-routing.module.ts
webapp-frontend/src/app/rd.component.scss [moved from webapp-frontend/src/app/rd.component.css with 100% similarity]
webapp-frontend/src/app/rd.component.ts
webapp-frontend/src/app/rd.module.ts
webapp-frontend/src/app/stats/stats.component.ts
webapp-frontend/src/app/ui/catalog-card/catalog-card.component.scss [moved from webapp-frontend/src/app/ui/catalog-card/catalog-card.component.css with 100% similarity]
webapp-frontend/src/app/ui/catalog-card/catalog-card.component.ts
webapp-frontend/src/app/ui/control-card/control-card.component.scss [moved from webapp-frontend/src/app/ui/control-card/control-card.component.css with 100% similarity]
webapp-frontend/src/app/ui/control-card/control-card.component.ts
webapp-frontend/src/app/ui/stat-card/stat-card.component.scss [moved from webapp-frontend/src/app/ui/stat-card/stat-card.component.css with 100% similarity]
webapp-frontend/src/app/ui/stat-card/stat-card.component.ts
webapp-frontend/src/app/user/add-dashboard-user-dialog/add-dashboard-user-dialog.component.html [moved from webapp-frontend/src/app/admin/add-dashboard-user-dialog/add-dashboard-user-dialog.component.html with 100% similarity]
webapp-frontend/src/app/user/add-dashboard-user-dialog/add-dashboard-user-dialog.component.scss [moved from webapp-frontend/src/app/admin/add-dashboard-user-dialog/add-dashboard-user-dialog.component.scss with 100% similarity]
webapp-frontend/src/app/user/add-dashboard-user-dialog/add-dashboard-user-dialog.component.ts [moved from webapp-frontend/src/app/admin/add-dashboard-user-dialog/add-dashboard-user-dialog.component.ts with 100% similarity]
webapp-frontend/src/app/user/edit-dashboard-user-dialog/edit-dashboard-user-dialog.component.html [moved from webapp-frontend/src/app/admin/edit-dashboard-user-dialog/edit-dashboard-user-dialog.component.html with 100% similarity]
webapp-frontend/src/app/user/edit-dashboard-user-dialog/edit-dashboard-user-dialog.component.scss [moved from webapp-frontend/src/app/admin/edit-dashboard-user-dialog/edit-dashboard-user-dialog.component.scss with 100% similarity]
webapp-frontend/src/app/user/edit-dashboard-user-dialog/edit-dashboard-user-dialog.component.ts [moved from webapp-frontend/src/app/admin/edit-dashboard-user-dialog/edit-dashboard-user-dialog.component.ts with 100% similarity]
webapp-frontend/src/app/user/user.component.html [moved from webapp-frontend/src/app/admin/user.component.html with 100% similarity]
webapp-frontend/src/app/user/user.component.scss [moved from webapp-frontend/src/app/admin/user.component.css with 100% similarity]
webapp-frontend/src/app/user/user.component.spec.ts [moved from webapp-frontend/src/app/admin/user.component.spec.ts with 100% similarity]
webapp-frontend/src/app/user/user.component.ts [moved from webapp-frontend/src/app/admin/user.component.ts with 90% similarity]
webapp-frontend/src/app/user/user.datasource.ts [moved from webapp-frontend/src/app/admin/user.datasource.ts with 64% similarity]
webapp-frontend/src/tslint.json