yast / yast-storage-ng

Rewrite of https://github.com/yast/yast-storage
http://yast.github.io/
GNU General Public License v2.0
13 stars 19 forks source link

Extract device description and filesystem label #1373

Closed joseivanlopez closed 4 months ago

joseivanlopez commented 4 months ago

Problem

The partitioner implements some logic to generate the content of the columns (e.g., for generating the descrition of the device, the label of a file system, etc). Such information is useful for other projects like Agama, but reusing that logic is not possible as it is because it is directly implemented in the partitioner columns (UI stuff).

Solution

Extract the logic for generating useful information to separate classes, making possible to reuse it.

Testing

coveralls commented 4 months ago

Coverage Status

coverage: 97.81%. remained the same when pulling b67ea7da8eed0a8460bdb7afe13254fee9906a0b on joseivanlopez:extract-device-description into 570713590c93d8b6ce1fd0c0e9e1a66e03d2dbf2 on yast:master.

yast-bot commented 4 months ago

:heavy_check_mark: Internal Jenkins job #1148 successfully finished :heavy_check_mark: Created OBS submit request #1156335