• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

scarver2 / ehr-portal / 23661614666
78%

Build:
DEFAULT BRANCH: main
Ran 27 Mar 2026 06:33PM UTC
Jobs 1
Files 95
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

27 Mar 2026 06:31PM UTC coverage: 78.037% (+7.9%) from 70.151%
23661614666

push

github

web-flow
Minimize ActiveAdmin incursion — read-only panel with subdomain isolation (#62)

* feature: Extract ActiveAdmin as subdomain-isolated subsystem

- Move activeadmin, devise, ransack, inherited_resources into group :admin
  in Gemfile with explicit version pins; remove irbtools (Ruby 4.0.2 incompatible)
- Load :admin group via Bundler.require(*Rails.groups, :admin) in application.rb
- Gate all admin routes behind constraints subdomain: 'admin' in routes.rb
- Add tld_length = 0 to development.rb so admin.localhost:3000 resolves
- Scaffold app/admin_support/{decorators,forms,dsl/} support layer
- Add Dsl::CleanResource helper (clean_filters) included into ActiveAdmin::DSL
  via to_prepare for zero model pollution
- Add lib/generators/admin_resource/ custom generator replacing
  rails g active_admin:resource; scaffolds resource + decorator together

Admin panel now only reachable at admin.* subdomain. All 17 existing
app/admin/ resources and domain models are untouched.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix: Use single-quoted strings in admin_resource generator (RuboCop)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix: Autocorrect remaining RuboCop string literal offenses in generator

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix: Autocorrect RuboCop string literal in routes.rb subdomain constraint

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix: Alphabetize gems in :admin group (Bundler/OrderedGems)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* Minimize ActiveAdmin incursion — read-only panel with subdomain isolation

- Restrict all 16 admin resources to actions :index, :show (no edit/delete)
- Add HealthController replacing inline Rack health procs in routes.rb
- Change root from redirect('/admin') to health#up
- Isolate all admin routes under constraints subdomain: 'admin' (already on branch)
- Set tld_length = 0 in test.rb to enable admin subdomain in re... (continued)

1805 of 2313 relevant lines covered (78.04%)

2.43 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
4
87.1
-12.9% apps/ehr-api/apps/ehr-api/app/admin/specialties.rb
5
57.14
27.73% apps/ehr-api/apps/ehr-api/app/admin/allergies.rb
5
66.67
35.9% apps/ehr-api/apps/ehr-api/app/admin/family_members.rb
5
66.67
35.42% apps/ehr-api/apps/ehr-api/app/admin/immunizations.rb
5
64.86
35.7% apps/ehr-api/apps/ehr-api/app/admin/lab_results.rb
5
65.79
37.41% apps/ehr-api/apps/ehr-api/app/admin/medications.rb
5
68.42
37.51% apps/ehr-api/apps/ehr-api/app/admin/vital_baselines.rb
6
64.0
45.08% apps/ehr-api/apps/ehr-api/app/admin/clinics.rb
7
61.4
39.97% apps/ehr-api/apps/ehr-api/app/admin/icd10_codes.rb
8
82.22
-17.78% apps/ehr-api/apps/ehr-api/app/admin/diagnoses.rb
8
78.38
-21.62% apps/ehr-api/apps/ehr-api/app/admin/vitals.rb
9
84.21
-15.79% apps/ehr-api/apps/ehr-api/app/admin/encounters.rb
11
64.1
36.16% apps/ehr-api/apps/ehr-api/app/admin/patient_conditions.rb
11
64.56
35.57% apps/ehr-api/apps/ehr-api/app/admin/patient_surgeries.rb
17
67.27
-27.17% apps/ehr-api/apps/ehr-api/app/admin/providers.rb
32
50.36
-11.23% apps/ehr-api/apps/ehr-api/app/admin/patients.rb
Jobs
ID Job ID Ran Files Coverage
1 23661614666.1 27 Mar 2026 06:33PM UTC 95
78.04
GitHub Action Run
Source Files on build 23661614666
  • Tree
  • List 95
  • Changed 25
  • Source Changed 0
  • Coverage Changed 25
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #23661614666
  • 9c1aef93 on github
  • Prev Build on main (#23649998047)
  • Next Build on main (#23663187877)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc