846-backend icon indicating copy to clipboard operation
846-backend copied to clipboard

Make endpoints sortable

Open mnlmaier opened this issue 5 years ago • 1 comments

Putting an issue here to keep things organized.

It would be great to be able to sort incidents by date, either descending or ascending, which in turn could lead to tell following endpoints:

/api/incidents/latest – the last submitted incident /api/incidents?sort={:sort} – sort by submit date descending/ascending (which could lead to something like "last reported incidents"

This can of course also be done in the frontend, so this is nothing which is essential or crucial right now :) just an idea.

mnlmaier avatar Jun 04 '20 07:06 mnlmaier

@mnlmaier, I can do that -- no problem.

/api/incidents/latest

I'll need to do a little bit of matching to find duplicate incidents on import, because I don't think they are currently tagged with an ID. My fear is if they update a title, I'll insert a duplicate. I'll see if I can look for duplicates based on associated link first.

/api/incidents?sort={:sort}

I'll get some additional filtering/sorting in tomorrow!

MikeCraig418 avatar Jun 04 '20 20:06 MikeCraig418