Skip to content

Commit

Permalink
Remove code related to continuing activities
Browse files Browse the repository at this point in the history
Now that the one-off data migration related to the new DSIT transparency
(IATI) identifier has been done, we need to remove the temporary code
that has enabled the exports and the data changes.
  • Loading branch information
CristinaRO committed Jan 25, 2024
1 parent a93a149 commit 05645d9
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 441 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

[Full changelog][unreleased]

- Remove the supporting code for the one-off data migration related to the new DSIT transparency identifier (rake task and continuing/non-continuing activities exports)

## Release 144 - 2024-01-24

[Full changelog][144]
Expand Down
28 changes: 0 additions & 28 deletions app/controllers/exports_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,32 +74,4 @@ def spending_breakdown_download
response.stream.write(spending_breakdown_csv)
response.stream.close
end

def continuing_activities
authorize :export, :show_continuing_activities?

respond_to do |format|
format.csv do
export = Export::ContinuingActivities.new

stream_csv_download(filename: export.filename, headers: export.headers) do |csv|
export.rows.each { |row| csv << row }
end
end
end
end

def non_continuing_activities
authorize :export, :show_continuing_activities?

respond_to do |format|
format.csv do
export = Export::ContinuingActivities.new

stream_csv_download(filename: export.non_continuing_filename, headers: export.non_continuing_headers) do |csv|
export.non_continuing_rows.each { |row| csv << row }
end
end
end
end
end
4 changes: 0 additions & 4 deletions app/policies/export_policy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,4 @@ def show_budgets?
def show_spending_breakdown?
user.service_owner?
end

def show_continuing_activities?
user.service_owner?
end
end
182 changes: 0 additions & 182 deletions app/services/export/continuing_activities.rb

This file was deleted.

28 changes: 0 additions & 28 deletions app/views/exports/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -50,34 +50,6 @@
- else
= a11y_action_link("Request", spending_breakdown_exports_path(fund_id: fund.id), t("table.export.spending_breakdown.name", fund: fund.name), ["govuk-link--no-visited-state"])

%h1.govuk-heading-m
Ad-hoc exports

%table.govuk-table
%thead.govuk-table__head
%tr.govuk-table__row
%th.govuk-table__header{scope: "col"}
Purpose
%th.govuk-table__header{scope: "col"}
= t("table.export.header.format")
%th.govuk-table__header{scope: "col"}
= t("table.header.default.actions")
%tbody.govuk-table__body
%tr.govuk-table__row
%td.govuk-table__cell
Activities continuing under GB-GOV-26
%td.govuk-table__cell
CSV
%td.govuk-table__cell
= a11y_action_link("Download", continuing_activities_exports_path(format: "csv"))
%tr.govuk-table__row
%td.govuk-table__cell
Activities not continuing under GB-GOV-26
%td.govuk-table__cell
CSV
%td.govuk-table__cell
= a11y_action_link("Download", non_continuing_activities_exports_path(format: "csv"))

%h1.govuk-heading-m
= t("page_content.export.organisations.title")

Expand Down
2 changes: 0 additions & 2 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@
member do
get "spending_breakdown_download"
end
get "continuing_activities", on: :collection
get "non_continuing_activities", on: :collection
end

namespace :exports do
Expand Down
78 changes: 0 additions & 78 deletions lib/tasks/continuing_activities_actuals_and_forecasts.rake

This file was deleted.

Loading

0 comments on commit 05645d9

Please sign in to comment.