Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/individuals #3299

Open
wants to merge 27 commits into
base: develop
Choose a base branch
from
Open

Feat/individuals #3299

wants to merge 27 commits into from

Conversation

amandine-sahl
Copy link
Contributor

@amandine-sahl amandine-sahl commented Dec 31, 2024

Rebasage de #2740 + #3056

Copy link

codecov bot commented Dec 31, 2024

Codecov Report

Attention: Patch coverage is 97.00599% with 5 lines in your changes missing coverage. Please review.

Project coverage is 84.12%. Comparing base (b94f78f) to head (81d9215).
Report is 1 commits behind head on develop.

Files with missing lines Patch % Lines
backend/geonature/core/gn_monitoring/routes.py 91.83% 4 Missing ⚠️
backend/geonature/core/gn_monitoring/models.py 98.94% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #3299      +/-   ##
===========================================
+ Coverage    83.93%   84.12%   +0.19%     
===========================================
  Files          122      123       +1     
  Lines         9698     9859     +161     
===========================================
+ Hits          8140     8294     +154     
- Misses        1558     1565       +7     
Flag Coverage Δ
pytest 84.12% <97.00%> (+0.19%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Maxime Vergez and others added 21 commits January 7, 2025 11:02
…odel fiting the migration

refactor(api): move models from monitorings + mig

feat(api): add relationships to individual model

feat(api): add Individuals Marshmallow schema

feat(api): add GET and POST routes

test(api): tests routes GET and POST

test(api): import set_logged_user_cookie from uh

test(api): digitizer to digitiser

feat(api): add filter on id_module in GET

test(api): wip test id_module filter
- interface
- service
- basic select component that calls service api

fix(front): mispell in route in service

fix(front): forgot to add scss file
test(api): add test for filtering out with module
When creating an individual
Do not load modules when listing individuals
Exclude modules from the schema

test(api): add test and improved ones
…duals

feat(front): add post route and change interface

feat(front): add create individual comp to mod

feat(front): link with create component

fix(front): add joined load to individuals

style(front): change button to mini-fab

And add modal style

feat(front): possibility to provide cdNom & idList

To the widget.
Workaroung to make cdNom work: deactivate taxon widget when cdNom is provided
Between Individuals and Markings event for the latter to became the
child of Individuals
Since it is really not useful because we need all relationships
chore(front): remove useless console.log

style(front): apply prettier
fix(api): changed revision

feat(api): crud in POST and GET individuals
To provide it to the GET and POST individuals routes
chore(api): exclude relationships serialised

style(api): apply black

fix(api): wrong user attribute: organisme

Instead of organism

test(api): test rights
…on has_instance_permission

[test] monitoring test has_instance_permission for TIndividuals & TMarkingEvent
andriacap and others added 4 commits January 7, 2025 11:37
…ividu

- Manage revision alembic to get medias for tmarkings_events
- Add overlap in models to avoid error sqlalchemy

Co-authored-by: DonovanMaillard <[email protected]>
Co-authored-by: Andria Capai <[email protected]>
Reviewed-by: andriacap
…duals select widget

- fix filter active individuals only in individuals select widget
- fix datatype marking_date

Co-authored-by: DonovanMaillard <[email protected]>
Co-authored-by: Andria Capai <[email protected]>
Reviewed-by: andriacap
- Ajout de la règle *.DS_Store pour ignorer les fichiers spécifiques à macOS.
- Ces fichiers sont créés automatiquement par Finder et ne doivent pas être suivis par Git.

Co-authored-by: DonovanMaillard <[email protected]>
Co-authored-by: Andria Capai <[email protected]>
Reviewed-by: @andriacap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants