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

agama-project / agama / 15683799304 / 3 – service
81%
master: 81%

Build:
DEFAULT BRANCH: master
Ran 16 Jun 2025 02:44PM UTC
Files 383
Run time 37s
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

16 Jun 2025 02:35PM UTC coverage: 88.82% (+0.04%) from 88.778%
service – 15683799304.3

push

github

web-flow
Initial support for sorting storage devices during the search (#2474)

## Problem

The results of the `search` section in the description of `drives`,
`partitions` and `mdRaids` are always sorted by name. Making it very
hard to specify something like "the two biggest disks".

## Solution

This implements support for implementing such searches with the syntax
shown in the following examples:

```json
{
  "search": {
    "sort": { "size": "desc" },
    "max": 2
  }
}
```

Several criteria can be specified to resolve ties.

```json
{
  "search": {
    "sort": [
        { "size": "desc" },
        "name"
    ],
    "max": 2
  }
}
```

And, of course, all that can be combined with a condition to filter out
devices before sorting.

```json
{
  "search": {
    "condition": { "size": { "less": "1TiB" } },
    "sort": { "size": "desc" },
    "max": 2
  }
}
```

## Testing

- Added unit tests for the new parts
- Tested manually

10995 of 12379 relevant lines covered (88.82%)

59.77 hits per line

Source Files on job service - 15683799304.3
  • Tree
  • List 383
  • Changed 4
  • Source Changed 4
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 15683799304
  • 643e1c9b on github
  • Prev Job for on master (#15673861928.3)
  • Next Job for on master (#15709361115.)
  • 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