Skip to content

Commit 75a2bb0

Browse files
committed
fix: show location, hide a-type, outer join
1 parent 400dc4d commit 75a2bb0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

web/src/size/view.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ const DEFAULT_COLUMNS = [
5555
'project_name',
5656
'modalities',
5757
'data_level',
58-
'acquisition_type',
58+
'location',
5959
];
6060

6161
const COLUMN_LABELS = {
@@ -135,15 +135,15 @@ async function _loadData(coord) {
135135
ab.age,
136136
ab.experimenters,
137137
ab.instrument_id,
138-
ab.location,
138+
COALESCE(ab.location, 's3://' || sl.bucket || '/' || sl.prefix) AS location,
139139
ab.code_ocean,
140140
ab.process_date,
141141
sl.size_in_bytes AS size_bytes,
142142
sl.number_of_files AS num_files,
143143
sl.storage_class,
144144
sd.source_data
145145
FROM asset_basics ab
146-
LEFT JOIN storage_lens sl
146+
FULL OUTER JOIN storage_lens sl
147147
ON ab.location = 's3://' || sl.bucket || '/' || sl.prefix
148148
LEFT JOIN source_data sd
149149
ON sd.name = ab.name AND sd.source_data IS NOT NULL AND sd.source_data != ''

0 commit comments

Comments
 (0)