Duke-GCB / bespin-ui

An ember.js application frontend for bespin-api
MIT License
2 stars 2 forks source link

Sort workflow versions based on SemVer parts #158

Closed johnbradley closed 5 years ago

johnbradley commented 5 years ago

Adds versionSort computed field to workflow-version following the sorting pattern used in bespin-api for sorting workflow-versions. Changes version sorting to use this new field for routes:

Started using @each annotation to populate 'version' field in computed lists: https://guides.emberjs.com/v2.12.0/object-model/computed-properties-and-aggregate-data/ The bug in question was only visible when viewing cached workflow versions due to sorting done by bespin-api and the 'version' fields being null during sort('version') operation.

Added ember-pad to work around PhantomJS missing String.padStart.

Fixes #148