Skip to content

Commit

Permalink
fix: Stop querying depositionTitle (#1187)
Browse files Browse the repository at this point in the history
The field name has changed to `title`. Don't query `title` yet because
that change has not made it into APIv2 prod.
  • Loading branch information
bchu1 authored Sep 27, 2024
1 parent 035773f commit 07a08d4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ export function TomogramMetadataDrawer() {
},
{
label: t('depositionName'),
values: [tomogram.deposition?.depositionTitle ?? ''],
// TODO(bchu): Uncomment after API field name change is in prod.
// values: [tomogram.deposition?.title ?? ''],
values: [],
renderValue: (value: string) => (
<Link
className="text-sds-color-primitive-blue-400"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ const GET_RUN_BY_ID_QUERY_V2 = gql(`
deposition {
id
depositionDate
depositionTitle
# title # TODO(bchu): Uncomment when API field name change is in prod.
}
tomogramVoxelSpacing {
id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,9 @@ function getTomogramDrawerTestMetadata(
authors: tomogram.authors!.edges!.map((edge) => edge.node!.name),
publications: '--',
relatedDatabases: '--',
depositionName: tomogram.deposition?.depositionTitle ?? '--',
// TODO(bchu): Uncomment when API name change is in prod.
// depositionName: tomogram.deposition?.title ?? '--',
depositionName: '--',
depositionId: tomogram.deposition?.id ?? '--',
depositionDate: tomogram.deposition?.depositionDate ?? '--',
releaseDate: '--',
Expand Down

0 comments on commit 07a08d4

Please sign in to comment.