Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
10000 commits
Select commit Hold shift + click to select a range
fe90559
Fixes rubocop errors
Battula May 20, 2021
878fce1
Fixes rubocop issues
Battula May 20, 2021
aa42e1b
Fixes issue with plan loading
Battula May 24, 2021
fb9b21a
Fixes spec failures
Battula May 25, 2021
52ba22d
refs #R4 Fixes issue with carriers not displaying for employers
Battula May 25, 2021
435696d
Fixes off-cycle benefit application display on EE roster
Battula May 27, 2021
92bb95f
Fixes spec failure
Battula Jun 1, 2021
b9284e6
Fixes employee dep age off spec
Battula Jun 2, 2021
33dc893
Fixes benefit group assignment spec
Battula Jun 2, 2021
0bc1c84
Fixes rubocop issues
Battula Jun 2, 2021
236f90c
Fixes enrollment_ineligble display on CE roster
Battula Jun 4, 2021
8f592c2
refs #R4 Auto-cancels enrollment when application is moved to enrollm…
Battula Jun 1, 2021
2fe62d0
Fixes issue with missing hbx_enrollment on BGA
Battula Jun 16, 2021
c30c994
Revert to using old BenefitGroupAssignment#hbx_enrollment
Battula Jun 16, 2021
d147aac
refs #43080 Gives Admin ability to perform exceptions
Battula May 14, 2021
84a3853
Merge branch 'bug_92044' into rc-release-5.7.18
sri49 Jun 28, 2021
0980789
Merge branch 'fix_pdf_zoom' into rc-release-5.7.18
sri49 Jun 28, 2021
4bc7044
Merge branch 'data_95498' into rc-release-5.7.18
sri49 Jun 28, 2021
ce40af1
Merge pull request #2069 from health-connector/fixes_summary_display
ZASMan Jun 28, 2021
00f0996
Merge pull request #2073 from health-connector/exported_qhp_bug_fix
ZASMan Jun 28, 2021
771afe2
Merge pull request #2075 from health-connector/sep_period_eligible_fix
harshared Jun 28, 2021
a4430f0
reloads updated user params
utkarsh7989 Jun 24, 2021
e59a56d
ref:85150 updates hidden fields after input text loads
utkarsh7989 Jun 28, 2021
f521e71
REFS maintenance - fixes potential for missing id in broker agencies …
ZASMan Jun 29, 2021
ae2a7b6
Merge pull request #2070 from health-connector/qhps_compact_fix
bill-transue Jun 29, 2021
0d34d92
REEFS maintenance - adds a spec for profile controller.
ZASMan Jun 29, 2021
be3c074
Merge pull request #2079 from health-connector/fixes_profiles_controller
harshared Jun 30, 2021
1a7fcf3
Merge pull request #2076 from health-connector/rc-release-5.7.18
harshared Jun 30, 2021
404a62f
Merge remote-tracking branch 'origin/employer_eligibility_admin_feature'
harshared Jun 30, 2021
b05b867
Revert "Merge remote-tracking branch 'origin/employer_eligibility_adm…
harshared Jun 30, 2021
53dac4f
Revert "Revert "Merge remote-tracking branch 'origin/employer_eligibi…
harshared Jun 30, 2021
1702535
robocop and feature fix
harshared Jun 30, 2021
b2b71a4
cuke fix
harshared Jun 30, 2021
ccb7919
Fixes qhp_controller_spec
Battula Jul 1, 2021
5b93df4
Fixes qhp controller spec
Battula Jul 1, 2021
58e3c92
Merge pull request #2082 from health-connector/fixes_to_qhp_controlle…
harshared Jul 1, 2021
341eb57
Fix highest cost plan showing zero
vineelsonnathi Jul 3, 2021
3f9a0c7
95682: export employers update
nks2109 Jul 7, 2021
3dc69db
Fix plans count
vineelsonnathi Jul 8, 2021
7ba61d7
Refactor code
vineelsonnathi Jul 8, 2021
f09c63c
doesnt change the status if broker agency is same
utkarsh7989 Jul 7, 2021
da0b366
adds specs
utkarsh7989 Jul 12, 2021
ef3b293
Merge branch 'bug_85150' into rc-release-5.7.19
sri49 Jul 12, 2021
dc311f0
Merge branch 'data_95682' into rc-release-5.7.19
sri49 Jul 12, 2021
6d0e124
add conditional to check if agency var is not nil
jacobkagon Jul 12, 2021
9a5a8fb
Update addressable to version 2.8.0
depfu[bot] Jul 12, 2021
5b681b0
removed spec
jacobkagon Jul 13, 2021
abbb379
rubocop fix
jacobkagon Jul 13, 2021
5e02e92
REFS Maintenance - Refactors authentication in sponsored benefits con…
ZASMan Jul 13, 2021
b6c4d7d
Merge pull request #2091 from health-connector/rc-release-5.7.19
harshared Jul 14, 2021
02d2e46
Merge pull request #2096 from health-connector/plan_design_proposals_fix
harshared Jul 14, 2021
cba6270
update addressable gem from 2.3.8 to 2.8.0
jacobkagon Jul 15, 2021
014555e
check if agency is nil
jacobkagon Jul 16, 2021
7ddccf0
rubocop fix
jacobkagon Jul 16, 2021
7a986fa
Merge pull request #2094 from health-connector/depfu/update/addressab…
bill-transue Jul 16, 2021
96f820b
change date to date_label
Jul 14, 2021
2de668c
missing comma
Jul 15, 2021
5e31a79
Merge pull request #2095 from health-connector/new-relic-MA-7-12
harshared Jul 19, 2021
e40d8fe
REFS maintenance - Fixes edge case in family members controller.
ZASMan Jun 21, 2021
eb37107
Merge pull request #2097 from health-connector/new_relic_7/13
harshared Jul 20, 2021
c6c5b17
Update family_members_controller.rb
ZASMan Jul 20, 2021
e6bb29f
Update family_members_controller.rb
ZASMan Jul 21, 2021
ad1e822
95792: fixed Employer Export Not Populating benefit application infor…
nks2109 Jul 21, 2021
45e150f
validates employer poc
utkarsh7989 Jul 22, 2021
4389eb9
fixes rubocop errors
utkarsh7989 Jul 22, 2021
570f101
95792: fixed an arugument in import_to_csv method
nks2109 Jul 23, 2021
dfb8c9d
Merge branch 'bug_95768' into rc-release-5.7.20
sri49 Jul 23, 2021
a09beec
Enhances on_date method on BenefitGroupAssignment
Battula Jul 23, 2021
3cd5a56
Merge branch 'data-95760' into rc-release-5.7.20
sri49 Jul 23, 2021
76c120a
Merge pull request #2106 from health-connector/rc-release-5.7.20
harshared Jul 24, 2021
8130c47
Merge branch 'vs_fix_fallon_issue_on_metal_level_select' into rc-rele…
sri49 Jul 26, 2021
a501489
Merge pull request #2071 from health-connector/family_members_fix
harshared Jul 27, 2021
b3732e9
use require to access to tempfile
utkarsh7989 Jul 28, 2021
c7b1db6
Merge pull request #2107 from health-connector/rc-release-5.7.21
harshared Jul 28, 2021
27054b5
REFS Maintenance - Adds exception.
ZASMan Jul 19, 2021
6998b56
REFS maintenance - requires benefit application id on benefit package…
ZASMan Jun 30, 2021
ac682b5
REFS maintenance - Adds validation of benefit app id.
ZASMan Jun 30, 2021
a8c4aa7
REFS maintenance - reverts controller spec.
ZASMan Jun 30, 2021
42d5b0f
REFS maintenance - fixes rubocop stuff.
ZASMan Jun 30, 2021
36c2b6b
REFS maintenance - fixes spec to only run on blank benefit applciatio…
ZASMan Jun 30, 2021
663346a
add spec and fix employer validation
jacobkagon Jul 19, 2021
3568f62
REFS Maintenance - Fixes pland esign proposal disable.
ZASMan Jul 19, 2021
82b2abf
pass empty string instead of running regexp on null
Jul 7, 2021
d6ad6ce
simplified turnary statement
Jul 20, 2021
1249ce9
REFS maintenance - fixes select health benefits button.
ZASMan Jul 27, 2021
4784e42
REFs maintenance - fixes condition.
ZASMan Jul 27, 2021
27ad2f5
Update _form.html.erb
ZASMan Jul 27, 2021
4ff0e9e
REFS maintenance - fixes unnecssary change.
ZASMan Jul 28, 2021
591479e
REFS Maintenance - Removes problematic file.
ZASMan Jul 28, 2021
eaf5184
RESF maintenance - reverts unnecssary changes.
ZASMan Jul 29, 2021
4cee507
Merge pull request #2099 from health-connector/broker_agency_unassign…
harshared Jul 29, 2021
b646b23
add main_app before root_url
jacobkagon Aug 2, 2021
a0be661
Merge pull request #2112 from health-connector/undefined_method_root_…
bill-transue Aug 2, 2021
68cb76e
Merge pull request #2110 from health-connector/bug_95791
harshared Aug 3, 2021
36c1a76
Fix broker contribtion slider
vineelsonnathi Aug 9, 2021
44589c5
Revert changes
vineelsonnathi Aug 10, 2021
10f7017
REFS maintenance - fixes cucumber.
ZASMan Aug 10, 2021
7493207
Merge remote-tracking branch 'origin/support_95792' into rc-release-5…
harshared Aug 11, 2021
06c1825
Merge remote-tracking branch 'origin/bug_95469' into rc-release-5.7.22
harshared Aug 11, 2021
71dda1b
changes renewal generation date for q4
utkarsh7989 Aug 12, 2021
6e9f890
Merge remote-tracking branch 'origin/vs_95992_broker_unable_to_select…
harshared Aug 12, 2021
987a891
Merge remote-tracking branch 'origin/q4_renewal_date' into rc-release…
harshared Aug 12, 2021
100124b
Merge pull request #2129 from health-connector/rc-release-5.7.22
harshared Aug 17, 2021
625481e
96071: Update date
vineelsonnathi Aug 18, 2021
1c1b1b2
REFS Maintenance - Transliterates any special latin accent marks in s…
ZASMan Aug 11, 2021
df25eac
Merge pull request #2120 from health-connector/soa_mailer_exception_fix
harshared Aug 19, 2021
c43ee62
refactors fetching sponsored_benefit_package
utkarsh7989 Aug 20, 2021
5aca9ec
Merge pull request #2127 from health-connector/vs_q4_96071_change_q4_…
harshared Aug 20, 2021
ed0d0b5
ref:96132 update renewal generation date
utkarsh7989 Aug 22, 2021
ee0dcca
REFS maintenance - fixes soa mailer issue.
ZASMan Aug 23, 2021
7b0d988
Merge pull request #2133 from health-connector/soa_mailer_fix
bill-transue Aug 23, 2021
d839380
Merge pull request #2132 from health-connector/support_96132
harshared Aug 23, 2021
3a97140
Fix mailer
vineelsonnathi Aug 23, 2021
6e63a5d
Merge pull request #2135 from health-connector/vs_q4_96071_change_q4_…
bill-transue Aug 24, 2021
17a4453
Refs 96072 : Revert to 1st
vineelsonnathi Aug 26, 2021
73fe2fe
fixes the issue when multiple bgas with no end_on date present
utkarsh7989 Aug 27, 2021
941c973
adds specs
utkarsh7989 Aug 27, 2021
d18d49e
Merge pull request #2140 from health-connector/rc-release-5.7.23
harshared Aug 31, 2021
c602146
spec fixes
utkarsh7989 Sep 5, 2021
c73256c
Merge pull request #2143 from health-connector/master_spec_fixes
harshared Sep 6, 2021
9d4a24b
Merge pull request #2139 from health-connector/bug_96308
harshared Sep 6, 2021
dd721e8
Merge pull request #2131 from health-connector/bug_96078
harshared Sep 15, 2021
cc6ee00
ref:96509 fixes carrier appointments in broker applications
utkarsh7989 Sep 17, 2021
0007ccc
fixes css issue
utkarsh7989 Sep 17, 2021
9546aa8
Updates carrier text
utkarsh7989 Sep 22, 2021
34fe92c
refactors age off notice
utkarsh7989 Sep 30, 2021
e64b33b
Make updates to cross walk parser
vineelsonnathi Jul 28, 2021
2f0261e
Load 2022 plans
vineelsonnathi Sep 8, 2021
f4378da
Import rates when rating areas are multiple
vineelsonnathi Sep 8, 2021
3a60dd1
Update Altus Dental image
vineelsonnathi Sep 9, 2021
74d71d0
Fix carrier contact information
vineelsonnathi Sep 10, 2021
a3b2a39
Fix specs
vineelsonnathi Sep 10, 2021
6cc0141
Fix publish dental benefits
vineelsonnathi Aug 25, 2021
d999d5e
Allow EE portal updates to flow to census employee roster
Battula Aug 23, 2021
a864673
Fixes rubocop errors
Battula Aug 24, 2021
2107368
Fixes failing specs
Battula Aug 24, 2021
cb7475f
Fixes family member spec
Battula Aug 24, 2021
ff2f58f
Fixes issues with census dependent updates
Battula Aug 24, 2021
4ce55c2
Address multiple roster issue
Battula Aug 25, 2021
60bee29
Do not update census dependent SSN
Battula Aug 25, 2021
4cc05d5
Added enrollment triggers for EE roster updates
Battula Sep 2, 2021
f040ca8
Fixes spec failures - added save navigation operator
Battula Sep 2, 2021
474ce5a
Address some more spec failures
Battula Sep 2, 2021
f9f6dc0
Fixes employer helper spec
Battula Sep 3, 2021
940e270
Fixes terminate benefit application spec
Battula Sep 3, 2021
a3b6535
Deletes unenrolled census dependent
Battula Sep 8, 2021
2a74765
Fixes rubocop errors
Battula Sep 8, 2021
f43b6ed
Fixes census members update spec
Battula Sep 9, 2021
d7a9cd7
Blocks system from creating duplicate dependent records
Battula Sep 14, 2021
69c611a
clearing census dependents to match with enrolled dependents
nisanthyaganti9 Sep 14, 2021
d5dee19
Fixes rubocop
Battula Sep 14, 2021
85ba580
Fixes verbiage on terminate modal
Battula Oct 5, 2021
a53fefd
refs #96725 Do not update relationship kind unless valid
Battula Oct 6, 2021
5837307
Refs #96767 Do not let demographic updates flow for cobra EEs
Battula Oct 7, 2021
beec25c
Use double quotes instead of single quotes when showing network infor…
vineelsonnathi Oct 8, 2021
d2d48e2
Fix spesc
vineelsonnathi Oct 8, 2021
e35859c
Push Gemfile.lock showing updates
vineelsonnathi Oct 8, 2021
52a102f
Fix spec
vineelsonnathi Oct 9, 2021
dee23f2
Fix spesc
vineelsonnathi Oct 8, 2021
cd7030f
Fix spec
vineelsonnathi Oct 9, 2021
666f392
Merge pull request #2157 from health-connector/spec_fixes
harshared Oct 11, 2021
6a0fe33
removing auto renewal from valid statuses
nisanthyaganti9 Oct 12, 2021
09a43fb
Merge remote-tracking branch 'origin/master' into ee_info_updates
nisanthyaganti9 Oct 12, 2021
dabff31
spec fixes
nisanthyaganti9 Oct 12, 2021
66abf20
updating match criteria
nisanthyaganti9 Oct 12, 2021
05a5e05
fixing annoying rubocop error
nisanthyaganti9 Oct 13, 2021
c35e13f
refs #96310 Updates termination verbiage
Battula Oct 14, 2021
f7d985b
Merge remote-tracking branch 'origin/vs_ma_load_2022_plans' into rele…
harshared Oct 15, 2021
863a6be
Merge remote-tracking branch 'origin/refactor_ageoff_notice' into rel…
harshared Oct 15, 2021
d61ef7d
Merge remote-tracking branch 'origin/data_96509' into release_ma_5.7.30
harshared Oct 15, 2021
07efe50
Merge remote-tracking branch 'origin/ee_info_updates' into release_ma…
harshared Oct 15, 2021
1608c4e
Merge pull request #2160 from health-connector/release_ma_5.7.30
harshared Oct 19, 2021
eb7578e
run full check suite nightly
markgoho Nov 26, 2021
7ecf6bd
fix date-based rspec and cucumber failures (#2165)
utkarsh7989 Dec 2, 2021
ace8a18
Update binder payment dates (#2164)
sri49 Dec 3, 2021
c2c7fc0
updates correct business resource link
utkarsh7989 Dec 15, 2021
bcf3efe
Merge branch 'bug_97353'
matt--williams Dec 19, 2021
276c520
Fix spec failures (#2171)
Battula Jan 3, 2022
4c1f174
Bug 96979 (#2163)
utkarsh7989 Jan 4, 2022
8af07b0
changes the renewal generation date to 25 (#2173)
sri49 Jan 27, 2022
1812986
disable rubocop and turn off fail fast
markgoho Feb 7, 2022
6f76e0a
fixes date change cuke failures (#2178)
utkarsh7989 Feb 7, 2022
74eeb9f
adds term date in age off notice (#2174)
utkarsh7989 Feb 7, 2022
8d152cb
Rc release 5.7.36 (#2183)
sri49 Feb 24, 2022
3d8683c
Change renewal date to 1st of the month (#2179)
utkarsh7989 Feb 25, 2022
2a927e5
fixes date-based spec failures (#2189)
utkarsh7989 Mar 4, 2022
9558539
Rc release 5.7.38 (#2190)
sri49 Mar 15, 2022
0ec190f
dry up date (#2198)
jacobkagon Apr 12, 2022
ee840e0
98320: Update renewal date (#2214)
vineelsonnathi Apr 27, 2022
106af0b
Rc release 5.7.40 (#2236)
sri49 May 16, 2022
08045c5
98424: Update renewal date to 26 (#2237)
vineelsonnathi May 17, 2022
86909b5
plan_selection spec fix (#2257)
jacobkagon Jun 2, 2022
679984f
update q3 renewal generation date (#2260)
utkarsh7989 Jun 6, 2022
106d30c
Rc release 5.7.43 (#2268)
sri49 Jun 29, 2022
b6e0a16
activate captcha (#2280)
jacobkagon Jul 26, 2022
c1f2608
Rc release 5.7.44 (#2277)
sri49 Jul 28, 2022
bf48801
plan_selection spec fix (#2285)
jacobkagon Aug 1, 2022
ac81a57
display Confirm your selections for new hires (#2286)
utkarsh7989 Aug 5, 2022
c490dd1
display confirm your selections button for all cases (#2288)
utkarsh7989 Aug 11, 2022
5d39f74
Bug 99027 2 (#2290)
utkarsh7989 Aug 19, 2022
023b75b
Change renewal date (#2291)
utkarsh7989 Aug 24, 2022
83191cd
Rc release 5.7.49 (#2293)
sri49 Aug 31, 2022
47e5d86
Revert "Revert "activate captcha (#2280)"" (#2297)
sri49 Sep 29, 2022
b49c726
fix group selection we're sorry error if cps enabled (#2300)
RyanEddyIC Oct 24, 2022
25d52a1
Revert "fix cps missing organizer error" (#2304)
sri49 Oct 24, 2022
e881780
Rc release 5.7.51 (#2299)
sri49 Oct 27, 2022
15ca02f
fix tests failing in nov/dec
RyanEddyIC Nov 4, 2022
b02e758
rubocop fixes
RyanEddyIC Nov 4, 2022
adb926d
add benefit market catalogs for adjacent years
RyanEddyIC Nov 4, 2022
443e554
rubocop spacing
RyanEddyIC Nov 4, 2022
71e6ab8
add steps for nov/dec date changes
RyanEddyIC Nov 5, 2022
71c862f
Merge branch 'date-based-spec-failures'
sri49 Nov 8, 2022
961d4fe
fix qle after effective month issue
RyanEddyIC Nov 8, 2022
88d152f
Merge branch 'more-date-based-spec-failures'
sri49 Nov 8, 2022
1abd5ee
fix cucumbers failing in first half of november (#2316)
RyanEddyIC Nov 18, 2022
76dff86
change qle date to end of prev month (#2319)
RyanEddyIC Nov 29, 2022
ed21189
change initial dates settings for december runs (#2321)
RyanEddyIC Dec 5, 2022
6a93cf9
Rc release 5.7.52 (#2320)
sri49 Dec 7, 2022
c775f17
Rc release 5.7.53 (#2326)
harshared Dec 30, 2022
ba81fa7
fix date based failures (#2331)
RyanEddyIC Jan 9, 2023
c50567c
increasing rspec job count (#2353)
nisanthyaganti9 Jan 26, 2023
9b767bc
changes the renewal generation date to 25 (#2354)
utkarsh7989 Jan 30, 2023
bacc039
add CODEOWNERS for repo
markgoho Jan 30, 2023
68a03e1
add date to string conversion for age-off rake (#2348)
RyanEddyIC Feb 7, 2023
9ac26a6
update GHA ubuntu version to ubunutu-latest (#2365)
polographer Feb 7, 2023
7b7bb79
Revert "add date to string conversion for age-off rake (#2348)" (#2367)
polographer Feb 7, 2023
76c3095
changing email for mgb (#2334)
erubinst Feb 16, 2023
4cdd660
Rc release 5.7.56 (#2385)
sri49 Feb 28, 2023
0904185
Rc release 5.7.57 (#2392)
sri49 Mar 15, 2023
3c4f406
Rc release 5.7.58 (#2397)
sri49 Apr 3, 2023
2f8ffc1
Rc release 5.7.59 (#2399)
sri49 Apr 13, 2023
a7f0394
Fix invocation method for some searches. (#2409)
sri49 Apr 14, 2023
f520246
Rc release 5.7.61 (#2412)
sri49 Apr 20, 2023
61e9c23
updates renewal generation date to 26 (#2413)
utkarsh7989 Apr 27, 2023
ff1a643
Rc release 5.7.62 (#2414)
sri49 Apr 27, 2023
dc990df
Rc release 5.7.63 (#2415)
sri49 May 16, 2023
ad9c885
Change renewal date to 1st of the month (#2419)
sri49 May 31, 2023
b25aeab
K6 integration with GHA (#2416)
sri49 Jun 6, 2023
d578fc2
testing k6 on rc branch (#2420)
sri49 Jun 8, 2023
f6db466
Rc release 5.7.65 (#2423)
sri49 Jun 29, 2023
7c72853
extend renewal generation date (#2439)
utkarsh7989 Jul 27, 2023
2cfb8c0
Rc release 5.7.66 (#2442)
sri49 Jul 27, 2023
88a514a
rc release 5.7.67 (#2451)
sri49 Aug 16, 2023
fc15913
extend renewal generation date (#2453)
sri49 Aug 18, 2023
fcca58f
webdriver gem update and rollback chrome version pinning to fix cucum…
polographer Aug 25, 2023
b78fbe4
revert renewal date to 1st of the month (#2455) (#2457)
sri49 Aug 30, 2023
ee67d85
Fixes master spec failure due to archived uri (#2461)
utkarsh7989 Sep 22, 2023
6243411
includes cobra employees in eligible to enroll employees (#2462)
sri49 Sep 28, 2023
d8ea062
Rc-release-5.7.71 setting employee counts (#2466) (#2470)
sri49 Oct 12, 2023
81b2a7b
Your commit message
TonyHasIdeas Oct 18, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
32 changes: 32 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"presets": [
["env", {
"modules": false,
"targets": {
"browsers": "> 1%",
"uglify": true
},
"useBuiltIns": true
}]
],
"env": {
"test": {
"presets": [["env"]],
"plugins": [
"syntax-dynamic-import",
"transform-object-rest-spread",
[
"transform-class-properties",
{
"spec": true
}
]
]
}
},
"plugins": [
"syntax-dynamic-import",
"transform-object-rest-spread",
["transform-class-properties", { "spec": true }]
]
}
28 changes: 28 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# # Note: You can use any Debian/Ubuntu based image you want.
# FROM mcr.microsoft.com/devcontainers/base:bullseye

ARG RUBY_VARIANT=2-bullseye

FROM mcr.microsoft.com/vscode/devcontainers/ruby:0-${RUBY_VARIANT}

RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list

RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& apt-get -y install --no-install-recommends libsodium23 python2.7 python-is-python2 yarn

ARG NODE_VERSION="none"
RUN if [ "${NODE_VERSION}" != "none" ]; then su vscode -c "umask 0002 && . /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi

RUN su vscode -c '/bin/bash -l -c ". /etc/profile.d/rvm.sh && rvm install 2.6.5"'
RUN su vscode -c '/bin/bash -l -c ". /etc/profile.d/rvm.sh && rvm gemset create enroll"'
RUN su vscode -c '/bin/bash -l -c ". /etc/profile.d/rvm.sh && rvm use 2.6.5@enroll"'

USER vscode

# [Optional] Uncomment this section to install additional OS packages.

# [Optional] Uncomment this line to install additional gems.
# RUN sudo gem install bundler -v 1.17.3

# RUN gem update --system 3.3.26
47 changes: 47 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/docker-outside-of-docker-compose
{
"name": "enroll/MA",
"dockerComposeFile": "docker-compose.yml",
"service": "app",
"workspaceFolder": "/workspaces/enroll-ma/",
// "workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",

// Use this environment variable if you need to bind mount your local source code into a new container.
"remoteEnv": {
// "LOCAL_BASENAME": "${localWorkspaceFolderBasename}",
// "LOCAL_WORKSPACE_FOLDER": "${localWorkspaceFolder}"
"LOCAL_WORKSPACE_FOLDER": "enroll-ma"
},

// "features": {
// // "ghcr.io/devcontainers/features/docker-outside-of-docker:1": {
// // "version": "20.10",
// // "enableNonRootDocker": "true",
// // "moby": "true"
// // },
// "ghcr.io/devcontainers/features/ruby:1": {"version":"2.6.5"},
// "ghcr.io/devcontainers/features/node:1": {"version":"14"},
// // "ghcr.io/devcontainers/features/python:1": {"version":"2.7.18"},
// "ghcr.io/devcontainers/features/common-utils:2": {"installZsh":"true", "configureZshAsDefaultShell":"true","upgradePackages":"true"}
// },
// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [
3000
],
"customizations": {
"vscode": {
"extensions": [
"GitHub.copilot",
"GitHub.vscode-pull-request-github"
]
}
},

// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "docker --version",
// "postCreateCommand": "rvm install 2.6.5 && rvm use 2.6.5 && bundle install"
// "postCreateCommand": "cd $PWD"
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
102 changes: 102 additions & 0 deletions .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
version: '3.4'

services:
app:
platform: linux/amd64
build:
context: .
dockerfile: Dockerfile
args:
BUNDLER_VERSION_OVERRIDE: '2.0.1'
NODE_VERSION: '12'
RUBY_VARIANT: '2.6-bullseye'
RVM_OVERRIDE: '2.6.5'

volumes:
- /var/run/docker.sock:/var/run/docker-host.sock
# - ../../:/workspaces
- ../:/workspaces/enroll-ma
- ${PWD}/.devcontainer/patches/mongoid-enroll.yml:/workspaces/enroll-ma/config/mongoid.yml:ro
- ${PWD}/.devcontainer/patches/cucumber_env.rb:/workspaces/enroll-ma/features/support/env.rb:ro
command: sleep infinity

# Uncomment the next four lines if you will use a ptrace-based debuggers like C++, Go, and Rust.
# cap_add:
# - SYS_PTRACE
# security_opt:
# - seccomp:unconfined

# Use "forwardPorts" in **devcontainer.json** to forward an app port locally.
# (Adding the "ports" property to this file will not forward from a Codespace.)
# chrome:
# image: seleniarm/node-chromium:latest
# shm_size: 2gb
# depends_on:
# - selenium-hub
# environment:
# - SE_EVENT_BUS_HOST=selenium-hub
# - SE_EVENT_BUS_PUBLISH_PORT=4442
# - SE_EVENT_BUS_SUBSCRIBE_PORT=4443

# selenium-hub:
# image: seleniarm/hub:latest
# container_name: selenium-hub
# ports:
# - "4442:4442"
# - "4443:4443"
# - "4444:4444"

selenium-chrome:
hostname: selenium-chrome
image: seleniarm/standalone-chromium:latest
shm_size: 2gb
labels:
- "autoheal=true"
ports:
- "4444:4444"
- "7900:7900"
healthcheck:
test: '/opt/bin/check-grid.sh --host 0.0.0.0 --port 4444'
interval: 120s
timeout: 60s
retries: 30
# start_period: 20s

autoheal:
image: willfarrell/autoheal:latest
tty: true
restart: unless-stopped
environment:
- AUTOHEAL_INTERVAL=120
- AUTOHEAL_START_PERIOD=300
- AUTOHEAL_DEFAULT_STOP_TIMEOUT=10
volumes:
- /var/run/docker.sock:/var/run/docker.sock

redis:
# hostname: redis
image: redis:7.0
ports:
- 6379
environment:
- ALLOW_EMPTY_PASSWORD=yes
healthcheck:
test: [ "CMD", "redis-cli", "--raw", "incr", "ping" ]
mongodb:
image: mongo:4.2
hostname: mongodb
# mem_limit: 4000m #trying to replicate mongo memory on prod
volumes:
- mongodb:/data/db
- mongodb_config:/data/configdb
ports:
- 27017:27017
healthcheck:
test: echo 'db.runCommand("ping").ok' | mongo mongodb:27017/test --quiet
# interval: 1s
# timeout: 5s
# retries: 30
# start_period: 20s
volumes:
mongodb:
mongodb_config:
119 changes: 119 additions & 0 deletions .devcontainer/patches/cucumber_env.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
# frozen_string_literal: true

# IMPORTANT: This file is generated by cucumber-rails - edit at your own peril.
# It is recommended to regenerate this file in the future when you upgrade to a
# newer version of cucumber-rails. Consider adding your own code to a new file
# instead of editing this one. Cucumber will automatically load all features/**/*.rb
# files.
require_relative '../../spec/ivl_helper'

require 'selenium-webdriver'
require 'cucumber/rails'
require 'email_spec/cucumber'
require 'rspec/expectations'
require 'capybara/cucumber'
require 'capybara-screenshot/cucumber'
require 'cucumber/rspec/doubles'

Dir[File.expand_path("#{Rails.root}/lib/test/**/*.rb")].each { |f| load f }
require File.expand_path("#{File.dirname(__FILE__)}/../../config/environment")
require "rspec/rails"

# Capybara defaults to CSS3 selectors rather than XPath.
# If you'd prefer to use XPath, just uncomment this line and adjust any
# selectors in your step definitions to use the XPath syntax.
# Capybara.default_selector = :xpath

# By default, any exception happening in your Rails application will bubble up
# to Cucumber so that your scenario will fail. This is a different from how
# your application behaves in the production environment, where an error page will
# be rendered instead.
#
# Sometimes we want to override this default behaviour and allow Rails to rescue
# exceptions and display an error page (just like when the app is running in production).
# Typical scenarios where you want to do this is when you test your error pages.
# There are two ways to allow Rails to rescue exceptions:
#
# 1) Tag your scenario (or feature) with @allow-rescue
#
# 2) Set the value below to true. Beware that doing this globally is not
# recommended as it will mask a lot of errors for you!
#
ActionController::Base.allow_rescue = false

# Remove/comment out the lines below if your app doesn't have a database.
# For some databases (like MongoDB and CouchDB) you may need to use :truncation instead.
begin
load "#{Rails.root}/db/seedfiles/english_translations_seed.rb"
DatabaseCleaner.strategy = :truncation, {:except => %w[translations]}
rescue NameError
raise "You need to add database_cleaner to your Gemfile (in the :test group) if you wish to use it."
end

# You may also want to configure DatabaseCleaner to use different strategies for certain features and scenarios.
# See the DatabaseCleaner documentation for details. Example:
#
# Before('@no-txn,@selenium,@culerity,@celerity,@javascript') do
# # { :except => [:widgets] } may not do what you expect here
# # as Cucumber::Rails::Database.javascript_strategy overrides
# # this setting.
# DatabaseCleaner.strategy = :truncation
# end
#
# Before('~@no-txn', '~@selenium', '~@culerity', '~@celerity', '~@javascript') do
# DatabaseCleaner.strategy = :transaction
# end
#

# Possible values are :truncation and :transaction
# The :transaction strategy is faster, but might give you threading problems.
# See https://github.com/cucumber/cucumber-rails/blob/master/features/choose_javascript_database_strategy.feature
Cucumber::Rails::Database.javascript_strategy = :truncation

Capybara::Screenshot.webkit_options = { width: 2280, height: 1800 }
Capybara::Screenshot.prune_strategy = :keep_last_run
# Webdrivers.cache_time = 86_400

Capybara::Screenshot.register_driver(:selenium_chrome_custom) do |driver, path|
driver.browser.save_screenshot(path)
end

Capybara.register_driver :selenium_chrome_custom do |app|
options = Selenium::WebDriver::Chrome::Options.new
# options.headless!
options.add_argument("no-sandbox")
options.add_argument("--window-size=1024,768")
options.add_argument("--disable-dev-shm-usage")

# client = Selenium::WebDriver::Remote::Http::Default.new
# client.open_timeout = 120 # instead of the default 60
# client.read_timeout = 120 # instead of the default 60

Capybara::Selenium::Driver.new(app,
browser: :chrome,
url: "http://selenium-chrome:4444/wd/hub",
options: options)
end

selenium_app_host = ENV.fetch("SELENIUM_APP_HOST") do
Socket.ip_address_list
.find(&:ipv4_private?)
.ip_address
end

Capybara.configure do |config|
config.server = :puma, { Silent: true }
config.server_host = selenium_app_host
config.server_port = 4000
end


Capybara.default_driver = :selenium_chrome_custom
# Capybara.use_default_driver
# Capybara.current_driver = :selenium_chrome_custom

# https://thurlow.io/ruby/2020/11/06/remote-selenium-webdriver-servers-with-rails-capybara-and-rspec.html
puts "--------------------------------------------------------------------"
puts "the env.rb for cucumber was hacked by docker for running on M1 macs "
puts "--------------------------------------------------------------------"
puts "--------------------------------------------------------------------"
Loading