icgc-argo / argo-clinical

Clinical data submission for ARGO programs.
GNU Affero General Public License v3.0
2 stars 0 forks source link

Clinical Errors retrieve Schema from DB #1145

Closed demariadaniel closed 3 months ago

demariadaniel commented 4 months ago

Link to Issue

https://github.com/icgc-argo/argo-clinical/issues/1146

Description

ClinicalErrors / Submitted Data page fail when requested migration dictionary cannot be found

Checklist

Type of Change

Checklist before requesting review:

ciaranschutte commented 4 months ago

some of the stringifiedRecords in this codebase is actually stringified and some is not. sometimes a TypedDataRecord is the type other times it's DataRecord


export declare class DataRecord {
    readonly [k: string]: string | string[];
}
export declare class TypedDataRecord {
    readonly [k: string]: SchemaTypes;
}
``` from lectern client schema entities
demariadaniel commented 4 months ago

some of the stringifiedRecords in this codebase is actually stringified and some is not. sometimes a TypedDataRecord is the type other times it's DataRecord

export declare class DataRecord {
    readonly [k: string]: string | string[];
}
export declare class TypedDataRecord {
    readonly [k: string]: SchemaTypes;
}
``` from lectern client schema entities

I will double check this is all being handled properly. This is because revalidating records and checking for exceptions need similar (but not equal) record values and use of any elsewhere is obscuring potential issues