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 rebased #402

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

Conversation

amandine-sahl
Copy link
Contributor

Reprise du travail réalisé par @mvergez : #259

camillemonchicourt and others added 15 commits August 23, 2023 20:01
Develop > Master / 0.7.0
refactor(db): move base individuals tables to GN

feat(db): add id_individual col to observations

fix(db): remove permission before removing objects

fix(db): update individuals => cd_nom

When dropping id_individual column. To keep observations data
feat(api): add definition, linking to orm models

feat(api): add more attributes to orm models

refactor(api): move everything to GeoNature

feat(api): specific model dict for individuals

feat(config): add first individual json file

feat(api): more config to individuals.json

refactor: update config following changes in model

feat(api): add soft delete

refactor(api): add marking as a individual child

refactor(config): mv marking props to marking.json

From individual.json

feat(api): add nb_sites for individuals

feat(api): add nb_individuals to site

feat: add individuals to site.json

feat(api): add id_individual column

feat(api): add id_individual in observation.json

Otherwise it goes into data

feat(api): add individual permissions

feat(config): add id_digitiser to marking

feat(api): add cd_nom parameter for the module

Add a global variable __MODULE.CD_NOM, stored in the
t_module_complements table. It enables the user to provide the CD_NOM
several times in the json config files like __MODULE.ID_LIST_TAXONOMY
for instance...

feat(api): remove relationship

Since it has been moved to GeoNature

chore(api): fix sqlalchemy warning

ViewOnly & scalar_subquery()

feat(config): hide cd_nom by default

feat(api): really delete object no deactivation

style(api): apply black

fix: disable viewOnl=True to remove warning

fix: reorder revisions to make it ok for clean install

fix: cd_nom missing on post observation

Reviewed-by: andriacap

fix: change revises migration to the good one

Reviewed-by: andriac

fix: replace revises by the good one and rm pass

Change revises to match with the one used
Remove useless "pass"

Reviewed-by: andriac

fix: nb_individus and nb_sites for Tindividuals

problem with query to find number of site and individuals

Reviewed-by: andriacap

fix: add distinct on nb_individuals for site

Reviewed-by: andriacap

refactor: add nb_individuals outside models

Add nb_inidivuals property as before but write notes
to understand why it was needed ?

It seems to work without .. (tried)

Reviewed-by: andriacap
docs: fix details and add more

docs: add permissions section

docs: update docs following required id_module

And new cd_nom setting

docs: more doc for individiuals
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.

2 participants