Skip to content

Commit

Permalink
Merge pull request #115 from Ensembl/bugfix/fix_getFTPLinks
Browse files Browse the repository at this point in the history
🐛  Fix broken GetFTPLinks gRPC procedure
  • Loading branch information
bilalebi authored Oct 15, 2024
2 parents f194674 + 06117af commit fd94633
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.1.0
3.2.1
13 changes: 13 additions & 0 deletions src/ensembl/production/metadata/api/models/genome.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,19 @@ def get_public_path(self, dataset_type='all', release=None):
if 'regulatory_features' == dataset_type or 'regulation_build' == dataset_type:
dataset_type = 'regulation'

# if any of these three values are in unique_dataset_types
discarded_homology_types = {'homology_load', 'homology_compute', 'homology_ftp'}
if unique_dataset_types.intersection(discarded_homology_types):
# discard them
unique_dataset_types.difference_update(discarded_homology_types)
# and add 'homologies' if it doesn't exist
unique_dataset_types.add('homologies')

discarded_web_types = {'web_genesearch', 'web_genomediscovery'}
if unique_dataset_types.intersection(discarded_web_types):
# we are just discarding them for now
unique_dataset_types.difference_update(discarded_web_types)

# Defining path templates
path_templates = {
'genebuild': f"{common_path}/geneset/{genebuild_version}",
Expand Down

0 comments on commit fd94633

Please sign in to comment.