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

MushroomObserver / mushroom-observer / 26682542179
97%

Build:
DEFAULT BRANCH: main
Ran 30 May 2026 11:26AM UTC
Jobs 1
Files 1046
Run time 2min
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

30 May 2026 11:22AM UTC coverage: 96.49% (+0.003%) from 96.487%
26682542179

push

github

web-flow
Preferences form: fix two broken PUTs and move retroactive update links (#4396)

* account/preferences: move retroactive triggers next to their selects + fix broken PUTs

Pre-#4394 the prefs `edit.html.erb` ended with a footer block of three `put_button`s — vote anonymity, filename purge, bulk license updater — sitting after the main `<form>`. #4394 carried that footer block forward into the new Phlex `Edit` view unchanged. This PR moves each retroactive trigger inline next to its semantically-related Privacy select via the select's `with_append` slot, styled as `.btn.btn-outline-default`, and switches their underlying HTTP shape to match what they actually do.

Two of the three were quietly broken under the old layout — flagged by the user, confirmed by route + controller inspection:

- **Vote anonymity.** Pre-Phlex `put_button` to `images_bulk_vote_anonymity_updater_path` (`PUT /images/votes/anonymity`). The route accepts PUT and points at `Images::Votes::AnonymityController#update`, which checks `params[:commit] == :image_vote_anonymity_make_public.l`. The `put_button` sends `commit=<button-label>` which is the localized "Change Image Vote Anonymity", so the check always failed and `image_vote_anonymity_invalid_submit_button` flashed. The real flow is via the GET edit page — it shows current public-vs-anonymous counts and renders its own "Make Public" button (the one that submits a matching commit). The trigger now goes to `images_edit_vote_anonymity_path` as a plain GET `<a>`.
- **Bulk license updater.** Pre-Phlex `put_button` to `images_edit_licenses_path` (`/images/licenses/edit`). That route is GET only — `match(via: [:put, :patch])` lives on `/images/licenses`, a different path. PUT-ing the edit URL 404s. The edit page itself owns the real update form. The trigger now goes to `images_edit_licenses_path` as a plain GET `<a>`.
- **Filename purge.** The only one that's actually a direct mutation: `Images::FilenamesController#update` does `Image.w... (continued)

78 of 79 new or added lines in 6 files covered. (98.73%)

39779 of 41226 relevant lines covered (96.49%)

676.76 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
98.33
-1.67% app/components/application_form/select_field.rb
Jobs
ID Job ID Ran Files Coverage
1 26682542179.1 30 May 2026 11:26AM UTC 1046
96.49
GitHub Action Run
Source Files on build 26682542179
  • Tree
  • List 1046
  • Changed 7
  • Source Changed 7
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26682542179
  • 152996d1 on github
  • Prev Build on main (#26681282442)
  • Next Build on main (#26682743178)
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