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

MarkUsProject / Markus / 21736117116
92%

Build:
DEFAULT BRANCH: master
Ran 06 Feb 2026 02:13AM UTC
Jobs 2
Files 634
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

06 Feb 2026 02:11AM UTC coverage: 91.717% (+0.01%) from 91.704%
21736117116

push

github

web-flow
Added ability for admins to remove instructor from course (#7808)

* TICKET-578: Add destroy action for instructors

Add the ability for administrators to remove instructors from a course.

- Add destroy route for instructors resource
- Add destroy action to InstructorsController with error handling
- Add destroy? policy rule restricted to admin users
- Add dependent declarations to Instructor model for safe deletion
  (nullify annotations, restrict on notes, destroy tags/split_pdf_logs)
- Add i18n flash messages for destroy success/error/restricted

* TICKET-578: Add remove button to instructor table for admins

- Add trash icon to instructor table, visible only to admin users
- Add removeInstructor method that sends DELETE and refreshes table
- Pass is_admin prop from view based on current_user.admin_user?

* TICKET-578: Add tests for instructor destroy

Controller specs:
- Unauthorized (non-admin) user gets 403
- Destroy failure returns bad_request with error flash
- Instructor with notes is restricted (conflict)
- Successful deletion with cascade checks (annotations nullified, tags destroyed)

Policy specs:
- End user is denied destroy access
- Admin user is allowed destroy access

Frontend specs:
- Remove button visible when is_admin is true
- Remove button hidden when is_admin is false or unset
- DELETE request sent to correct endpoint on click

* TICKET-578: Add changelog entry

* TICKET-578: Add confirmation dialog before instructor removal

* TICKET-578: Add tests for confirmation dialog

* TICKET-578: Change tags and split_pdf_logs to restrict_with_exception

935 of 1829 branches covered (51.12%)

Branch coverage included in aggregate %.

97 of 98 new or added lines in 7 files covered. (98.98%)

44727 of 47957 relevant lines covered (93.26%)

123.33 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
88.37
-0.91% app/javascript/Components/instructor_table.jsx
Jobs
ID Job ID Ran Files Coverage
1 rspec - 21736117116.1 06 Feb 2026 02:36AM UTC 566
95.68
GitHub Action Run
2 jest - 21736117116.2 06 Feb 2026 02:13AM UTC 68
61.8
GitHub Action Run
Source Files on build 21736117116
  • Tree
  • List 634
  • Changed 8
  • Source Changed 8
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #21736117116
  • 20f52eeb on github
  • Prev Build on master (#21736070189)
  • Next Build on master (#21762212347)
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