Ontotext-AD / graphdb-workbench

The web application for GraphDB APIs
Other
44 stars 15 forks source link

GDB-10717: Fix sorting by size #1515

Closed boyan-tonchev closed 3 weeks ago

boyan-tonchev commented 3 weeks ago

What

The sorting by size in the import view was not functioning.

Why

The size field of imported resources was returned in a human-readable format, while the sorting algorithm expected the size in bytes.

How

The backend has been updated to return sizes in bytes. However, existing files' data, which is persisted as human-readable strings, needed to be handled. The sorting algorithm was kept the same, sorting by bytes. Before sorting, the value is now converted to bytes, regardless of whether it is in a human-readable format or not.

sonarcloud[bot] commented 3 weeks ago

Quality Gate Failed Quality Gate failed for 'graphdb-workbench'

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarCloud