Skip to content

Commit

Permalink
Remove Indexer backlog from header
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed May 14, 2020
1 parent 27cffbb commit e9fe072
Show file tree
Hide file tree
Showing 14 changed files with 3 additions and 208 deletions.
9 changes: 0 additions & 9 deletions app/controllers/index_queue_controller.rb

This file was deleted.

28 changes: 0 additions & 28 deletions app/javascript/modules/index_queue.js

This file was deleted.

7 changes: 0 additions & 7 deletions app/javascript/packs/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import 'modules/apo_form'
import 'modules/button_checker'
import 'modules/datastream_edit'
import 'modules/date_range_query'
import 'modules/index_queue'
import ItemCollection from 'modules/item_collection'
import 'modules/permission_add'
import 'modules/permission_grant'
Expand Down Expand Up @@ -71,12 +70,6 @@ Blacklight.onLoad(function() {
// $('[data-datepicker]').datepicker()
})


Blacklight.onLoad(function() {
$('[data-index-queue-depth-url]').indexQueueDepth()
})


Blacklight.onLoad(function() {
new ItemCollection().initialize()
})
Expand Down
1 change: 0 additions & 1 deletion app/javascript/style/application.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ $logo-image: "../images/logo.png";
@import "document";
@import "embargo";
@import "icons";
@import "index_queue";
@import "profile";
@import "search_results";
@import "show";
Expand Down
3 changes: 0 additions & 3 deletions app/javascript/style/index_queue.scss

This file was deleted.

5 changes: 0 additions & 5 deletions app/models/argo/exceptions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@

module Argo
module Exceptions
class IndexQueueRequestFailed < StandardError
end
class IndexQueueInvalidResponse < StandardError
end

# Raised if there is a problem communicating with dor_indexing_app
class ReindexError < RuntimeError; end
end
Expand Down
36 changes: 0 additions & 36 deletions app/models/index_queue.rb

This file was deleted.

7 changes: 0 additions & 7 deletions app/views/_user_util_links.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,5 @@
</li>

<li><%= link_to 'Feedback', 'mailto:argo-feedback@lists.stanford.edu' %></li>

<li>
<p class='navbar-text'>
Indexer Backlog: <span data-index-queue-depth-url="<%= index_queue_depth_path %>"></span>
</p>
</li>

</ul>
</div>
2 changes: 0 additions & 2 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,6 @@
resources :objects, only: :create # we only implement create for object registration
end

get 'index_queue/depth', to: 'index_queue#depth'

namespace :workflow_service do
get '/:pid/closeable',
action: 'closeable',
Expand Down
19 changes: 0 additions & 19 deletions spec/controllers/index_queue_controller_spec.rb

This file was deleted.

25 changes: 0 additions & 25 deletions spec/features/indexer_backlog_spec.rb

This file was deleted.

54 changes: 0 additions & 54 deletions spec/models/index_queue_spec.rb

This file was deleted.

9 changes: 0 additions & 9 deletions spec/support/mock_index_depth.rb

This file was deleted.

6 changes: 3 additions & 3 deletions spec/views/_user_util_links.html.erb_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
render
expect(rendered).to have_css '.navbar-right'
expect(rendered).to have_css 'ul.nav.navbar-nav'
expect(rendered).to have_css 'li', count: 10
expect(rendered).to have_css 'li', count: 9
expect(rendered).to have_css 'li.dropdown ul li a', text: 'Register Items'
expect(rendered).not_to have_css 'li.dropdown ul li a', text: 'Register APO'
expect(rendered).to have_css 'li.dropdown ul li a', text: 'Bulk Update (synchronous)'
Expand All @@ -30,7 +30,7 @@
render
expect(rendered).to have_css '.navbar-right'
expect(rendered).to have_css 'ul.nav.navbar-nav'
expect(rendered).to have_css 'li', count: 12
expect(rendered).to have_css 'li', count: 11
expect(rendered).to have_css 'li.dropdown ul li a', text: 'Register Items'
expect(rendered).to have_css 'li.dropdown ul li a', text: 'Register APO'
expect(rendered).to have_css 'li', text: 'Impersonate'
Expand All @@ -56,7 +56,7 @@
render
expect(rendered).to have_css '.navbar-right'
expect(rendered).to have_css 'ul.nav.navbar-nav'
expect(rendered).to have_css 'li', count: 11
expect(rendered).to have_css 'li', count: 10
end
end
end

0 comments on commit e9fe072

Please sign in to comment.