Skip to content

Commit

Permalink
Merge pull request #658 from bcgov/test-marshal-DV-4707
Browse files Browse the repository at this point in the history
status label changes
  • Loading branch information
divyav-aot authored Dec 13, 2023
2 parents d0ff432 + d946232 commit 3efbe06
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion api/reviewer_api/resources/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def get(requestid):
"requesttype": jsonobj["requestType"]
}
result = documentservice().getdocuments(requestid, requestinfo["bcgovcode"])
return json.dumps({"requeststatusid": jsonobj["requeststatusid"], "documents": result, "requestnumber":jsonobj["axisRequestId"], "requestinfo":requestinfo}), 200
return json.dumps({"requeststatuslabel": jsonobj["requeststatuslabel"], "documents": result, "requestnumber":jsonobj["axisRequestId"], "requestinfo":requestinfo}), 200
except KeyError as error:
return {'status': False, 'message': CUSTOM_KEYERROR_MESSAGE + str(error)}, 400
except BusinessException as exception:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ def extract_annotations_from_pdf(pdf_document, output_bytestream):
new_content = legend_text + ":The comment text of the annotation is added as part of the pdf."
index += 1
author = annot.info.get('title', '')
if author:
new_author = "Original Document Comment"
# if author:
new_author = "Original Document Comment"
annot.set_info(content=new_content,title=new_author)
annot.update()
annot_dict = {
Expand Down
2 changes: 1 addition & 1 deletion web/src/apiManager/services/docReviewerService.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const fetchDocuments = (
const __files = res.data.documents.filter((d: any) => !d.attributes.incompatible);
store.dispatch(setDocumentList(__files) as any);
store.dispatch(setRequestNumber(res.data.requestnumber) as any);
store.dispatch(setRequestStatus(res.data.requeststatusid) as any);
store.dispatch(setRequestStatus(res.data.requeststatuslabel) as any);
store.dispatch(setRequestInfo(res.data.requestinfo) as any);
callback(res.data.documents);
} else {
Expand Down
36 changes: 18 additions & 18 deletions web/src/constants/enum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,27 +66,27 @@ const pageFlagTypes:pageFlagType = {
};

type RequestStatesType = {
[key: string]: number
[key: string]: string
}

const RequestStates:RequestStatesType = {
"Open": 1,
"Call For Records": 2,
"Closed": 3,
"Redirect": 4,
"Unopened": 5,
"Intake in Progress": 6,
"Records Review": 7,
"Fee Estimate": 8,
"Consult": 9,
"Ministry Sign Off": 10,
"On Hold": 11,
"Deduplication": 12,
"Harms Assessment": 13,
"Response": 14,
"Archived": 15,
"Peer Review": 16,
"Call For Records Overdue": 17
"Open": "open",
"Call For Records": "callforrecords",
"Closed": "closed",
"Redirect": "redirect",
"Unopened": "unopened",
"Intake in Progress": "intakeinprogress",
"Records Review": "recordsreview",
"Fee Estimate": "feeestimate",
"Consult": "consult",
"Ministry Sign Off": "ministrysignoff",
"On Hold": "onhold",
"Deduplication": "deduplication",
"Harms Assessment": "harmsassessment",
"Response": "response",
"Archived": "archived",
"Peer Review": "peerreview",
"Call For Records Overdue": "callforrecordsoverdue"
};

export {
Expand Down

0 comments on commit 3efbe06

Please sign in to comment.