This PR updates MetricController::index() and IncidentController::index() to default the ordering of results by the created_at date in descending order.
Tests have been included to check this is the case, and to check the default sorting, the ability to sort and the ability to filter various resources.
This PR updates
MetricController::index()
andIncidentController::index()
to default the ordering of results by thecreated_at
date in descending order.Tests have been included to check this is the case, and to check the default sorting, the ability to sort and the ability to filter various resources.
Resolves #10