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

ThePalaceProject / web-patron / 25675471151
88%

Build:
DEFAULT BRANCH: main
Ran 11 May 2026 02:17PM UTC
Jobs 1
Files 14
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

11 May 2026 02:11PM UTC coverage: 87.954% (-1.4%) from 89.354%
25675471151

push

github

web-flow
Prefer heuristic library short name for slug (PP-4263) (#133)

## Description

Adds heuristic derivation of each library's slug from its registry
catalog entrie. Extracts the first path component of the catalog root
link (e.g. `CA0156` from `https://ca.thepalaceproject.org/CA0156/`),
falling back to the same part of the authentication document link, and
returning `null` if neither yields a value. `computeSlug` calls it and
falls back to the registry identifier as before.

## Motivation and Context

We want to use the library short name as the slug, but we don't maintain
that value in the registry (let alone include it in the feed). So, for
the time being, we heuristically pull it from the first path component
of the library catalog or authentication document URL, since that is a
safe place to find it for the Palace Manager library catalog servers in
The Palace Project hosted environment.

[Jira PP-4263]

## How Has This Been Tested?

- New/updated tests to cover the new and changed functionality.
- Manual testing in local dev environment.
- All checks pass locally.
- [CI
checks](https://github.com/ThePalaceProject/web-patron/actions/runs/25460022748)
pass.

## Checklist:

- [x] I have updated the documentation accordingly.
- [x] All new and existing tests passed.

208 of 238 branches covered (87.39%)

Branch coverage included in aggregate %.

14 of 20 new or added lines in 1 file covered. (70.0%)

325 of 368 relevant lines covered (88.32%)

31.44 hits per line

Uncovered Changes

Lines Coverage ∆ File
6
65.71
-34.29% src/utils/librarySlug.ts
Jobs
ID Job ID Ran Files Coverage
1 25675471151.1 11 May 2026 02:17PM UTC 14
87.95
GitHub Action Run
Source Files on build 25675471151
  • Tree
  • List 14
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • baeb8ec8 on github
  • Prev Build on main (#25445038757)
  • Next Build on main (#25676026124)
  • 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