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
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
8bd4221
fixes the master matrix rake due to hard coded year (#2459) (#2473)
sri49 Oct 26, 2023
69c038b
fixes date based cucumber failures in employee plan shopping (#2476)
utkarsh7989 Nov 6, 2023
7a74ce3
Run eligibility check feature (#2463) (#2477)
sri49 Nov 17, 2023
76b8dd0
fixes off cycle benefit package display edge case scenario (#2475) (#…
sri49 Nov 29, 2023
ac4536a
Rc release 5.7.75 (#2504)
sri49 Dec 13, 2023
76045ca
removed system update in github actions (#2509)
harshaellanki Dec 19, 2023
880cc97
benefit application factory update to fix leap year application effec…
harshaellanki Jan 10, 2024
73205ed
Security questions pop up for employer sign ups (#2518) (#2529)
sri49 Jan 10, 2024
04c0a71
Rc release 5.7.77 (#2551)
sri49 Jan 25, 2024
79b9f18
added a badge that will show the last scheduled full suite run (#2540)
polographer Feb 1, 2024
2475e6d
add redirect for users without security question responses (#2560) (#…
sri49 Feb 13, 2024
ccd0795
Rc release 5.7.79 (#2574)
sri49 Feb 27, 2024
266d894
removes benefit market routes (#2580)
kvootla Mar 9, 2024
af987c6
adds exclusion tag list for notice body (#2581)
kvootla Mar 13, 2024
69b22c2
Rc release 5.8.0 (#2585)
sri49 Mar 27, 2024
34e464d
Rc release 5.8.1 (#2603)
sri49 Apr 15, 2024
e9e99a6
Rc release 5.8.2 (#2613)
sri49 Apr 29, 2024
8565607
fixes oe period dates failures (#2629)
utkarsh7989 May 2, 2024
9455bb5
Rc release 5.8.3 (#2643)
sri49 May 14, 2024
6112056
adds event logger on aca shop events (#2672)
utkarsh7989 May 31, 2024
8143815
Master spec failure fix (#2680)
utkarsh7989 Jun 1, 2024
d90e34b
May Primary Release - Deploy to Production 06/03/24 (#2657)
sri49 Jun 3, 2024
04e3243
make translations part of deployment (#2681)
kvootla Jun 3, 2024
b48ceba
CodeQL scan configuration (#2656)
utkarsh7989 Jun 12, 2024
dac41da
automated scans configuration; bearer, brakeman, bundler_audit (#2674)
polographer Jun 26, 2024
6d0aa7f
upgrade rails to 5.2.8.1 (#2631)
rahulgudim Jun 27, 2024
155a48c
Rc release 5.8.8 (#2700)
sri49 Jul 16, 2024
3c9f406
Rc release 5.8.9 (#2731)
sri49 Jul 30, 2024
a4a12d4
Bug 107413 (#2733)
utkarsh7989 Aug 5, 2024
f98a3f8
Rc release 5.8.10 (#2736)
sri49 Aug 15, 2024
b08fc2e
Rc release 5.8.12 (#2748)
sri49 Aug 28, 2024
63e0995
automated testing optimization (#2753)
polographer Sep 5, 2024
49da960
ignore messages that are not strings (#2773)
polographer Sep 23, 2024
589cc48
Rc release 5.8.13 (#2764)
sri49 Sep 27, 2024
aa346d0
use replace security question path for update (#2787) (#2791)
sri49 Oct 2, 2024
171198a
downgrading bootstrap min.js to 3.4.1 (#2792)
harshaellanki Oct 4, 2024
33f722a
Rc release 5.8.16 (#2821)
sri49 Oct 24, 2024
981a18a
Tufts direct provider flash message (#2825)
utkarsh7989 Oct 30, 2024
d05ee02
fix incorrect action name in notification subscriber (#2828)
rahulgudim Oct 31, 2024
5dca270
Master branch failure fix (#2830)
utkarsh7989 Nov 4, 2024
f7b0e4c
add dockerfile and gha to generate docker images (#2818)
brianhenryhf Nov 5, 2024
3aaead9
fixes add plan year cucumber failures (#2834)
utkarsh7989 Nov 7, 2024
693776f
Pv188427863 add reports dockerfile (#2827)
brianhenryhf Nov 8, 2024
486008a
fix bad yaml indents (#2833)
brianhenryhf Nov 8, 2024
d9c5c5f
Rc release 5.8.17 (#2829)
sri49 Nov 13, 2024
8892f2c
modify saml.yml (#2837)
brianhenryhf Nov 19, 2024
fd7cf7a
Rc release 5.8.20 (#2839)
sri49 Nov 26, 2024
6563972
Add catalog 2025 (#2842)
hKalesnikavaideacrew Dec 4, 2024
5cb525f
Trigger person update event when there are changes in embedded docume…
nks2109 Dec 11, 2024
97791e5
Rc release 5.8.21 (#2850)
sri49 Dec 19, 2024
0fa514e
add aca shop scheduled events rescue logger (#2854)
nks2109 Dec 24, 2024
5d26486
Fix master branch failures (#2858)
utkarsh7989 Jan 9, 2025
d2338a3
Rc release 5.8.22 (#2857)
sri49 Jan 14, 2025
ba5f4a6
Rc release 5.8.23 (#2860)
sri49 Jan 29, 2025
9355e84
Rc release 5.8.24 (#2874)
sri49 Feb 13, 2025
ba3cd7e
pinning chrome version to avoid timeout issues (#2878)
polographer Feb 13, 2025
6ac4f3f
upgrades ruby-saml (#2884)
utkarsh7989 Feb 26, 2025
2046416
Add bundler audit exemptions and documentations. (#2885)
TreyE Feb 27, 2025
a3f8c98
slack channel Image notification (#2882)
sri49 Feb 27, 2025
c60c6bb
rc-release-5.8.25 (#2879)
sri49 Feb 28, 2025
3e7aa64
Rc release 5.8.26 (#2889)
sri49 Mar 13, 2025
43c562b
Upgrade ruby-saml and rack gem (#2894) (#2896)
sri49 Mar 26, 2025
82632c8
Rc release 5.8.28 (#2904)
sri49 Apr 17, 2025
663b62d
Rc release 5.8.29 (#2916)
sri49 Apr 28, 2025
c655f44
rc-release-5.8.30 (#2924)
sri49 May 13, 2025
655fe8b
Rc release 5.8.31 (#2930)
sri49 May 28, 2025
f27a082
fix enrollment termination date display issue with cobra enrollments …
sri49 Jun 11, 2025
a4e4ef6
upgrade to rails 7.2 (#2918)
hKalesnikavaideacrew Jul 16, 2025
6fd9723
[115386] update gems version (#2944) (#2949)
sri49 Aug 5, 2025
5be3c6b
Fix differences between rails interfaces. (#2948) (#2952)
sri49 Aug 19, 2025
45e8092
change bundle audit step to fail on error and always upload the repor…
polographer Aug 27, 2025
7baef83
update rails and ruby-saml (#2957)
polographer Aug 27, 2025
c3de103
fix factories data for spec (#2965)
hKalesnikavaideacrew Sep 30, 2025
552ebbd
Rc release 5.9.4 (#2974)
sri49 Oct 20, 2025
164077f
fix dependents address update issues (#2970) (#2977)
sri49 Oct 29, 2025
06e3126
fix cucumber tests that is breaking master (#2979)
rahulgudim Nov 5, 2025
99ced89
fix sep date option errors (#2982) (#2983)
sri49 Nov 18, 2025
f9f0a55
remove tufts provider search banner (#2992)
rahulgudim Nov 21, 2025
ec6c47a
fix for specs catalog 2026 (#2996)
hKalesnikavaideacrew Dec 1, 2025
69c115a
[116818] update rack and sinatra (#2994)
hKalesnikavaideacrew Dec 8, 2025
26594d1
rc release 5.9.7 (#2989)
sri49 Dec 8, 2025
32c00e6
RM117518 :: CICD Updates - Enroll Repo (#3009)
sri49 Dec 10, 2025
c23c640
Update anchore/scan-action from v5 to v6 (#2991)
Copilot Dec 11, 2025
315cf0a
add authorization for announcements controller (#3015)
nks2109 Dec 15, 2025
b6c5fb9
remove simple_calendar (#3010)
hKalesnikavaideacrew Dec 15, 2025
fa4b1fe
fix datatables params (#3006)
jacobyarborough Dec 19, 2025
df1003e
fix mass assignment of params (#3002)
jacobyarborough Dec 19, 2025
62d055e
[117253] return resque for prod (#2998)
hKalesnikavaideacrew Dec 22, 2025
e894dcb
remove general agencies controllers and routes (#3023)
jacobyarborough Dec 23, 2025
c8db921
remove accented characters from the email subject (#3004)
polographer Dec 23, 2025
408fc3a
remove legacy controller for broker agency applicants (#3007)
ymhari Dec 26, 2025
998dfdc
117158-hbx-enrollment-brakeman-fix (#3024)
jayreddy519 Dec 26, 2025
461a2c6
refactor enrollment member migration for improved input handling (#3022)
nks2109 Dec 26, 2025
a279b78
117159-organization-brakeman-fix (#3027)
jayreddy519 Dec 26, 2025
95ff6da
remove ssn from roster download
Dec 29, 2025
ec36d76
Merge branch 'roster-column-remove-ssn'
sri49 Jan 2, 2026
38f2285
add ability to support multiple date formats and fix tests failing in…
rahulgudim Jan 6, 2026
5bc9831
fix employee enrollments and waivers banner count display (#3031)
rahulgudim Jan 8, 2026
57d5d9b
revert https://github.com/health-connector/enroll/pull/3007 (#3037)
ymhari Jan 14, 2026
580d56b
117153-fix-online-confirmation-model (#3019)
jayreddy519 Jan 22, 2026
bb233e7
permit only allowed params for require login (#2997)
ymhari Jan 22, 2026
a14fd2e
117157-date-validation brakeman issue (#3020)
jayreddy519 Jan 22, 2026
ef37f6e
117155-remove-composed-model (#3026)
jayreddy519 Jan 22, 2026
f9d9421
RM117138 Remove unused controller (#3043)
jayreddy519 Jan 26, 2026
48a2611
extend renewal generation date to 13th
utkarsh7989 Jan 26, 2026
9790e01
Merge branch 'support-118274'
sri49 Jan 26, 2026
4535d9c
add pundit policy legacy broker registration (#3039)
ymhari Jan 27, 2026
a6f6da1
117156 Value parsers brakeman fix (#3029)
jayreddy519 Feb 3, 2026
f0fdc0f
escape params in datatable view file (#3011)
jacobyarborough Feb 5, 2026
2ff2640
fix ability to remove office location address (#3052)
rahulgudim Feb 6, 2026
d4a0aab
Fix index performance and rebuild issues. (#3049)
TreyE Feb 6, 2026
0c1557d
changed hyperlink to button (#3056)
jamiecajka Feb 9, 2026
a3688d2
Update httparty version to 0.24.2 (#3060)
jacobyarborough Feb 10, 2026
b01fad5
fixed broker page and hover styling
jamiecajka Feb 10, 2026
abd2264
CU_868hf2aq0 Fix translation syntax (#3065)
jayreddy519 Feb 11, 2026
735ea88
Merge branch 'master' into details-button-fixes
utkarsh7989 Feb 11, 2026
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.
9 changes: 9 additions & 0 deletions .bundler-audit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
ignore:
- CVE-2024-21510
# ignore security advisory https://github.com/rails/rails/security/advisories/GHSA-vfm5-rmrh-j26v which does not impact us.
# futher information is available in the SECURITY.md file
- CVE-2024-54133
# Ignore security advisory https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-vvfq-8hwr-qm4m
# as it does not impact this particular application.
# Further information available in the SECURITY.md file.
- GHSA-vvfq-8hwr-qm4m
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:3.2-bookworm

ARG RUBY_VARIANT=3.2-bookworm

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

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.7.6"'
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.7.6@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"
}
103 changes: 103 additions & 0 deletions .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
version: '3.4'

services:
app:
platform: linux/amd64
build:
context: .
dockerfile: Dockerfile
args:
BUNDLER_VERSION_OVERRIDE: '2.0.1'
NODE_VERSION: '12.2.12'
# NODE_VERSION: '14'
RUBY_VARIANT: '2.7.6-bullseye'
RVM_OVERRIDE: '2.7.6'

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 "--------------------------------------------------------------------"
84 changes: 84 additions & 0 deletions .devcontainer/patches/mongoid-enroll.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
development:
clients:
# Defines the default session. (required)
default: &default_development
# Defines the name of the default database that Mongoid can connect to.
# (required).
database: mhc_enroll_development
# Provides the hosts the default session can connect to. Must be an array
# of host:port pairs. (required)
hosts:
- mongodb:27017
options:
# Change the default write concern. (default = { w: 1 })
# write:
# w: 1

# Change the default consistency model to primary, secondary.
# 'secondary' will send reads to secondaries, 'primary' sends everything
# to master. (default: primary)
# read: secondary_preferred

# How many times Moped should attempt to retry an operation after
# failure. (default: The number of nodes in the cluster)
# max_retries: 20

# The time in seconds that Moped should wait before retrying an
# operation on failure. (default: 0.25)
# retry_interval: 0.25

rocketjob:
<<: *default_development
rocketjob_slices:
<<: *default_development

# Configure Mongoid specific options. (optional)
options:
# Includes the root model name in json serialization. (default: false)
# include_root_in_json: false

# Include the _type field in serializaion. (default: false)
# include_type_for_serialization: false

# Preload all models in development, needed when models use
# inheritance. (default: false)
# preload_models: false

# Protect id and type from mass assignment. (default: true)
# protect_sensitive_fields: true

# Raise an error when performing a #find and the document is not found.
# (default: true)
# raise_not_found_error: true

# Raise an error when defining a scope with the same name as an
# existing method. (default: false)
# scope_overwrite_exception: false

# Use Active Support's time zone in conversions. (default: true)
# use_activesupport_time_zone: true

# Ensure all times are UTC in the app side. (default: false)
# use_utc: false
test:
clients:
default:
database: mhc_enroll_test<%= ENV['TEST_ENV_NUMBER'] %>
hosts:
- mongodb:27017
options:
# In the test environment we lower the retries and retry interval to
# low amounts for fast failures.
max_retries: 1
retry_interval: 0
production:
clients:
default:
database: mhc_enroll_production
hosts:
- mongodb:27017
options:
# In the test environment we lower the retries and retry interval to
# low amounts for fast failures.
max_retries: 1
retry_interval: 0
Loading