Skip to content

Commit

Permalink
Remove changes relating to group to move to new branch
Browse files Browse the repository at this point in the history
  • Loading branch information
malchua committed Jan 27, 2025
1 parent 1872de6 commit 493bce6
Show file tree
Hide file tree
Showing 11 changed files with 0 additions and 257 deletions.
64 changes: 0 additions & 64 deletions app/controllers/groups/workflow_executions_controller.rb

This file was deleted.

7 changes: 0 additions & 7 deletions app/policies/group_policy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -174,13 +174,6 @@ def submit_workflow?
false
end

def view_workflow_executions?
return true if effective_access_level >= Member::AccessLevel::ANALYST

details[:name] = record.name
false
end

def export_data?
return true if effective_access_level >= Member::AccessLevel::ANALYST

Expand Down
10 changes: 0 additions & 10 deletions app/policies/workflow_execution_policy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -116,14 +116,4 @@ def update?
relation.where(submitter: project.namespace.automation_bot)
.or(relation.where(namespace_id: project.namespace.id, shared_with_namespace: true))
end

scope_for :relation, :group_shared do |relation, options|
group = options[:group]

relation
.where(
namespace_id: Namespaces::ProjectNamespace.where(parent_id: group.self_and_descendants.select(:id)).select(:id),
shared_with_namespace: true
)
end
end
18 changes: 0 additions & 18 deletions app/views/groups/workflow_executions/_table.html.erb

This file was deleted.

65 changes: 0 additions & 65 deletions app/views/groups/workflow_executions/index.html.erb

This file was deleted.

8 changes: 0 additions & 8 deletions app/views/layouts/groups.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,6 @@
label: t(:"groups.sidebar.activity"),
selected: @current_page == t(:"groups.sidebar.activity"),
) %>
<% if allowed_to?(:view_workflow_executions?, @group) && @pipelines_enabled %>
<%= render section.with_item(
url: group_workflow_executions_path(@group),
icon: "command_line",
label: t(:"groups.sidebar.workflow_executions"),
selected: @current_page == t(:"groups.sidebar.workflow_executions"),
) %>
<% end %>
<% if allowed_to?(:update?, @group) %>
<%= render section.with_multi_level_menu(
title: t(:"groups.sidebar.settings"),
Expand Down
22 changes: 0 additions & 22 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -860,7 +860,6 @@ en:
members: Members
samples: Samples
settings: Settings
workflow_executions: Workflow Executions
subgroups:
index:
pagy:
Expand All @@ -876,27 +875,6 @@ en:
success: Group transferred successfully
update:
success: Group %{group_name} was successfully updated
workflow_executions:
files:
table_header:
created_at: Created At
filename: Filename
format: Format
puid: ID
size: Size
type: Type
index:
create_export_button: Create Export
deselect_all_button: Deselect All
search:
placeholder: Filter by ID or name
select_all_button: Select All
subtitle: These are the workflow executions that have been shared within this group
title: Workflow Executions
table:
empty:
description: There are no automated pipelines associated with this project.
title: No automated pipelines.
layouts:
application:
site_title: IRIDA Next
Expand Down
22 changes: 0 additions & 22 deletions config/locales/fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -860,7 +860,6 @@ fr:
members: Members
samples: Samples
settings: Settings
workflow_executions: Workflow Executions
subgroups:
index:
pagy:
Expand All @@ -876,27 +875,6 @@ fr:
success: Group transferred successfully
update:
success: Group %{group_name} was successfully updated
workflow_executions:
files:
table_header:
created_at: Created At
filename: Filename
format: Format
puid: ID
size: Size
type: Type
index:
create_export_button: Create Export
deselect_all_button: Deselect All
search:
placeholder: Filter by ID or name
select_all_button: Select All
subtitle: These are the workflow executions that have been shared within this group
title: Workflow Executions
table:
empty:
description: There are no automated pipelines associated with this project.
title: No automated pipelines.
layouts:
application:
site_title: IRIDA Next
Expand Down
11 changes: 0 additions & 11 deletions config/routes/group.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,6 @@
end
end

if Irida::Pipelines.instance.available_pipelines.any?
resources :workflow_executions, only: %i[index destroy show edit update] do
member do
put :cancel
end
collection do
get :select
end
end
end

resources :attachments, only: %i[create destroy index new] do
get :new_destroy
end
Expand Down
21 changes: 0 additions & 21 deletions test/controllers/groups/workflow_executions_controller_test.rb

This file was deleted.

9 changes: 0 additions & 9 deletions test/policies/workflow_execution_policy_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,4 @@ def setup

assert_equal 12, workflow_executions.count
end

test 'group shared scope' do
group = groups(:group_one)

workflow_executions = @policy.apply_scope(WorkflowExecution, type: :relation, name: :group_shared,
scope_options: { group: })

assert_equal 3, workflow_executions.count
end
end

0 comments on commit 493bce6

Please sign in to comment.