diff --git a/frontend/src/pull.ts b/frontend/src/pull.ts index 9f5f872a..a1870d71 100644 --- a/frontend/src/pull.ts +++ b/frontend/src/pull.ts @@ -19,8 +19,11 @@ export class Pull extends PullData { super(); Object.assign(this, data); - const syntheticCRs = this.getSyntheticCRSignatures(); - this.cr_signatures = computeSignatures(data.status.allCR.concat(syntheticCRs)); + const syntheticCRs = this.getSyntheticSignatures(SignatureType.CR); + const syntheticQAs = this.getSyntheticSignatures(SignatureType.QA); + this.status.allCR = this.status.allCR.concat(syntheticCRs); + this.status.allQA = this.status.allQA.concat(syntheticQAs); + this.cr_signatures = computeSignatures(data.status.allCR); this.qa_signatures = computeSignatures(data.status.allQA); } @@ -93,14 +96,14 @@ export class Pull extends PullData { }); } - getSyntheticCRSignatures(): Signature[] { + getSyntheticSignatures(type: SignatureType): Signature[] { // Treat dev_block sigs as out-of-date CRs in that they hold a place // in the CR requirements. return this.status.dev_block.map((devBlock) => { return { data: { ...devBlock.data, - type: SignatureType.CR, + type, active: 0, } };