Closed mheppner closed 4 years ago
Pain Point? Please describe. See ngageoint/scale-ui#294.
The UI is calculating a job's duration from the started and ended fields. In data tables, this column is not able to be sorted on, since this happens at the SQL level for paged results.
started
ended
Desired Solution Annotate the queryset with an F() expression and expose this field through DRF. See: https://stackoverflow.com/a/32856190
F()
Pain Point? Please describe. See ngageoint/scale-ui#294.
The UI is calculating a job's duration from the
started
andended
fields. In data tables, this column is not able to be sorted on, since this happens at the SQL level for paged results.Desired Solution Annotate the queryset with an
F()
expression and expose this field through DRF. See: https://stackoverflow.com/a/32856190