-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1112 from alphagov/bau-updates
Updates in response to initial feedback after reopening
- Loading branch information
Showing
27 changed files
with
446 additions
and
80 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
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
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,7 @@ | ||
<%= hidden_field_tag :tab, "blocked_emails" %> | ||
|
||
<%= form_row for: [form.object, :blocked_emails] do %> | ||
<%= error_messages_for_field @rate_limit, :blocked_emails %> | ||
<%= form.text_area :blocked_emails, tabindex: increment, rows: 15, class: 'form-control' %> | ||
<p><small>normalize the email address according to the <%= link_to "domain rules", admin_domains_path %></small><p> | ||
<% 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,14 +1,16 @@ | ||
json.period @parliament.period | ||
json.dissolution_at @parliament.dissolution_at | ||
json.government @parliament.government | ||
json.response_threshold @parliament.threshold_for_response | ||
json.debate_threshold @parliament.threshold_for_debate | ||
|
||
json.attributes do | ||
json.government @parliament.government | ||
json.response_threshold @parliament.threshold_for_response | ||
json.debate_threshold @parliament.threshold_for_debate | ||
end | ||
json.constituencies @parliament.constituencies.each do |constituency| | ||
json.constituency constituency.name | ||
json.ons_code constituency.ons_code | ||
json.start_date constituency.start_date | ||
json.end_date constituency.end_date | ||
json.constituencies do | ||
@constituencies.each do |constituency| | ||
json.set! constituency.ons_code do | ||
json.constituency constituency.name | ||
json.ons_code constituency.ons_code | ||
json.start_date constituency.start_date | ||
json.end_date constituency.end_date | ||
end | ||
end | ||
end |
This file was deleted.
Oops, something went wrong.
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
5 changes: 5 additions & 0 deletions
5
db/migrate/20241221160446_add_blocked_emails_to_rate_limit.rb
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,5 @@ | ||
class AddBlockedEmailsToRateLimit < ActiveRecord::Migration[7.2] | ||
def change | ||
add_column :rate_limits, :blocked_emails, :string, limit: 50000, null: false, default: "" | ||
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
Oops, something went wrong.