Skip to content

Commit

Permalink
Merge pull request #664 from microsoft/geearl/-delete-in-gov-failing
Browse files Browse the repository at this point in the history
status page delete and resubmit not working
  • Loading branch information
georearl committed Apr 24, 2024
2 parents 46b5f73 + 212ee88 commit 0ccd7c9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/backend/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ async def resubmit_Items(request: Request):
statusLog.save_document(document_path=full_path)

except Exception as ex:
log.exception("Exception in /delete_Items")
log.exception("Exception in /resubmitItems")
raise HTTPException(status_code=500, detail=str(ex)) from ex
return True

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export interface IDocument {
iconName: string;
fileType: string;
filePath: string;
fileFolder: string;
state: string;
state_description: string;
upload_timestamp: string;
Expand Down Expand Up @@ -319,9 +320,9 @@ export const DocumentsDetailList = ({ items, onFilesSorted, onRefresh }: Props)
isPadded: true,
},
{
key: 'filePath',
key: 'fileFolder',
name: 'Folder',
fieldName: 'filePath',
fieldName: 'fileFolder',
minWidth: 70,
maxWidth: 90,
isResizable: true,
Expand Down
3 changes: 2 additions & 1 deletion app/frontend/src/components/FileStatus/FileStatus.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ export const FileStatus = ({ className }: Props) => {
name: fileList[i].file_name,
iconName: FILE_ICONS[fileExtension.toLowerCase()],
fileType: fileExtension,
filePath: fileList[i].file_path.slice(0, fileList[i].file_path.lastIndexOf('/')),
filePath: fileList[i].file_path,
fileFolder: fileList[i].file_path.slice(0, fileList[i].file_path.lastIndexOf('/')),
state: fileList[i].state,
state_description: fileList[i].state_description,
upload_timestamp: fileList[i].start_timestamp,
Expand Down

0 comments on commit 0ccd7c9

Please sign in to comment.