Skip to content
This repository was archived by the owner on Dec 5, 2018. It is now read-only.

Commit 5a6dcac

Browse files
author
Michael Baumann
authored
Merge pull request #73 from DataBiosphere/feature/add_aliases_field
Include the "aliases" field in the file information
2 parents d0b4258 + 638b600 commit 5a6dcac

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

config/mapping_config.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
"fileVersion": "file_version",
4646
"urls": "urls",
4747
"dosUrl": "dosUrl",
48+
"aliases": "aliases",
4849
"lastModified": "lastModified",
4950
"repoBaseUrl": "repoBaseUrl",
5051
"repoCode": "repoCode",

config/request_config.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
"Upload File ID": "file_id",
3636
"Data Bundle UUID": "repoDataBundleId",
3737
"Metadata.json": "metadataJson",
38-
"File URLs": "urls"
38+
"File URLs": "urls",
39+
"File Aliases": "aliases"
3940
},
4041
"autocomplete-translation": {
4142
"ES_FILE_INDEX": {
@@ -99,7 +100,8 @@
99100
"Upload File ID",
100101
"Data Bundle UUID",
101102
"Metadata.json",
102-
"File URLs"
103+
"File URLs",
104+
"File Aliases"
103105
],
104106
"facets": [
105107
"centerName",

responseobjects/api_response.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ class FileCopyObj(JsonObject):
3434
fileVersion = StringProperty()
3535
urls = ListProperty(StringProperty)
3636
dosUri = StringProperty()
37+
aliases = ListProperty(StringProperty)
3738
# DateTimeProperty Int given the ICGC format uses
3839
# an int and not DateTimeProperty
3940
lastModified = StringProperty()
@@ -454,6 +455,7 @@ def make_file_copy(self, mapping, entry):
454455
urls=self.fetch_entry_value(mapping, entry, 'urls'),
455456
dosUri=self.compose_dos_uri(self.fetch_entry_value(mapping, entry, 'fileId'),
456457
self.fetch_entry_value(mapping, entry, 'fileVersion')),
458+
aliases=self.fetch_entry_value(mapping, entry, 'aliases'),
457459
lastModified=self.fetch_entry_value(
458460
mapping, entry, 'lastModified')
459461
)

0 commit comments

Comments
 (0)