Closed RonanMorgan closed 3 months ago
TODO : => add site_id in user table :heavy_check_mark: => add other CRUD functionalities for the Site endpoint and add tests for them :heavy_check_mark: => refactor Site -> Organization :heavy_check_mark: => adapt access behavior : a user can only access resources from the same site :heavy_check_mark:
=> fix e2e tests & client tests :heavy_check_mark: => improve tests coverage
Attention: Patch coverage is 81.35593%
with 22 lines
in your changes missing coverage. Please review.
Project coverage is 87.71%. Comparing base (
2dcab5b
) to head (10f9f7e
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
@frgfm about the pyronear org : it seems dangerous to me to say that an empty org has the admin right, it would be easy to imagine a bug conducting to the creation of an empty org that's why I don't really like this solution (but I might be wrong)
furthermore we could imagine some development resources only available to pyronear member, in this case we could also have non admin user attached to the pyronear org.
There are still conflicts, but it's strange the last commit on main was 18hours ago, while your last push is from 12 hours ago. Are you merging the last version of main?
cf. #304
This table will be used to keep information about the owner of one or many cameras.
It will also be useful for resources access management (if you have access to the Site, you have access to all the resources linked to this site)