revaturelabs / caliber-2-meta

Meta Repository for Caliber 2
5 stars 1 forks source link

Testing the endpoints Failing QA #42

Open Quinn-Donnelly opened 5 years ago

Quinn-Donnelly commented 5 years ago

There is an issue that is happening on this endpoint it is throwing a 500 with the following exception.

http://localhost:10000/qa/audit/notes/overall/2/1

error: "Internal Server Error"
exception: "org.springframework.dao.IncorrectResultSizeDataAccessException"
message: "result returns more than one elements; nested exception is javax.persistence.NonUniqueResultException: result returns more than one elements"
path: "/audit/notes/overall/2/1"
status: 500
timestamp: 1559331177187

I will be running a clean build on the application and checking if it can be solved by running a fresh copy.

Quinn-Donnelly commented 5 years ago

@revaturelabs/587-java-williamo I will post here with updates on this issue while I look into it.

Quinn-Donnelly commented 5 years ago

@revaturelabs/587-java-williamo Update found one of the issues and it is resolved the current issue is there seems to be no null safety on the qcStatus if there is none set.

OverallComponent.html:24 ERROR TypeError: Cannot read property 'qcStatus' of undefined
    at Object.eval [as updateDirectives] (OverallComponent.html:24)
    at Object.debugUpdateDirectives [as updateDirectives] (core.js:11054)
    at checkAndUpdateView (core.js:10451)
    at callViewAction (core.js:10692)
    at execComponentViewsAction (core.js:10634)
    at checkAndUpdateView (core.js:10457)
    at callViewAction (core.js:10692)
    at execEmbeddedViewsAction (core.js:10655)
    at checkAndUpdateView (core.js:10452)
    at callViewAction (core.js:10692)
WilliamDickinson commented 5 years ago

It would seem that the source of the problem is that the Note Bean's QCstatus is nullable. The problem seems to stem from the "Undefined" value for QCstatus. When the value for QCstatus is null it doesn't default to "Undefined" as it should. The problem could likely be resolved if a null QCstatus was turned into an "Undefined" value.