Skip to content

Commit

Permalink
clean up comments
Browse files Browse the repository at this point in the history
  • Loading branch information
GcioGregg committed Dec 20, 2024
1 parent 125e2df commit e52b995
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/controllers/v1/institutions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ def normalized_query_params
end
end

# TODO: If filter counts are desired in the future, change boolean facets
# to use search_results.filter_count(param) instead of default value
def facets(results)
result = {
category: {
Expand Down
2 changes: 1 addition & 1 deletion spec/controllers/v1/institutions_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ def check_boolean_facets(facets)
expect(response).to match_response_schema('institution_search_results')
end

# New tests for coordinate-based name+location search
# tests for coordinate-based name+location search
it 'returns filtered results when searching by both name and coordinates' do
create(:institution, :production_version, :location, institution: 'HARVARD UNIVERSITY')
create(:institution, :production_version, :location, institution: 'BOSTON UNIVERSITY')
Expand Down

0 comments on commit e52b995

Please sign in to comment.