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

MushroomObserver / mushroom-observer / 26912608260 / 1
97%
main: 97%

Build:
DEFAULT BRANCH: main
Ran 03 Jun 2026 09:02PM UTC
Files 1368
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

03 Jun 2026 08:58PM UTC coverage: 96.975% (+0.01%) from 96.962%
26912608260.1

push

github

web-flow
Tab POROs: name external links + delete object_link_helper URL builders (#4430)

* Tab POROs: name external links + delete object_link_helper URL builders

Migrate the remaining external-site link helpers in
`app/helpers/tabs/names_helper.rb` (eol, gbif, google_name,
inat, ascomycete_org, mushroomexpert, ncbi_nucleotide, wikipedia,
index_fungorum_record, index_fungorum_name_search,
index_fungorum_search_page, mycobank_record, mycobank_basic_search,
fungorum_gsd_synonymy, fungorum_sf_synonymy) to PORO classes under
`Tab::Name::*`, each inheriting from the existing
`Tab::Name::ExternalBase` which carries the shared
`target=_blank` / `rel=noopener` attrs.

`ExternalBase` now accepts `name: nil` so the two search-landing
links (`IndexFungorumSearchPage`, `MycobankBasicSearch`) work
without a Name — `model` returns nil and the rendered link uses
plain `InternalLink` (no per-id selector class).

Caller sweep:

- `_nomenclature.html.erb` — 9 `*_tab` calls → direct PORO
- `_observations_menu.html.erb` — 8 `*_tab` calls → direct PORO
- `test/controllers/names_controller_show_test.rb` — 16 helper-URL
  assertions → `Tab::Name::*.new(...).path`

Helper cleanup:

- `app/helpers/object_link_helper.rb` — delete 17 dead URL builders
  (`gbif_name_search_url`, `mycoportal_url`, `eol_url` via name,
  etc.) plus the `mycobank_host` private constant. File shrinks
  from 234 to 95 lines; surviving methods are the in-app link
  builders (`location_link`, `name_link`, `user_link`,
  `link_to_object`, `observation_herbarium_record_link`, etc.).
- `app/helpers/tabs/names_helper.rb` — delete `external_name_tab`
  + 15 external link tab methods. Only `names_index_sorts`
  remains pending relocation to `app/helpers/names_helper.rb`.

15 new external PORO tests added covering title / alt_title / path
/ model on each, including conditional Google-Search behavior for
"Group" rank.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* object_link_helper: lever co... (continued)

42151 of 43466 relevant lines covered (96.97%)

684.24 hits per line

Source Files on job 26912608260.1
  • Tree
  • List 1368
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 26912608260
  • e0f1d794 on github
  • Prev Job for on main (#26904612251.1)
  • Next Job for on main (#26915850694.1)
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