Skip to content

Commit dbaa7a1

Browse files
authored
feat: switch from files.url to files.azul_url (#4575) (#4581)
Co-authored-by: Fran McDade <18710366+frano-m@users.noreply.github.com>
1 parent 833bb68 commit dbaa7a1

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

app/apis/azul/anvil-cmg/common/entities.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ export interface DonorSpecies {
8989
*/
9090
export interface FileEntity {
9191
accessible: boolean;
92+
azul_url: string;
9293
data_modality: string[];
9394
date_created: string;
9495
document_id: string;
@@ -98,7 +99,6 @@ export interface FileEntity {
9899
file_name: string;
99100
file_size: number;
100101
file_type: string;
101-
url: string;
102102
}
103103

104104
/**

app/apis/azul/hca-dcp/common/entities.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ export interface FilesEntityResponse {
4141
*/
4242
export interface FileResponse {
4343
accessible: boolean;
44+
azul_url: string;
4445
contentDescription: (string | null)[];
4546
drs_uri: string;
4647
fileSource: string | null;
@@ -50,7 +51,6 @@ export interface FileResponse {
5051
name: string;
5152
sha256: string;
5253
size: number;
53-
url: string | null; // TODO confirm null is possible.
5454
uuid: string;
5555
version: string;
5656
}

app/viewModelBuilders/azul/anvil-cmg/common/viewModelBuilders.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -822,7 +822,7 @@ export const buildFileDownload = (
822822
entityName: processEntityValue(response.files, "file_name"),
823823
relatedEntityId: dataset.dataset_id[0],
824824
relatedEntityName: dataset.title[0],
825-
url: processEntityValue(response.files, "url", LABEL.EMPTY),
825+
url: processEntityValue(response.files, "azul_url", LABEL.EMPTY),
826826
};
827827
};
828828

app/viewModelBuilders/azul/hca-dcp/common/viewModelBuilders.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1176,7 +1176,7 @@ export const buildFileDownload = (
11761176
entityName: processEntityValue(filesResponse.files, "name"),
11771177
relatedEntityId: project.projectId[0],
11781178
relatedEntityName: project.projectTitle[0],
1179-
url: processEntityValue(filesResponse.files, "url", LABEL.EMPTY),
1179+
url: processEntityValue(filesResponse.files, "azul_url", LABEL.EMPTY),
11801180
};
11811181
};
11821182

0 commit comments

Comments
 (0)