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

graphql-devise / graphql_devise / 07841c43-ce24-4c90-9cae-529422bbf946
97%
master: 97%

Build:
Build:
LAST BUILD BRANCH: bump-v2.4.0
DEFAULT BRANCH: master
Ran 22 Jul 2026 06:07PM UTC
Jobs 1
Files 62
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

22 Jul 2026 06:05PM UTC coverage: 96.503% (-0.04%) from 96.539%
07841c43-ce24-4c90-9cae-529422bbf946

push

circleci

mcelicalderon
Add opt-in destroy_account mutation

Adds a `destroy_account` mutation that lets an authenticated resource
delete its own account. It destroys `current_resource` and then calls
`remove_resource`, nil-ing the controller resource so devise_token_auth's
`update_auth_header` after_action short-circuits before reloading the
deleted record. This fixes the `ActiveRecord::RecordNotFound` raised when
deleting the signed-in resource.

The operation is opt-in so upgrades never add account deletion to an
existing schema automatically. It is registered with an `allow_destroy`
marker and gated by a new `allow_destroy` mount option: enable it with
`allow_destroy: true` (additive, also works with `skip`) or by listing
`:destroy_account` in `only`. While available but not mounted, a warning
is logged explaining how to opt in; adding `:destroy_account` to `skip`
keeps it out and silences the warning.

Fixes #162, #163

30 of 31 new or added lines in 3 files covered. (96.77%)

828 of 858 relevant lines covered (96.5%)

2089.32 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
90.0
lib/graphql_devise/mutations/destroy_account.rb
Jobs
ID Job ID Ran Files Coverage
1 07841c43-ce24-4c90-9cae-529422bbf946.1 22 Jul 2026 06:07PM UTC 62
96.5
Source Files on build 07841c43-ce24-4c90-9cae-529422bbf946
  • Tree
  • List 62
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • CircleCI Build #07841C43...
  • 8c520399 on github
  • Prev Build on master (#595C4605...)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc