Skip to content

Commit a60af13

Browse files
author
Drew Proebstel
committed
Merge branch 'main' into FYST-2082-redirect-all-existing-ty-24-fyst-ur-ls-to-fileyourstatetaxes-org
2 parents ba3863c + f09178b commit a60af13

File tree

6 files changed

+16
-5
lines changed

6 files changed

+16
-5
lines changed

.circleci/config.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,16 @@ commands:
5454
steps:
5555
- restore_cache:
5656
key: bundle-{{ checksum "Gemfile.lock" }}
57+
- run:
58+
name: Configure Git credentials for private gems
59+
command: |
60+
git config --global url."https://x-access-token:${HONEYCRISP_PAT}@github.com/".insteadOf "https://github.com/"
5761
- run:
5862
name: install bundler & ruby dependencies
5963
command: |
60-
gem install bundler:2.3.5 --no-document && \
61-
bundle install --jobs=4 --retry=3 --path vendor/bundle
64+
gem install bundler:2.5.18 --no-document
65+
bundle config set --local path 'vendor/bundle'
66+
bundle install --jobs=4 --retry=3
6267
- save_cache:
6368
key: bundle-{{ checksum "Gemfile.lock" }}
6469
paths: [/mnt/ramdisk/vendor/bundle]

.github/workflows/heroku-pull-request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
LOG_LEVEL=info \
7676
RAILS_SERVE_STATIC_FILES=enabled \
7777
RAILS_MASTER_KEY=${{ secrets.HEROKU_RAILS_MASTER_KEY }} \
78-
BUNDLE_GITHUB__COM=${{ secrets.BUNDLE_GITHUB__COM }} \
78+
BUNDLE_GITHUB__COM=x-access-token:${{ secrets.HONEYCRISP_PAT }} \
7979
FRAUD_INDICATORS_KEY=${{ secrets.FRAUD_INDICATORS_KEY }} \
8080
HEROKU_DNS_AWS_ACCESS_KEY_ID=${{ secrets.HEROKU_DNS_AWS_ACCESS_KEY_ID }} \
8181
HEROKU_DNS_SECRET_ACCESS_KEY=${{ secrets.HEROKU_DNS_SECRET_ACCESS_KEY }} \

app/controllers/hub/organizations_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def activate_all_role_param
9595

9696
def organization_form_params
9797
params.require(:hub_organization_form).permit(
98-
:name, :is_independent, :states, :coalition_id, :timezone, :accepts_itin_applicants, :capacity_limit, :allows_greeters, source_parameters_attributes: [:_destroy, :id, :code]
98+
:name, :is_independent, :states, :coalition_id, :timezone, :accepts_itin_applicants, :capacity_limit, :allows_greeters, :national_overflow_location, source_parameters_attributes: [:_destroy, :id, :code]
9999
)
100100
end
101101

app/forms/hub/organization_form.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ class OrganizationForm < Form
44

55
attr_accessor :organization
66

7-
set_attributes_for :organization, :name, :coalition_id, :accepts_itin_applicants, :timezone, :capacity_limit, :allows_greeters
7+
set_attributes_for :organization, :name, :coalition_id, :accepts_itin_applicants, :timezone, :capacity_limit, :allows_greeters, :national_overflow_location
88
set_attributes_for :state_routing_targets, :states
99
set_attributes_for :organization_synthetic_attributes, :is_independent
1010

app/views/hub/organizations/_organization_form.html.erb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626

2727
<%= f.hub_checkbox(:allows_greeters, t('hub.organizations.form.allows_greeters'), options: { checked_value: true, unchecked_value: false, **local_assigns[:additional_options] }) %> <!-- local_assigns[:additional_options] sets default to true for new orgs -->
2828
<%= f.hub_checkbox(:accepts_itin_applicants, "Accepts ITIN applicants", options: { checked_value: true, unchecked_value: false }) %>
29+
<%= f.hub_checkbox(:national_overflow_location, "Allows National Routing", options: { checked_value: true, unchecked_value: false }) %>
2930
<div>
3031
<%= f.continue t("general.save") %>
3132
</div>

spec/forms/hub/organization_form_spec.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@
103103
capacity_limit: 9001,
104104
allows_greeters: true,
105105
accepts_itin_applicants: true,
106+
national_overflow_location: true,
106107
is_independent: "yes",
107108
states: "CA"
108109
}.merge(extra_params)
@@ -117,6 +118,7 @@
117118
capacity_limit: 9001,
118119
allows_greeters: true,
119120
accepts_itin_applicants: true,
121+
national_overflow_location: true,
120122
is_independent: "yes",
121123
states: "CA"
122124
}
@@ -140,6 +142,7 @@
140142
capacity_limit: "-5",
141143
allows_greeters: true,
142144
accepts_itin_applicants: true,
145+
national_overflow_location: true,
143146
is_independent: "yes",
144147
states: "CA"
145148
}
@@ -163,6 +166,7 @@
163166
capacity_limit: "-5",
164167
allows_greeters: true,
165168
accepts_itin_applicants: true,
169+
national_overflow_location: true,
166170
is_independent: "yes",
167171
states: "CA"
168172
}
@@ -185,6 +189,7 @@
185189
expect(organization.capacity_limit).to eq(9001)
186190
expect(organization.allows_greeters).to eq true
187191
expect(organization.accepts_itin_applicants).to eq true
192+
expect(organization.national_overflow_location).to eq true
188193
end
189194

190195
context "when is_independent is yes" do

0 commit comments

Comments
 (0)