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

agama-project / agama / 16342134848
74%

Build:
DEFAULT BRANCH: master
Ran 17 Jul 2025 10:14AM UTC
Jobs 3
Files 1124
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

17 Jul 2025 10:01AM UTC coverage: 64.317% (+0.02%) from 64.299%
16342134848

push

github

web-flow
fix: better handling of missing license translations (#2571)

## Problem

* [bsc#1238364](https://bugzilla.suse.com/show_bug.cgi?id=1238364)

When displaying a product license, Agama allows to select the language
to display the license. In general, it offers the same list of languages
Agama is translated to. This has a few problems:

* In some cases, the license is no translated to that language. The
Agama falls back to English without informing the user.
* It is just another language selector, which is kind of confusing.

## Solution

Now the license is directly shown in the same language that Agama is
using. No additional language selector. If the translation is missing:

* It tries to find an alternative language (e.g., "Spanish" for
"Catalan".
* If there is no alternative, it falls back to English.

## Alternative language

To search for an alternative language, Agama choses the first language
in the same "territory". For instance, if you pick "Catalan" ("ca-ES"),
Agama uses the [langtable data](https://pypi.org/project/langtable/) to
search for the first language in the same territory, which in this case
it is "Spanish" (es).

## Testing

- Added a new unit test
- Tested manually

## Screenshots

<details>
<summary>The license is translated. No warning and no
selector.</summary>

<img width="1335" height="1009" alt="license-found-license"
src="https://github.com/user-attachments/assets/795ef340-cc38-4cf9-9841-3151c76f8b94"
/>
</details>

<details>
<summary>The license is not translated to Catalan, but to Spanish. Warn
the user.</summary>

<img width="1335" height="1009" alt="license-missing-translation"
src="https://github.com/user-attachments/assets/7bfbbd81-a05f-45d0-baaa-52f03cce856b"
/>
</details>

<details>
<summary>Fall back to English. Warn the user.</summary>

<img width="1335" height="1009" alt="license-fallback-english"
src="https://github.com/user-attachments/assets/8dcc931f-1ba3-4020-b3fa-c4f261221d9c"
/>
</details>

## Known problems... (continued)

2131 of 3860 branches covered (55.21%)

Branch coverage included in aggregate %.

46 of 49 new or added lines in 2 files covered. (93.88%)

24657 of 37790 relevant lines covered (65.25%)

49.01 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
3
81.4
4.47% rust/agama-lib/src/software/model/license.rs
Subprojects
ID Flag name Job ID Ran Files Coverage
1 rust 16342134848.1 17 Jul 2025 10:14AM UTC 179
21.78
GitHub Action Run
3 service 16313617719.3 16 Jul 2025 07:52AM UTC 389
88.49
GitHub Action Run
3 web 16342134863.3 17 Jul 2025 10:04AM UTC 556
68.14
GitHub Action Run
Source Files on build 16342134848
  • Tree
  • List 1124
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #16342134848
  • 5249cbc9 on github
  • Prev Build on master (#16342134863)
  • Next Build on master (#16344430191)
  • 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