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

agama-project / agama / 16342134863
74%

Build:
DEFAULT BRANCH: master
Ran 17 Jul 2025 10:04AM 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.299% (+0.01%) from 64.288%
16342134863

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 %.

34 of 41 new or added lines in 2 files covered. (82.93%)

8 existing lines in 1 file now uncovered.

24636 of 37769 relevant lines covered (65.23%)

49.03 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
7
76.92
0.0% rust/agama-lib/src/software/model/license.rs

Uncovered Existing Lines

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