Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
rawOrlando committed Nov 6, 2023
1 parent 68ef607 commit b36a13e
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ gem 'sass-rails'
gem 'uglifier'

gem 'blacklight', '7.24.0'
# pinned to not move to version 8, which breaks our custom javascript
# pinned to not move to version 8, which breaks our custom javascript
gem 'blacklight_range_limit', '7.8.0'

# removed pinned verision of '~> 0.4.10'
Expand Down
3 changes: 1 addition & 2 deletions app/assets/stylesheets/application.css
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ body {
min-width: 1080px;
background-color: #707070;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 14px;
font-size: 12px;
line-height: 1.4;
margin: 0;

Expand Down Expand Up @@ -70,7 +70,6 @@ a:active {
text-decoration: none;
}

/* temp figure out markdown like stuff*/
pre {
display: block;
padding: 9.5px;
Expand Down
7 changes: 0 additions & 7 deletions app/controllers/catalog_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,10 @@ class CatalogController < ApplicationController

# rubocop:disable Metrics/AbcSize
def show
Rails.logger.debug params[:id]
Rails.logger.debug "Why nothing else?"
if params[:id].start_with?('tufts') && Rails.env.production?
Rails.logger.debug "Start"
h = Net::HTTP.new('tdrsearch-prod-01.uit.tufts.edu', 8983)
Rails.logger.debug h
http_response = h.get("/solr/mira_prod/select?fl=id&indent=on&q=legacy_pid_tesim:\"#{params[:id]}\"&wt=ruby")
Rails.logger.debug http_response
rsp = eval(http_response.body)
Rails.logger.debug rsp
# params[:id] = rsp['response']['docs'][0]['id']
params[:id] = rsp['response']['docs'][0]['id'] if rsp['response']['docs'].present?
end
super
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ services:
command: >
bash -c "./build/entrypoint.sh &&
bundle exec rails s -p 4050 -b '0.0.0.0'"
ports:
- "${SERVER_PORTS}"
expose:
- "${SERVER_EXPOSE}"
Expand Down
2 changes: 1 addition & 1 deletion spec/controllers/candidates_controller_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true
require 'rails_helper'

describe CandidatesController, api: true do
describe CandidatesController do
render_views

it "should have index" do
Expand Down

0 comments on commit b36a13e

Please sign in to comment.