|
Ran
|
Jobs
3
|
Files
1171
|
Run time
2min
|
Badge
README BADGES
|
push
github
Add a new API to handle issues (#2775) Add a new service to handle issues in the new API. The new service allows any other one to register its issues. ## Registering issues A service that needs to register issues, receives an `agama_utils::actor::Handler<agama_utils::issue::Service>`. It can update the list of issues through the [Update](https://github.com/agama-project/agama/pull/2775/files#diff-47378187505deff38a2d6e135cdc88082R33) action. ## Dealing with D-Bus services The new service reads the issues from the D-Bus services too. When booting, it reads the existing issues and starts listening for changes on the `org.opensuse.Agama1.Issues` interfaces. ## Localization issues As part of this PR, the localization service reports issues now in case of a locale, keymap or timezone is unknown. ## Adapted UI The code to deal with the issues in the web UI has been adapted to the new API. ## Other smaller changes - Make `*_db` functions in `ModelAdapter` to return references instead of mutable references. - In a `TimezoneEntry`, rename `code` to `id` for consistency. Additionally, use `TimezoneId` instead of a string.
2695 of 4701 branches covered (57.33%)
Branch coverage included in aggregate %.
35 of 81 new or added lines in 19 files covered. (43.21%)
706 existing lines in 43 files now uncovered.25137 of 38994 relevant lines covered (64.46%)
196.11 hits per line
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 1 |
75.0 |
0.0% | rust/agama-l10n/src/service.rs |
| 1 |
0.0 |
0.0% | rust/agama-server/src/supervisor/message.rs |
| 1 |
0.0 |
0.0% | rust/agama-server/src/web/docs/storage.rs |
| 1 |
0.0 |
0.0% | rust/agama-server/tests/server_service.rs |
| 1 |
54.55 |
4.55% | web/src/queries/system.ts |
| 2 |
0.0 |
0.0% | rust/agama-server/src/supervisor/service.rs |
| 3 |
57.14 |
-42.86% | web/src/api/issues.ts |
| 5 |
0.0 |
0.0% | rust/agama-server/src/web.rs |
| 6 |
0.0 |
0.0% | rust/agama-l10n/src/model.rs |
| 6 |
0.0 |
0.0% | rust/agama-server/src/supervisor/start.rs |
| 6 |
36.84 |
1.29% | web/src/queries/issues.ts |
| 13 |
0.0 |
0.0% | rust/agama-server/src/server/web.rs |
| ID | Flag name | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|---|
| 3 | web | 18345133167.3 | 580 |
68.63 |
GitHub Action Run | |
| 3 | service | 18222230338.3 | 390 |
88.57 |
GitHub Action Run | |
| 1 | rust | 18336093489.1 | 201 |
19.4 |
GitHub Action Run |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line | Branch Hits | Branch Misses |
|---|