-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c9e9dad
commit 1332ecd
Showing
9 changed files
with
114 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
class Migration::FailuresController < ::AdminController | ||
layout "migration" | ||
|
||
def index | ||
@migration_failures = MigrationFailure.where(data_migration_id: DataMigration.where(model: params[:model]).select(:id)) | ||
@model = params[:model] | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<!DOCTYPE html> | ||
<html lang="en" class="govuk-template"> | ||
<%= render partial: "layouts/shared/head" %> | ||
|
||
<body class="govuk-template__body"> | ||
<%= render partial: "layouts/shared/js_enabled" %> | ||
<%= govuk_skip_link %> | ||
<%= govuk_header(full_width_border: true, html_attributes: { class: [environment_specific_header_colour_class] }) %> | ||
<%= govuk_service_navigation(service_name: "Register early career teachers") do |service_navigation| %> | ||
<%= service_navigation.with_navigation_item(text: "Sign out", href: sign_out_path) if authenticated? %> | ||
<% end %> | ||
|
||
<div class="govuk-width-container"> | ||
<%= environment_specific_phase_banner %> | ||
|
||
<main class="govuk-main-wrapper" id="main-content" role="main"> | ||
<div class="govuk-grid-row"> | ||
<div class="govuk-grid-column-full"> | ||
<%= yield(:backlink) %> | ||
<%= yield(:page_header) %> | ||
<%= yield %> | ||
</div> | ||
</div> | ||
</main> | ||
</div> | ||
|
||
<%= govuk_footer %> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<% page_data(title: "Migration failures for #{@model}", backlink_href: migrations_path) %> | ||
|
||
<p class="govuk-body"><strong><%= @migration_failures.count %></strong> failed records</p> | ||
|
||
<%= govuk_table do |table| | ||
table.with_head do |head| | ||
head.with_row do |row| | ||
row.with_cell(text: "No.") | ||
row.with_cell(text: "Source record") | ||
row.with_cell(text: "Validation failure") | ||
end | ||
end | ||
|
||
table.with_body do |body| | ||
@migration_failures.each_with_index do |failure, index| | ||
body.with_row(html_attributes: { class: "govuk-!-font-size-16" }) do |row| | ||
row.with_cell(text: index + 1) | ||
row.with_cell(text: failure_item_json_code(failure.item)) | ||
row.with_cell(text: failure.failure_message) | ||
end | ||
end | ||
end | ||
end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
# default: &default | ||
# dispatchers: | ||
# - polling_interval: 1 | ||
# batch_size: 500 | ||
# workers: | ||
# - queues: "*" | ||
# threads: 3 | ||
# processes: 1 | ||
# polling_interval: 0.1 | ||
# | ||
# development: | ||
# <<: *default | ||
# | ||
# test: | ||
# <<: *default | ||
# | ||
# production: | ||
# <<: *default | ||
default: &default | ||
dispatchers: | ||
- polling_interval: 1 | ||
batch_size: 500 | ||
workers: | ||
- queues: "*" | ||
threads: 3 | ||
processes: 3 | ||
polling_interval: 0.1 | ||
|
||
development: | ||
<<: *default | ||
|
||
test: | ||
<<: *default | ||
|
||
production: | ||
<<: *default |