pyronear / pyro-api

Alert Management API for wildfire prevention, detection & monitoring. Built with FastAPI & PostgreSQL
Apache License 2.0
21 stars 9 forks source link

feat(detections): add bboxes column to detection and a route to fetch unacknowledged ones #340

Closed RonanMorgan closed 3 weeks ago

RonanMorgan commented 2 months ago

Add the acknowledged boolean in the table Detection and a new endpoint. It will allow the plateform to know if a Detection has been acknowledged by a User.

MateoLostanlen commented 2 months ago

hello @frgfm ,

We only display alerts for the current day (i.e. less than 24 hours).

Then, after discussion with the firefighters, I've come up with the idea of an archive tab for viewing past alerts

All alerts from yesterday or before and all acknowledge alerts will be present in the archive.

frgfm commented 2 months ago

Would you mind resolving the conflicts please? The review tab mixes several PR and things already merged on main :sweat_smile:

RonanMorgan commented 2 months ago

done :)

codecov[bot] commented 2 months ago

Codecov Report

Attention: Patch coverage is 83.09859% with 12 lines in your changes missing coverage. Please review.

Project coverage is 87.01%. Comparing base (88d3dd9) to head (1a9491f). Report is 1 commits behind head on main.

Files Patch % Lines
src/app/crud/base.py 58.82% 7 Missing :warning:
src/app/api/api_v1/endpoints/detections.py 86.36% 3 Missing :warning:
client/pyroclient/client.py 86.66% 2 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #340 +/- ## ========================================== - Coverage 87.71% 87.01% -0.71% ========================================== Files 31 31 Lines 741 801 +60 ========================================== + Hits 650 697 +47 - Misses 91 104 +13 ``` | [Flag](https://app.codecov.io/gh/pyronear/pyro-api/pull/340/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pyronear) | Coverage Δ | | |---|---|---| | [backend](https://app.codecov.io/gh/pyronear/pyro-api/pull/340/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pyronear) | `86.62% <81.81%> (-0.72%)` | :arrow_down: | | [client](https://app.codecov.io/gh/pyronear/pyro-api/pull/340/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pyronear) | `91.80% <87.50%> (-1.68%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pyronear#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

frgfm commented 3 weeks ago

Here is a recap, after modifications, of what the PR introduces:

frgfm commented 3 weeks ago

cf. #304