Skip to content

Commit

Permalink
IAO Workflow for state lock records completed. WIP manual lock record…
Browse files Browse the repository at this point in the history
…s for IAO
  • Loading branch information
Aman-Hundal committed Jul 11, 2024
1 parent ea57ee3 commit 94a9b01
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,9 @@ const BottomButtonGroup = React.memo(

//Logic to change lock records to null (and have FE useEffect in FOIRequest.js/MinistryView.js logic takeover) if request goes back to open, cfr, harms, fee estimate, dedup
if (!validLockRecordsState(currentSelectedStatus)) {
console.log("GOT YA")
saveRequestObject.lockrecords = true;
saveRequestObject.lockrecords = null;
}

console.log("SAVE PBJ", saveRequestObject)

//add oipc Data to save request object and sync/validate isoipcreview attribute
if (requestState.toLowerCase() !== StateEnum.intakeinprogress.name.toLowerCase() && requestState.toLowerCase() !== StateEnum.unopened.name.toLowerCase()) {
saveRequestObject.oipcdetails = oipcData ? oipcData : [];
Expand Down
4 changes: 3 additions & 1 deletion forms-flow-web/src/components/FOI/FOIRequest/FOIRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,9 @@ const FOIRequest = React.memo(({ userDetail, openApplicantProfileModal }) => {
//Adjust lockRecords value based on requestState if there is no manual user lockrecords value present in requestDetails from DB
const updateRecordsTabAccess = () => {
if(requestDetails.lockrecords === null) {
return validLockRecordsState(requestDetails.currentState)
return validLockRecordsState(requestDetails.currentState);
} else {
return requestDetails.lockrecords;
}
}
setLockRecordsTab(updateRecordsTabAccess());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ def createministry(self, requestschema, ministry, activeversion, userid, filenum
foiministryrequest.startdate = startdate
foiministryrequest.createdby = userid
requeststatuslabel = self.getpropertyvaluefromschema(requestschema, 'requeststatuslabel')
foiministryrequest.lockrecords = requestschema.get("lockrecords")
if requeststatuslabel is not None:
status = self.getstatusname(requeststatuslabel)
if self.isNotBlankorNone(requestschema,"fromDate","main") == True:
Expand Down

0 comments on commit 94a9b01

Please sign in to comment.