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

Commit

Permalink
Merge pull request #73 from DataBiosphere/feature/add_aliases_field
Browse files Browse the repository at this point in the history
Include the "aliases" field in the file information
  • Loading branch information
Michael Baumann authored May 31, 2018
2 parents d0b4258 + 638b600 commit 5a6dcac
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions config/mapping_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"fileVersion": "file_version",
"urls": "urls",
"dosUrl": "dosUrl",
"aliases": "aliases",
"lastModified": "lastModified",
"repoBaseUrl": "repoBaseUrl",
"repoCode": "repoCode",
Expand Down
6 changes: 4 additions & 2 deletions config/request_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
"Upload File ID": "file_id",
"Data Bundle UUID": "repoDataBundleId",
"Metadata.json": "metadataJson",
"File URLs": "urls"
"File URLs": "urls",
"File Aliases": "aliases"
},
"autocomplete-translation": {
"ES_FILE_INDEX": {
Expand Down Expand Up @@ -99,7 +100,8 @@
"Upload File ID",
"Data Bundle UUID",
"Metadata.json",
"File URLs"
"File URLs",
"File Aliases"
],
"facets": [
"centerName",
Expand Down
2 changes: 2 additions & 0 deletions responseobjects/api_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class FileCopyObj(JsonObject):
fileVersion = StringProperty()
urls = ListProperty(StringProperty)
dosUri = StringProperty()
aliases = ListProperty(StringProperty)
# DateTimeProperty Int given the ICGC format uses
# an int and not DateTimeProperty
lastModified = StringProperty()
Expand Down Expand Up @@ -454,6 +455,7 @@ def make_file_copy(self, mapping, entry):
urls=self.fetch_entry_value(mapping, entry, 'urls'),
dosUri=self.compose_dos_uri(self.fetch_entry_value(mapping, entry, 'fileId'),
self.fetch_entry_value(mapping, entry, 'fileVersion')),
aliases=self.fetch_entry_value(mapping, entry, 'aliases'),
lastModified=self.fetch_entry_value(
mapping, entry, 'lastModified')
)
Expand Down

0 comments on commit 5a6dcac

Please sign in to comment.