Skip to content

Commit

Permalink
data_file samples_table action no longer needed #2052
Browse files Browse the repository at this point in the history
  • Loading branch information
stuzart committed Nov 12, 2024
1 parent f97b398 commit 4f1f065
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 22 deletions.
12 changes: 0 additions & 12 deletions app/controllers/data_files_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -152,18 +152,6 @@ def extracted_samples
end
end

def extracted_samples_table
respond_to do |format|
format.html do
render(partial: 'samples/table_view', locals: {
samples: @data_file.extracted_samples.includes(:sample_type),
source_url: extracted_samples_table_data_file_path(@data_file)
})
end
format.json { @samples = @data_file.extracted_samples.select([:id, :title, :json_metadata]) }
end
end

def select_sample_type
@possible_sample_types = @data_file.possible_sample_types

Expand Down
8 changes: 0 additions & 8 deletions app/views/data_files/samples_table.json.erb

This file was deleted.

1 change: 0 additions & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,6 @@
post :create_metadata
end
member do
get :extracted_samples_table
get :extracted_samples
get :select_sample_type
get :confirm_extraction
Expand Down
2 changes: 1 addition & 1 deletion lib/seek/permissions/translator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class Translator
view: Set.new(%i[
view show index search favourite favourite_delete comment comment_delete comments
comments_timeline rate tag items statistics tag_suggestions preview runs
new_object_based_on_existing_one extracted_samples extracted_samples_table current diagram
new_object_based_on_existing_one extracted_samples current diagram
]).freeze,

download: Set.new(%i[
Expand Down

0 comments on commit 4f1f065

Please sign in to comment.