Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resource index revision #1

Merged
merged 16 commits into from
Aug 22, 2014
Merged
Prev Previous commit
Not-used constants for RI
  • Loading branch information
palexander committed Aug 22, 2014
commit 3bdee3c3f627b7b48fa8f9b6cc655ecb409b0e52
5 changes: 0 additions & 5 deletions app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@ class ApplicationController < ActionController::Base
REST_URI_BATCH = REST_URI + '/batch'
REST_URI_RECENT_MAPPINGS = "#{REST_URI}/mappings/recent/"

# Constants used primarily in the resource_index_controller, but also elsewhere.
RESOURCE_INDEX_URI = REST_URI + '/resource_index'
RI_ELEMENT_ANNOTATIONS_URI = RESOURCE_INDEX_URI + '/element_annotations'
RI_RANKED_ELEMENTS_URI = RESOURCE_INDEX_URI + '/ranked_elements'
RI_RESOURCES_URI = RESOURCE_INDEX_URI + '/resources'
# Note that STATS is a DIRECT CONNECTION to the JAVA-REST API
RI_STATS_URI = 'http://rest.bioontology.org/resource_index/statistics/all'

Expand Down
8 changes: 0 additions & 8 deletions app/controllers/resource_index_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,6 @@ class ResourceIndexController < ApplicationController

layout 'ontology'

# Constants moved to the ApplicationController so they are available elsewhere too.
#RESOURCE_INDEX_URI = REST_URI + "/resource_index"
#RI_ELEMENT_ANNOTATIONS_URI = RESOURCE_INDEX_URI + "/element_annotations"
#RI_ONTOLOGIES_URI = RESOURCE_INDEX_URI + "/ontologies"
#RI_RANKED_ELEMENTS_URI = RESOURCE_INDEX_URI + "/ranked_elements"
#RI_RESOURCES_URI = RESOURCE_INDEX_URI + "/resources"
RI_HIERARCHY_MAX_LEVEL='3'

# Resource Index annotation offsets rely on latin-1 character sets for the count to be right. So we set all responses as latin-1.
before_filter :set_encoding

Expand Down