-
Notifications
You must be signed in to change notification settings - Fork 5
feat: switch from files.url to files.azul_url (#4575) #4581
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -89,6 +89,7 @@ export interface DonorSpecies { | |
| */ | ||
| export interface FileEntity { | ||
| accessible: boolean; | ||
| azul_url: string; | ||
| data_modality: string[]; | ||
| date_created: string; | ||
| document_id: string; | ||
|
|
@@ -98,7 +99,6 @@ export interface FileEntity { | |
| file_name: string; | ||
| file_size: number; | ||
| file_type: string; | ||
| url: string; | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removed |
||
| } | ||
|
|
||
| /** | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -41,6 +41,7 @@ export interface FilesEntityResponse { | |||||
| */ | ||||||
| export interface FileResponse { | ||||||
| accessible: boolean; | ||||||
| azul_url: string; | ||||||
|
||||||
| azul_url: string; | |
| azul_url: string | null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new
azul_urlproperty is defined as non-nullablestring, while the removedurlproperty was alsostring. Consider whether this field should allow null values for consistency with the HCA-DCP implementation, especially if the underlying API might not always provide a URL.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MillenniumFalconMechanic HCA had a TODO comment regarding the url property (whether
nullwas a possible value). I'm happy to typeazule_urlasstring | nullif you think it is appropriate?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting; there must be downstream handling (i.e. type narrowing) on the possible
nullvalues? Let's keep it as it was (string | null) but remove the TODO comments.