Skip to content

Commit dd2d91e

Browse files
authored
Merge pull request #1514 from ImagingDataCommons/idc-prod-sp
Release 49
2 parents d404130 + 3603c17 commit dd2d91e

32 files changed

+899
-1098
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ RUN apt-get update
2929
RUN apt-get install -y wget
3030
# TODO: we need to start using the keyring instead
3131
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv A8D3785C
32-
RUN wget "http://repo.mysql.com/mysql-apt-config_0.8.30-1_all.deb" -P /tmp
32+
RUN wget "http://repo.mysql.com/mysql-apt-config_0.8.35-1_all.deb" -P /tmp
3333

3434
# install lsb-release (a dependency of mysql-apt-config), since dpkg doesn't
3535
# do dependency resolution
3636
RUN apt-get install -y lsb-release
37-
RUN dpkg --install /tmp/mysql-apt-config_0.8.30-1_all.deb
37+
RUN dpkg --install /tmp/mysql-apt-config_0.8.35-1_all.deb
3838

3939
# fetch the updated package metadata (in particular, mysql-server)
4040
RUN apt-get update

etl/etl.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@
5959
COLLECTION_HEADER_CHK = "collection_uuid"
6060

6161
FIELD_MAP = {x: i for i, x in enumerate([
62-
"collection_id", "collection_uuid", "name", "collections", "image_types", "supporting_data", "subject_count", "doi",
63-
"source_url", "cancer_type", "species", "location", "analysis_artifacts", "description", "collection_type",
64-
"program", "access", "date_updated", "tcia_wiki_collection_id", "license_short_name", "active"
65-
])}
62+
"collection_id", "collection_uuid", "name", "collections", "image_types", "supporting_data", "subject_count", "doi",
63+
"source_url", "cancer_type", "species", "location", "analysis_artifacts", "description", "collection_type",
64+
"program", "access", "date_updated", "tcia_wiki_collection_id", "license_short_name", "active", "total_size", "total_size_with_ar"
65+
])}
6666

6767
TOKENIZED_FIELDS = ["PatientID", "SeriesInstanceUID", "StudyInstanceUID"]
6868

@@ -146,8 +146,8 @@
146146
}
147147

148148
SOLR_SINGLE_VAL = {
149-
"StudyInstanceUID": ["PatientID", "StudyInstanceUID", "crdc_study_uuid"],
150-
"SeriesInstanceUID": ["PatientID", "StudyInstanceUID", "SeriesInstanceUID", "crdc_study_uuid", "crdc_series_uuid"]
149+
"StudyInstanceUID": ["PatientID", "StudyInstanceUID", "crdc_study_uuid","instance_size"],
150+
"SeriesInstanceUID": ["PatientID", "StudyInstanceUID", "SeriesInstanceUID", "crdc_study_uuid", "crdc_series_uuid", "instance_size"]
151151
}
152152

153153
ETL_CONFIG = {}
@@ -356,7 +356,7 @@ def load_collections(filename, data_version="8.0"):
356356
exact_collection_fields = [
357357
"collection_id", "collection_uuid", "name", "collections", "image_types", "supporting_data", "subject_count", "doi",
358358
"source_url", "cancer_type", "species", "location", "analysis_artifacts", "description", "collection_type",
359-
"access", "date_updated", "active"]
359+
"access", "date_updated", "active", "total_size", "total_size_with_ar"]
360360
field_map = FIELD_MAP
361361
for line in csv_reader(collection_file):
362362
if COLLECTION_HEADER_CHK in line:
@@ -366,7 +366,6 @@ def load_collections(filename, data_version="8.0"):
366366
for field in line:
367367
field_map[field] = i
368368
i += 1
369-
print(field_map)
370369
continue
371370
collex = {
372371
'data': { x: line[field_map[x]] for x in exact_collection_fields },

idc/demo_views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def explore_demo_page(request):
144144
is_json = False
145145

146146
try:
147-
req = request.GET if request.GET else request.POST
147+
req = request.GET if request.method == 'GET' else request.POST
148148
is_dicofdic = (req.get('is_dicofdic', "False").lower() == "true")
149149
source = req.get('data_source_type', DataSource.SOLR)
150150
versions = json.loads(req.get('versions', '[]'))

idc/urls.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@
4949
re_path(r'^explore/filters/', views.parse_explore_filters, name='parse_explore_filters'),
5050
re_path(r'^explore/bq_string/$', get_query_str_response, name='explore_bq_string'),
5151
re_path(r'^explore/manifest/$', views.explorer_manifest, name='get_explore_manifest'),
52+
re_path(r'^explore/manifest/series/$', views.explorer_manifest, name='get_series_ids_manifest'),
5253
re_path(r'^tables/', views.populate_tables, name='populate_tables'),
53-
re_path(r'^studymp/', views.studymp, name='studymp'),
5454
re_path(r'^warning/', views.warn_page, name='warn'),
5555
re_path(r'^about/$', views.about_page, name='about_page'),
5656
re_path(r'^dashboard/', views.dashboard_page, name='dashboard'),
@@ -60,8 +60,11 @@
6060
re_path(r'^cart/$', views.cart_page, name='cart'),
6161
re_path(r'^explore/cart/$', views.cart_page, name='get_explore_cart'),
6262
re_path(r'^cart_data/$', views.cart_data, name='get_cart_data'),
63-
re_path(r'^series_ids/(?P<patient_id>[A-Za-z0-9\.\-_]+)/$', views.get_series, name='get_series_by_case'),
64-
re_path(r'^series_ids/(?P<patient_id>[A-Za-z0-9\.\-_]+)/(?P<study_uid>[0-9\.]+)/$', views.get_series, name='get_series'),
63+
re_path(r'^series_ids/$', views.get_series, name='get_series_ids_base'),
64+
re_path(r'^series_ids_filter/$', views.get_series, name='get_series_ids_filter'),
65+
re_path(r'^series_ids/(?P<collection_id>[A-Za-z0-9\.\-_]+)/$', views.get_series, name='get_series_by_collex'),
66+
re_path(r'^series_ids/(?P<collection_id>[A-Za-z0-9\.\-_]+)/(?P<patient_id>[A-Za-z0-9\.\-_]+)/$', views.get_series, name='get_series_by_case'),
67+
re_path(r'^series_ids/(?P<collection_id>[A-Za-z0-9\.\-_]+)/(?P<patient_id>[A-Za-z0-9\.\-_]+)/(?P<study_uid>[0-9\.]+)/$', views.get_series, name='get_series'),
6568
re_path(r'^collaborators/$', views.collaborators, name='collaborators'),
6669
re_path(r'^collections/', include('idc_collections.urls')),
6770
re_path(r'^citations/', views.get_citations, name='get_citations'),

0 commit comments

Comments
 (0)