Skip to content

Commit

Permalink
Removed unused fields form MCCR (#1152)
Browse files Browse the repository at this point in the history
  • Loading branch information
kjellhaaland authored Oct 17, 2024
1 parent 315b217 commit b001927
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 80 deletions.
52 changes: 6 additions & 46 deletions libs/mechanicalcompletionsidesheet/src/lib/types/mcMccr.ts
Original file line number Diff line number Diff line change
@@ -1,53 +1,13 @@
export type McMccr = {
checklistID: string | null;
checklistUrlId: string | null;
facility: string | null;
project: string | null;
tagUrl: string | null;
tagNo: string | null;
tagId: string | null;
tagUrlId: string | null;
description: string | null;
formularType: string | null;
formularGroup: string | null;
formularDisciplineCode: string | null;
formularDiscipline: string | null;
pipingRevisionMechanicalCompletionPackageNo: string | null;
responsible: string | null;
checklistUrl: string | null;
status: string | null;
createdDate: string | null;
updatedDate: string | null;
signedDate: string | null;
verifiedDate: string | null;
famUpsertedTime: string | null;
callOffNo: string | null;
packageNo: string | null;
isVoided: string | null;
description: string | null;
register: string | null;
tagArea: string | null;
tagCategory: string | null;
responsible: string | null;
mechanicalCompletionPackageNo: string | null;
mechanicalCompletionPackageId: string | null;
mechanicalCompletionStatus: string | null;
commissioningPackageNo: string | null;
commissioningPackageId: string | null;
woPlannedCompletionDate: string | null;
wOs: string | null;
hasWO: string | null;
handoverPlan: string | null;
woPlan: string | null;
pOplan: string | null;
countdownDiscipline: string | null;
mcPlan: string | null;
signingStatus: string | null;
m01ActualDate: string | null;
m02ActualDate: string | null;
projectDescription: string | null;
projectSchema: string | null;
mechanicalCompletionPhase: string | null;
mechanicalCompletionUrlId: string | null;
checklistUrl: string | null;
tagUrl: string | null;
commissioningPackageUrl: string | null;
mechanicalCompletionPackageUrl: string | null;
commissioningPackageUrlId: string | null;
commissioningPackageUrl: string | null;
commissioningPackageNo: string | null;
};
Original file line number Diff line number Diff line change
Expand Up @@ -220,31 +220,17 @@ const McSideSheetComponent = (props: Required<McProps>) => {
mccr={(mccrs ?? []).map(
(mccr): MccrBase => ({
...mccr,
commissioningPackageId: mccr.commissioningPackageId,
commissioningPackageUrl: mccr.commissioningPackageUrl,
commissioningPackageUrlId: mccr.commissioningPackageUrlId,
commpkgId: mccr.commissioningPackageId,
commpkgNumber: mccr.commissioningPackageNo,
description: mccr.description,
facility: mccr.facility,
mcPkgId: mccr.mechanicalCompletionPackageId,
mccrId: mccr.checklistID,
mccrResponsible: mccr.responsible,
mccrStatus: mccr.status,
mccrType: mccr.formularType,
mccrUrl: mccr.checklistUrl,
mccrUrlId: mccr.checklistUrlId,
mcpkgNumber: mccr.mechanicalCompletionPackageNo,
mechanicalCompletionPackageUrl: mccr.mechanicalCompletionPackageUrl,
mechanicalCompletionPackageUrlId: mccr.mechanicalCompletionUrlId,
project: mccr.project,
tagId: mccr.tagId,
tagNumber: mccr.tagNo,
tagUrl: mccr.tagUrl,
tagUrlId: mccr.tagUrlId,
workOrderId: null,
workOrderUrl: null,
workOrderUrlId: null,
})
)}
/>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,27 +1,13 @@
export type MccrBase = {
commissioningPackageId: string | null;
commissioningPackageUrl: string | null;
commissioningPackageUrlId: string | null;
commpkgId: string | null;
commpkgNumber: string | null;
tagUrl: string | null;
tagNumber: string | null;
description: string | null;
facility: string | null;
mcPkgId: string | null;
mccrId: string | null;
mccrResponsible: string | null;
mccrStatus: string | null;
mccrType: string | null;
mccrUrl: string | null;
mccrUrlId: string | null;
mccrStatus: string | null;
mccrResponsible: string | null;
mcpkgNumber: string | null;
mechanicalCompletionPackageUrl: string | null;
mechanicalCompletionPackageUrlId: string | null;
project: string | null;
tagId: string | null;
tagNumber: string | null;
tagUrl: string | null;
tagUrlId: string | null;
workOrderId: string | null;
workOrderUrl: string | null;
workOrderUrlId: string | null;
commissioningPackageUrl: string | null;
commpkgNumber: string | null;
};

0 comments on commit b001927

Please sign in to comment.