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

agama-project / agama / 22140667759
75%

Build:
DEFAULT BRANCH: master
Ran 18 Feb 2026 01:00PM UTC
Jobs 3
Files 902
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

18 Feb 2026 12:57PM UTC coverage: 74.989% (-0.009%) from 74.998%
22140667759

push

github

web-flow
web: Log the data sent to the backend when the request fails (#3076)

## Problem

- When debugging web frontend problems it might be useful to log the
data sent to the backend
- Related to https://bugzilla.suse.com/show_bug.cgi?id=1256069

## Solution

- When the `fetch()` calls fail handle the error and log details
- Because we still do not have our own top-level error handler it will
report a crash using the default React page. But at least we should be
able to collect more details from the browser console.

## Notes

- Added a new `sanitize()` function which creates a copy of the input
object with all sensitive properties like "password" or
"registrationCode" replaced with text "[FILTERED]".
- This avoids logging sensitive data

## Testing

- Added unit test
- Tested with manually changed URL to invalid `/api/v2/configs` to
trigger a server error, the console then contains this:
<img width="667" height="163" alt="agama-console-log-details"
src="https://github.com/user-attachments/assets/c61533f8-5957-4e82-b4aa-ac37ec8c93d5"
/>
  The text in saved console content contains this:
  ```
12:57:31.707 installHook.js:1 Request /api/v2/configs failed, sent data:
   {
    "update": {
      "root": {
        "sshPublicKey": "",
        "password": "[FILTERED]",
        "hashedPassword": false
      }
    }
  }
  ```

3119 of 5225 branches covered (59.69%)

Branch coverage included in aggregate %.

21 of 29 new or added lines in 2 files covered. (72.41%)

7 existing lines in 1 file now uncovered.

20570 of 26365 relevant lines covered (78.02%)

72.92 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
8
54.55
-34.34% web/src/http.ts

Uncovered Existing Lines

Lines Coverage ∆ File
7
57.14
-31.75% web/web/src/http.ts
Subprojects
ID Flag name Job ID Ran Files Coverage
3 web 22140667759.3 18 Feb 2026 01:00PM UTC 593
69.93
GitHub Action Run
1 rust 19474749743.1 18 Nov 2025 05:18PM UTC 185
22.45
GitHub Action Run
3 service 22131397080.3 18 Feb 2026 08:01AM UTC 309
88.21
GitHub Action Run
Source Files on build 22140667759
  • Tree
  • List 902
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #22140667759
  • 5db00288 on github
  • Prev Build on master (#22131397080)
  • Next Build on master (#22184677891)
  • 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