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

Dev suivi eolien rebased on develop #238

Merged

Commits on Oct 10, 2023

  1. Merged feat/package-module-alembic

    commit 70b0139
    Author: Maxime Vergez <[email protected]>
    Date:   Tue Dec 6 15:22:56 2022 +0100
    
        style: apply black
    
    commit 2badedf
    Author: Maxime Vergez <[email protected]>
    Date:   Tue Dec 6 15:11:41 2022 +0100
    
        chore(db): removed unused import
    
    commit 57d9b52
    Author: Maxime Vergez <[email protected]>
    Date:   Tue Dec 6 14:47:48 2022 +0100
    
        feat(db): improved & finished downgrade func
    
    commit 211780f
    Author: Maxime Vergez <[email protected]>
    Date:   Tue Dec 6 09:32:12 2022 +0100
    
        feat(db): wip: add upgrade and began downgrade
    
        Downgrade migration need a little bit more work due to the use of
        sql alchemy and not plain text sql
    
    commit 0b5a3b8
    Author: Maxime Vergez <[email protected]>
    Date:   Mon Dec 5 11:40:32 2022 +0100
    
        feat: packaged module
    Maxime Vergez authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    8f83034 View commit details
    Browse the repository at this point in the history
  2. Merged feat/bib-categorie-site

    Squashed commit of the following:
    
    commit 2bdc22a
    Author: Maxime Vergez <[email protected]>
    Date:   Fri Dec 9 14:59:31 2022 +0100
    
        chore: changed json_schema into config
    
    commit 4279389
    Author: Maxime Vergez <[email protected]>
    Date:   Tue Dec 6 18:37:41 2022 +0100
    
        feat(db): add foreign key from site to cat
    
        From t_base_sites to bib_categorie_site
    
    commit 5cb5dfa
    Author: Maxime Vergez <[email protected]>
    Date:   Tue Dec 6 16:47:27 2022 +0100
    
        feat(api): add admin interface
    
    commit 559a0ec
    Author: Maxime Vergez <[email protected]>
    Date:   Tue Dec 6 16:46:27 2022 +0100
    
        feat(db): add bib_categorie_site table
    
        Add migration and model
    Maxime Vergez authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    8886db7 View commit details
    Browse the repository at this point in the history
  3. feat: [6.2] Page d'accueil module monitoring layout et config title e…

    …t description #2 (#15)
    
    * feat: [6.2] Page d'accueil modul monitoring layout et config title et description #2
    
    * chore(config): applied black & removed imports
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    b9a23a4 View commit details
    Browse the repository at this point in the history
  4. Feat/monitoring sites (#16)

    * feat(api): wip began add site routes + tests
    
    With site categories
    Also add tests
    
    * feat(api): add more routes
    
    * test(api): add tests and fixtures
    
    * style(api): applied black
    
    * feat(db): add migration to remove id_module
    
    Column in t_sites_groups
    
    * refactor(api): move utils for routes from sites
    
    * feat(api): wip: add sites groups route
    
    * test(api): wip: begin adding fixture site_groups
    
    * fix: remove id_module in all models
    
    * chore: rename route for better consistency
    
    * tests: moved site_groups in tests and add tests
    
    * chore(api): applied black
    
    * refactor(api): add filter params function
    
    And refact routes to use it
    mvergez authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    5baf4f7 View commit details
    Browse the repository at this point in the history
  5. Feat/site type categories and module categorie (#18)

    * feat(api): add association table with alembic
    
    Add model in backend and alembic migration
    
    Reviewed-by: andriac
    [Refs ticket]: #3
    
    * test: WIP add test to see new relationship
    
    Adding test to see if categories are showing up when we call module
    
    Reviewed-by: andriacap
    [Refs ticket]: #3
    
    * feat: add type site - categorie relation
    
    WIP - add selectfield to get type site in admin module
    
    Reviewed-by: andriac
    [Refs ticket]: #3
    
    * feat(api): Flask admin and routes categories
    
    Clean code for change label list and form selectfield for
    the BibCategorieView in Flask Admin
    
    Add utils routes to get all subtable relationship in order to
    get back the label type site
    
    Review-by: andriac
    [Refs ticket]: #3
    
    * refactor: remove paginate_nested
    
    For depth in as_dict()
    
    * test: fix tests due to as_dict depth
    
    * style: applied black and isort
    
    * chore: remove unused import
    
    Co-authored-by: Andria Capai <[email protected]>
    2 people authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    95c7b18 View commit details
    Browse the repository at this point in the history
  6. Feat/edit categories module (#19)

    * tests: make tests and fixtures work for modules
    
    By changing the way a monitoring module is created in the fixture
    Add two tests to check the relationship
    
    * feat(api): add categories in edit module
    
    * style: applied black
    mvergez authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    94ef8f9 View commit details
    Browse the repository at this point in the history
  7. test: refactor fixtures to load them automatically (#20)

    Need to set the current working directory of pytest the directory
    where the gn_monitoring_module repo is (so with the frontend etc.)
    mvergez authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    e963eac View commit details
    Browse the repository at this point in the history
  8. test: move test_route in parent dir (#17)

    clean: Merge la PR move test_route 
    Co-authored-by: Andria Capai <[email protected]>
    2 people authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    47d1b7e View commit details
    Browse the repository at this point in the history
  9. Feat/create marshmallow schemas and remove id_module (#21)

    * feat(api): remove id_module from sites_complements
    
    Co-authored-by: andriacap <[email protected]>
    
    * feat(api): create schema for sites_groups
    
    * test: add sites_group to site fixture
    
    * test: wip add test for sites_groups schemas
    
    * chore(api): remove depth parameter from paginate
    
    * test: updated to work with sites_group schema
    
    * feat: categorie site with marshmallow
    
    Test and marshmallow create/refactor to
    adapt for bibcategorie site paginate
    
    WIP : Adapt load_only site_type in test to "assert"
    same object when initiate BibCategorieSite
    
    [Refs ticket]: #3
    
    * feat(api): route /sites/categories/id with schema
    
    Changing the route to return a dump Marshmallow schema
    BibCategorieSitesSchema
    
    Reviewed-by: andriac
    [Refs ticket]: #3
    
    * test(api): routes get categoires label
    
    Change the "as_dict" by schema.dump in order
    to use the Marshmallow schema created
    
    Reviewed-by: andriac
    [Refs ticket]: #3
    
    * feat(api): Sites: cols to geoserializable + schema
    
    * style(api): applied black
    
    * test(api): add test for Site Schema
    
    * style(api): applied black to test_site
    
    * refactor(api): instantiate schema once
    
    Instead of for each all() iteration
    
    * chore(api): remove useless comments
    
    * chore(api): remove useless comments and imports
    
    Co-authored-by: andriacap <[email protected]>
    Co-authored-by: Andria Capai <[email protected]>
    3 people authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    dbf4571 View commit details
    Browse the repository at this point in the history
  10. refactor(api): remove id_type in admin (#22)

    To replace it with a bib nomenclature type: TYPE_SITE
    mvergez authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    7a1d9f0 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    df02c69 View commit details
    Browse the repository at this point in the history
  12. Fix/paginate utils (#24)

    * fix(api): add int conversion for limit/offset
    
    * test(api): add test for get_limit_offset
    
    * fix(api): max_per_page => per_page & test
    
    * test(api): update test with changes on schema
    
    Since marshmallow schemas, the json returned by pagination has
    changed for items and not sites
    mvergez authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    7421fab View commit details
    Browse the repository at this point in the history
  13. Feat/improve filter (#25)

    * feat(api): add Query Class to sites, grps & cats
    
    * feat(api): add sort and fix _get_model
    
    Via _get_entity
    
    * test(api): test sort query
    
    * feat(api): add api sort/sort_dir params
    
    To be able to sort through REST Api
    
    * fix(api): check if integer to avoid using ilike
    
    In filter_by_params
    
    * test(api): add test to check filter integer
    mvergez authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    0b25ef8 View commit details
    Browse the repository at this point in the history
  14. fix(config): changed categories into items (#29)

    * Merged feat/package-module-alembic
    
    commit 70b0139
    Author: Maxime Vergez <[email protected]>
    Date:   Tue Dec 6 15:22:56 2022 +0100
    
        style: apply black
    
    commit 2badedf
    Author: Maxime Vergez <[email protected]>
    Date:   Tue Dec 6 15:11:41 2022 +0100
    
        chore(db): removed unused import
    
    commit 57d9b52
    Author: Maxime Vergez <[email protected]>
    Date:   Tue Dec 6 14:47:48 2022 +0100
    
        feat(db): improved & finished downgrade func
    
    commit 211780f
    Author: Maxime Vergez <[email protected]>
    Date:   Tue Dec 6 09:32:12 2022 +0100
    
        feat(db): wip: add upgrade and began downgrade
    
        Downgrade migration need a little bit more work due to the use of
        sql alchemy and not plain text sql
    
    commit 0b5a3b8
    Author: Maxime Vergez <[email protected]>
    Date:   Mon Dec 5 11:40:32 2022 +0100
    
        feat: packaged module
    
    * Feat/edit categories module (#19)
    
    * tests: make tests and fixtures work for modules
    
    By changing the way a monitoring module is created in the fixture
    Add two tests to check the relationship
    
    * feat(api): add categories in edit module
    
    * style: applied black
    
    * fix(config): changed categories into items
    
    Following the change with marshmallow schemas
    mvergez authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    5c93c0c View commit details
    Browse the repository at this point in the history
  15. Fix/db migrations (#31)

    * feat(db): upgrade down_revision following rebase
    
    Since rebase with develop: changed the down_revision number
    
    * fix(db): fix bind params enabling downgrade
    
    Beforehand the downgrade was not possible...
    
    * refactor(db): removed cor_site_type_category
    
    * refactor(db): changed category into type in cor
    
    * refactor(db): create cor_type_site
    
    * fix(db): renamed column
    
    * refactor(api): update models to fit migrations
    
    * fix(db):change bib_categorie_site to bib_type_site
    
    Adding :
    cor_site_module
    cor_site_type
    revision alembic to create function and trigger in order to add
    bib_type_site but only with nomenclature 'TYPE_SITE'
    upgrade and downgrade works
    
    [Refs ticket]: #3
    Reviewed-by: andriac
    
    * fix(api): updated models from migrations
    
    * fix(api): wip: fix admin following migrations
    
    * fix(api): update routes and tests
    
    To match migration changes
    
    * feat: flask admin bib_type_site
    
    Change bib_categories to bib_type_site into flask admin
    Adding filtering in list label_fr of type_site to secure the unique
    constraint
    
    Reviewed-by: andriac
    [Refs ticket]: #3
    
    * fix(api): updated schema to match models
    
    * fix(api): module edition
    
    * style(api): uniformize type_site
    
    * style(api): change relationship name for type_site
    
    * feat(api): validator admin
    
    * fix(api): make unique BibTypeSite in admin
    
    * test(api): fix test when existing nomenclatures
    
    In database
    
    Co-authored-by: Andria Capai <[email protected]>
    2 people authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    3185274 View commit details
    Browse the repository at this point in the history
  16. perf(api): improved loading of modules (#30)

    * Merged feat/package-module-alembic
    
    commit 70b0139
    Author: Maxime Vergez <[email protected]>
    Date:   Tue Dec 6 15:22:56 2022 +0100
    
        style: apply black
    
    commit 2badedf
    Author: Maxime Vergez <[email protected]>
    Date:   Tue Dec 6 15:11:41 2022 +0100
    
        chore(db): removed unused import
    
    commit 57d9b52
    Author: Maxime Vergez <[email protected]>
    Date:   Tue Dec 6 14:47:48 2022 +0100
    
        feat(db): improved & finished downgrade func
    
    commit 211780f
    Author: Maxime Vergez <[email protected]>
    Date:   Tue Dec 6 09:32:12 2022 +0100
    
        feat(db): wip: add upgrade and began downgrade
    
        Downgrade migration need a little bit more work due to the use of
        sql alchemy and not plain text sql
    
    commit 0b5a3b8
    Author: Maxime Vergez <[email protected]>
    Date:   Mon Dec 5 11:40:32 2022 +0100
    
        feat: packaged module
    
    * perf(api): improved loading of modules
    
    When there are loads of datasets, the relationship takes a lot of
    time to load, and is useless for the route that uses it.
    
    * fix: due to wrong rebase
    
    Fix: newline on data_utils.py
    Fix: relationships are not joined anymore since there is no need of
    them
    Chore: update comment
    mvergez authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    9f8ce84 View commit details
    Browse the repository at this point in the history
  17. Fix/pagination (#28)

    * fix(api): page - 1 that returned the wrong page
    
    * test(api): add test for paginate
    mvergez authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    71d90a1 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    07110ba View commit details
    Browse the repository at this point in the history
  19. Fix/db migrations checkconstrainton bib_type_site.id_nomenclature (#34)

    * fix(db): change trigger to constraint (migrations)
    
    Delete the trigger and create check constraint on id_nomenclature column
    
    Reviewed-by: andriacap
    [Refs ticket]: #3
    
    * fix(db) : apply black on migration file
    
    Apply black
    [Refs_ticket]: #3
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    c237bee View commit details
    Browse the repository at this point in the history
  20. fix(api): invert filter condition with Unicode (#35)

    So that it will fallback to == most of the time and ilike when
    just Unicode
    mvergez authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    57f15ab View commit details
    Browse the repository at this point in the history
  21. fix(db): add NOT VALID in constraint for bib_type_site (#36)

    Cannot use alembic to do this because need sqlalchemy >= 1.4.32
    mvergez authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    32ddaf3 View commit details
    Browse the repository at this point in the history
  22. Fix/review checkpoint1 (#37)

    * refactor(api): change offset to page
    
    * refactor(api): rename id_nomenclature
    
    * fix(admin): add compare field to Unique
    
    Since now, BibTypeSite and TNomenclature do not share the same
    column anymore (id_nomenclature_type_site vs id_nomenclature)
    mvergez authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    8435749 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    c408e00 View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    4b2ffad View commit details
    Browse the repository at this point in the history
  25. Black

    amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    ea64abd View commit details
    Browse the repository at this point in the history
  26. Fix/db migrations (#31)

    * feat(db): upgrade down_revision following rebase
    
    Since rebase with develop: changed the down_revision number
    
    * fix(db): fix bind params enabling downgrade
    
    Beforehand the downgrade was not possible...
    
    * refactor(db): removed cor_site_type_category
    
    * refactor(db): changed category into type in cor
    
    * refactor(db): create cor_type_site
    
    * fix(db): renamed column
    
    * refactor(api): update models to fit migrations
    
    * fix(db):change bib_categorie_site to bib_type_site
    
    Adding :
    cor_site_module
    cor_site_type
    revision alembic to create function and trigger in order to add
    bib_type_site but only with nomenclature 'TYPE_SITE'
    upgrade and downgrade works
    
    [Refs ticket]: #3
    Reviewed-by: andriac
    
    * fix(api): updated models from migrations
    
    * fix(api): wip: fix admin following migrations
    
    * fix(api): update routes and tests
    
    To match migration changes
    
    * feat: flask admin bib_type_site
    
    Change bib_categories to bib_type_site into flask admin
    Adding filtering in list label_fr of type_site to secure the unique
    constraint
    
    Reviewed-by: andriac
    [Refs ticket]: #3
    
    * fix(api): updated schema to match models
    
    * fix(api): module edition
    
    * style(api): uniformize type_site
    
    * style(api): change relationship name for type_site
    
    * feat(api): validator admin
    
    * fix(api): make unique BibTypeSite in admin
    
    * test(api): fix test when existing nomenclatures
    
    In database
    
    Co-authored-by: Andria Capai <[email protected]>
    2 people authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    c05a6e3 View commit details
    Browse the repository at this point in the history
  27. Feat/get all sites (#26)

    * test(api): test all_geometries route
    
    * feat(api): geojson instead of geobuf for sites
    
    * feat(api): add all_sites_group_geometry route
    
    To return the geometries of all sites groups
    
    * test(api): refactor fixture
    
    To add a new one: site_group_with_sites since not all sites_groups
    have sites
    
    * test(api): test get_sites_groups route
    
    * feat(api): add possibility to filter
    
    On id_base_site, base_site_name and id_sites_group
    
    * test(api): add fixture to get group without site
    mvergez authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    d65f259 View commit details
    Browse the repository at this point in the history
  28. Feat/crud/gp sites components (#38)

    * feat(front): wip sites_groups component and svc
    
    * WIP feat(front): DataTable sites_groups
    
    - Table with specific data value (OK)
    - Table with sort column (OK)
    - Datatable , select row event and change
    color (wip).
    
    Reviewed-by: andriac
    [Refs ticket]: #4
    
    * feat(front): Datatable format and selected row
    
    - Get and display data from group_site database (OK)
    - Selecting row and get id of row table (OK)
    
    Improve :
    - improve assign colname table outside the component (maybe into the
      class folder ?)
    
    Todo/next:
    - Filtering table
    - Add action column to table
    - refactor code by creating component for the ngx-datable in order to
      reuse component for other data
    
    Reviewed-by: andriac
    [Refs ticket]: #4
    
    * feat(front): Filtering table (OK)
    
    Function filtering is working on each column
    Button filtering hide/display filter inputs (OK)
    
    TODO:
    - check for "help" icon and description for each column if description
      present
    - Check if multiple rows and pages if it's working
    
    Reviewed-by: andriac
    [Refs ticket]: #4
    
    * feat(front): wip server pagination & filtering
    
    * feat(front): add sorting capability and fixes
    
    Fix: keep filters (sort and filters) on when changing pages
    Feat: remove useless id column
    Feat: add sorting
    
    * fix(db): change trigger to constraint (migrations)
    
    Delete the trigger and create check constraint on id_nomenclature column
    
    Reviewed-by: andriacap
    [Refs ticket]: #3
    
    * refactor: Custom type Geojson and group properties
    
    Create custom type geojson and build properties into marshmallow schema
    according to this type of Geojson
    
    [Refs ticket]: #3
    
    * refactor: site component with site-service
    
    add function to site.services.ts
    
    [Refs ticket]: #4
    
    * refactor: create datatable component and service
    
    Separate of concern for all about table (service and component)
    and all about sites (service and component)
    
    reviewed_by: andriacap
    [Refs ticket]: #3
    
    * fix: change offset to page
    
    change offset name to page
    for paginated
    
    Reviewed-by: andriacap
    [Refs ticket]: #4
    
    * merge: merge interface and type
    
    merge site_group.service.ts
    delete site.service.ts
    add interfaces
    re arrange code from branch front-site-interface
    
    Reviewed-by: andriacap
    [Refs ticket]: #4
    
    * feat: details properties sites groups
    
    Create properties components to display properties of sites_groups
    Adding route with id according to the site group selected
    
    Reviewed-by: andriacap
    [Refs ticket]: #4
    
    * feat: display groups sites's child
    
    Display group site child into table and uder properties
    Use routing and id params to display property of groups site
    
    Create service site
    Add logic to check routing and child route to display reactive component
    properties and table
    
    Reviewed-by: andriacap
    [Refs ticket]: #4
    
    * refactor(front): rename interfaces, remove classes
    
    Better types
    
    * feat(front): get all geometries
    
    For sites and sites_groups
    
    * feat(front): WIP: geojson service to create layers
    
    And features groups since geojson component accumulated layers
    without cleaning them...
    
    * feat(front): implemented select capability
    
    Need to refact a lot!
    
    * feat(api): add route to get one site_group by id
    
    * fix(front): too much /
    
    * feat(front): add get sites_group from id
    
    * fix(front): add possibility to provide Geometry
    
    To setMapData
    
    * refactor(front): sites and sites_groups component
    
    To extend a base component to gather the same methods at one place
    To use route children and router-outlet properly
    To add some rxjs operators
    To move some common interfaces/functions
    
    * fix(front): fix filters by adding baseFilters
    
    * feat: edit sitegroups
    
    Create edit-service
    Create observable to update object to edit according to form component
    Adapt function service of monitoring object to sites and sitesgroups
    
    WIP:
    - adapt remaining function of monitoring object inside
    form-component-g
    - create an object which inherit of patch/post/delete method with
    - think about object with ObjectType of sites_group , sites, observation
      ? , visit ?
    - reload properties or update data of properties table after update data
    
    Reviewed-by:andriacap
    [Refs_ticket]: #4
    
    * feat: edit sitegroups
    
    Improving route 'patch'
    Adding reload properties when sitegroups is updated
    Refactoring EditService for more readability
    
    Reviewed-by: andriacap
    [Ref_ticket]: #4
    
    * feat: improve edit
    
    Add method to define objectType according to service used (site or
    gpsite)
    
    Rewied-by: andriacap
    [Refs_ticket]: #4
    
    * feat: improve rendering front "edit" and "add"
    
    Adding global object service to set object type and
    variable "add" or "edit" button
    
    Reviewed-by: andriacap
    
    [Refs_ticket]: #4
    
    * feat: improving patch method object
    
    Adding service to share request patch,get in order to to re-use the
    service in form component according to the type pass inside the
    formcomponent
    Adding decorator errorhandler for blueprint routes
    
    Reviewed-by:andriacap
    [Refs_ticket]: #4
    
    * feat: create site group method with form
    
    Route create with form component
    Using location pacakage to choose between edit form or init sitegroup
    (see to improve that)
    
    Rewiewed-by: andriacap
    [Refs ticket]: #4
    
    * feat: delete site_group component
    
    Add route back
    Add site_group from front form component
    
    Reviewed-by:andriac
    [Refs_ticket]: #4
    
    * chore(api): removed unused code
    
    * style(config): apply formatter
    
    * chore(front): removed unused code & console.log
    
    * feat(front): removed display map button
    
    As it was ugly
    
    * refactor(front): remove Object for keys
    
    As there is an Angular pipe to get keys and values
    Also removed console.log
    Removed unused code
    
    * style(front): reformat routes
    
    * refactor(front): add create component
    
    To isolate functionnalities
    
    * chore(front): remove unused services
    
    * chore(front): removed usused code
    
    * chore(api): remove string package
    
    And fix if that cannot be reached
    
    * chore(api): removed unused comment
    
    * chore(front): removed console.log and comments
    
    * chore(api): removed unused code and log
    
    ---------
    
    Co-authored-by: Andria Capai <[email protected]>
    2 people authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    a3d276c View commit details
    Browse the repository at this point in the history
  29. fix: remove no existing function and component visit (#39)

    Hotfix because no compilable  with no existing component
    and no existing function
    
    Reviewed-by: andriacap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    0da7e35 View commit details
    Browse the repository at this point in the history
  30. Feat/dynamic form/site (#42)

    * refactor: object.service with observable obj
    
    Change the objectType string to objectType obj
    in order to subscribe to multilple properties link to this object
    
    Reviewed-by: andriacap
    [Refs_ticket]: #40
    
    * feat: adapt service to get config json
    
    Get fieldsName and fieldsLabel for display properties
    (properties component)
    
    Add logic to setItem in LocalStorage to keepLast Value of observable on reload page
    
    TODO:
    - [ ]  see if Localstorage is really necessary with the configService used inside api-geom.service )
    - [ ] adapt monitoring-form-g.component with the new service
    
    Reviewed-by: andriacap
    [Refs ticket]: #4
    
    * feat: column datatable from config json
    
    Add logic into sitegroups service in order to use config json to diplay
    column datatable (called "display_list")
    
    Review-by: andriac
    [Refs ticket]: #4
    
    * feat: adjust backend to load config json
    
    Adjust backend code to use existing code in order to load config from
    file json and by starting with "sites_group"
    
    Fix Media load and upload for site_group
    
    TODO:
    - [ ] check if config should be find from file or backend
    - [ ] Optimize logic backend (use generic model with class method ?)
    
    Reviewed-by: andriacap
    [Refs ticket]: #4
    
    * feat: add button multiselect with filter on backend
    
    filter with params backend (new route -> see if it's possible to change
    that)
    
    Add button multiselect above form type site
    
    TODO:
    - improve Input / condition of use case of btn multiselect
    
    Reviewed-by: andriac
    
    * feat: btn multiselect option
    
    -Add @input fn , placeholder, title, paramsToFilt
    -Remove empty option
    -prevent adding from keyboard input or not including in list
    -Store config json into object
    
    Reviewed-by: @AndriaC
    [Refs-ticket]: #4
    
    * refactor: change form-service and object-service
    
    refactor form-service
    add observable into object-service (WIP: futur use for refresh page ?)
    
    Rieviewed-by: andriac
    
    [Refs_ticket]: #40
    
    * refactor: test refresh page and comportment obs
    
    refresh page seems to works with localstorage of different obj in
    object_service
    
    Reviewed-by: andriac
    
    * feat: dynamic form
    
    - Add:
    - pass config json to form.component-g.ts
    - add config json to this.obj and refresh form into form.component-g.ts
    - add css for form component to deal when long form selected
    
    -fix :
    - refresh page form component (this._configService.init is necessary
      ...)
    - comportment different between add or edit into form component and
      form service
    
    Reviewed-by: andriac
    [Refs_ticket]: #4
    
    * feat: dynamic form - Correction PR
    
    Remove unused console.log
    Rxjs : use concatMap to avoid subscribe inside subscribe
    Apply: prettier and sort prettier for import ts file
    
    Reviewed-by: @AndriaC
    [Refs_PR]: #42
    
    * feat: dynamic create site
    
    - Add change current-object when click "Add <object>" from datatable
      component
    - api-geom.service: change the way to init the api-geom
    - WIP:  two subscribes in one .. (the subscription is call only once ..)
    - WIP : get config json from backend
    
    Reviewed-by: andriac
    
    * feat: add relationship id into sendData form site
    
    Add type_site and id_site_group to the form site
    
    Reviewed-by: andriac
    [Refs_ticket]: #5 et #6
    
    * feat(back): add custom config when post site
    
    Change backend files in order to choose specific config when site is
    created.
    
    Reviewed-by: andriac
    [Refs_ticket]: #5 , #6
    
    * fix: problem of type object when loading form
    
    Add endPoint and objectType to the observable using by the formservice
    in order to use _apiGeomService with good context (endPoint)
    
    [Refs_ticket]: #5 et #6
    
    * fix: todo comments about refactoring code
    
    Add todo comment in order to don't forget what
    is to improve inside the code
    
    * chore(front): add comment and remove console.log
    
    * chore(api): put back old formatting
    
    * chore(api): remove useless comment
    
    * refactor(api): move and rename create_update fct
    
    * fix: put back inventor/digitiser & fix typo
    
    * chore: remove useless files
    
    Since columns are now loaded from json, they are not needed
    anymore in separate typescript files
    
    * chore: remove definition from sites_group.json
    
    * fix: column problem on sites
    
    * chore: remove useless comment
    
    * refactor(front): remove comment and use rxjs
    
    * chore(front): remove useless file
    
    Since class BtnMultiSelectChipClass is not used anymore
    
    * chore(front): remove useless comments/imports
    
    * style(front): applied prettier
    
    * chore(front): remove useless code
    
    * refactor(front): regroup types into an interface
    
    * style(front): applied prettier
    
    * refactor(front): inherit config-json from config
    
    ---------
    
    Co-authored-by: Andria Capai <[email protected]>
    2 people authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    20d5f32 View commit details
    Browse the repository at this point in the history
  31. Feat/prepare edit site component & some visits (#43)

    * refactor: object.service with observable obj
    
    Change the objectType string to objectType obj
    in order to subscribe to multilple properties link to this object
    
    Reviewed-by: andriacap
    [Refs_ticket]: #40
    
    * feat: adapt service to get config json
    
    Get fieldsName and fieldsLabel for display properties
    (properties component)
    
    Add logic to setItem in LocalStorage to keepLast Value of observable on reload page
    
    TODO:
    - [ ]  see if Localstorage is really necessary with the configService used inside api-geom.service )
    - [ ] adapt monitoring-form-g.component with the new service
    
    Reviewed-by: andriacap
    [Refs ticket]: #4
    
    * feat: column datatable from config json
    
    Add logic into sitegroups service in order to use config json to diplay
    column datatable (called "display_list")
    
    Review-by: andriac
    [Refs ticket]: #4
    
    * feat: adjust backend to load config json
    
    Adjust backend code to use existing code in order to load config from
    file json and by starting with "sites_group"
    
    Fix Media load and upload for site_group
    
    TODO:
    - [ ] check if config should be find from file or backend
    - [ ] Optimize logic backend (use generic model with class method ?)
    
    Reviewed-by: andriacap
    [Refs ticket]: #4
    
    * feat: add button multiselect with filter on backend
    
    filter with params backend (new route -> see if it's possible to change
    that)
    
    Add button multiselect above form type site
    
    TODO:
    - improve Input / condition of use case of btn multiselect
    
    Reviewed-by: andriac
    
    * feat: btn multiselect option
    
    -Add @input fn , placeholder, title, paramsToFilt
    -Remove empty option
    -prevent adding from keyboard input or not including in list
    -Store config json into object
    
    Reviewed-by: @AndriaC
    [Refs-ticket]: #4
    
    * refactor: change form-service and object-service
    
    refactor form-service
    add observable into object-service (WIP: futur use for refresh page ?)
    
    Rieviewed-by: andriac
    
    [Refs_ticket]: #40
    
    * refactor: test refresh page and comportment obs
    
    refresh page seems to works with localstorage of different obj in
    object_service
    
    Reviewed-by: andriac
    
    * feat: dynamic form
    
    - Add:
    - pass config json to form.component-g.ts
    - add config json to this.obj and refresh form into form.component-g.ts
    - add css for form component to deal when long form selected
    
    -fix :
    - refresh page form component (this._configService.init is necessary
      ...)
    - comportment different between add or edit into form component and
      form service
    
    Reviewed-by: andriac
    [Refs_ticket]: #4
    
    * feat: dynamic form - Correction PR
    
    Remove unused console.log
    Rxjs : use concatMap to avoid subscribe inside subscribe
    Apply: prettier and sort prettier for import ts file
    
    Reviewed-by: @AndriaC
    [Refs_PR]: #42
    
    * feat: dynamic create site
    
    - Add change current-object when click "Add <object>" from datatable
      component
    - api-geom.service: change the way to init the api-geom
    - WIP:  two subscribes in one .. (the subscription is call only once ..)
    - WIP : get config json from backend
    
    Reviewed-by: andriac
    
    * feat: add relationship id into sendData form site
    
    Add type_site and id_site_group to the form site
    
    Reviewed-by: andriac
    [Refs_ticket]: #5 et #6
    
    * feat(back): add custom config when post site
    
    Change backend files in order to choose specific config when site is
    created.
    
    Reviewed-by: andriac
    [Refs_ticket]: #5 , #6
    
    * fix: problem of type object when loading form
    
    Add endPoint and objectType to the observable using by the formservice
    in order to use _apiGeomService with good context (endPoint)
    
    [Refs_ticket]: #5 et #6
    
    * fix: tooltip and label inside datatable-component
    
    Add a childLabel inside interface objObs.ts
    in order to use this tooltip inside datatable-component
    
    * feat: get back work visitcomponent
    
    get back work from feat/visit to use visitcomponent
    but adapted to current branch
    
    [Refs_ticket]: #5 , #6
    
    * fix: forgot 3 modifications needed from feat/site
    
    Add conftest visit
    Add test_get_visits
    Add get_site_by_id
    
    * fix: passing data between components and property
    
    - Action button "consult..." is working for group_site and site
    - Action with button "cancel" , "come back history routing" send to the
      right component
    - Label and tooltip are according to the parent and child object loaded
      in the corresponding component
    
    - Action "Add site" directly from datatable-g.component (WIP: need to
      remove send to sites_group/:id/create
    
    [Refs_ticket]: #40 , #4 , #5 and #6
    
    * fix: error of url relative when using form
    
    Fix problem of id_module has ["id_module"] in
    create_or_update_object_api function
    Fix path "sites/:id" to "site/:id"
    Add urlRelative when editing component
    
    * fix: problem route navigation
    
    Remove unused "urlRelative" create in last commit
    Fix the action "add children" in datatable to redirect to the good
    component
    Change the way to redirect when cancel and delete on form component
    based on last url
    
    [Refs_ticket]: #40
    
    * refactor: object.service with observable obj
    
    Change the objectType string to objectType obj
    in order to subscribe to multilple properties link to this object
    
    Reviewed-by: andriacap
    [Refs_ticket]: #40
    
    * feat: adapt service to get config json
    
    Get fieldsName and fieldsLabel for display properties
    (properties component)
    
    Add logic to setItem in LocalStorage to keepLast Value of observable on reload page
    
    TODO:
    - [ ]  see if Localstorage is really necessary with the configService used inside api-geom.service )
    - [ ] adapt monitoring-form-g.component with the new service
    
    Reviewed-by: andriacap
    [Refs ticket]: #4
    
    * feat: column datatable from config json
    
    Add logic into sitegroups service in order to use config json to diplay
    column datatable (called "display_list")
    
    Review-by: andriac
    [Refs ticket]: #4
    
    * feat: adjust backend to load config json
    
    Adjust backend code to use existing code in order to load config from
    file json and by starting with "sites_group"
    
    Fix Media load and upload for site_group
    
    TODO:
    - [ ] check if config should be find from file or backend
    - [ ] Optimize logic backend (use generic model with class method ?)
    
    Reviewed-by: andriacap
    [Refs ticket]: #4
    
    * feat: add button multiselect with filter on backend
    
    filter with params backend (new route -> see if it's possible to change
    that)
    
    Add button multiselect above form type site
    
    TODO:
    - improve Input / condition of use case of btn multiselect
    
    Reviewed-by: andriac
    
    * feat: btn multiselect option
    
    -Add @input fn , placeholder, title, paramsToFilt
    -Remove empty option
    -prevent adding from keyboard input or not including in list
    -Store config json into object
    
    Reviewed-by: @AndriaC
    [Refs-ticket]: #4
    
    * refactor: change form-service and object-service
    
    refactor form-service
    add observable into object-service (WIP: futur use for refresh page ?)
    
    Rieviewed-by: andriac
    
    [Refs_ticket]: #40
    
    * refactor: test refresh page and comportment obs
    
    refresh page seems to works with localstorage of different obj in
    object_service
    
    Reviewed-by: andriac
    
    * feat: dynamic form
    
    - Add:
    - pass config json to form.component-g.ts
    - add config json to this.obj and refresh form into form.component-g.ts
    - add css for form component to deal when long form selected
    
    -fix :
    - refresh page form component (this._configService.init is necessary
      ...)
    - comportment different between add or edit into form component and
      form service
    
    Reviewed-by: andriac
    [Refs_ticket]: #4
    
    * feat: dynamic form - Correction PR
    
    Remove unused console.log
    Rxjs : use concatMap to avoid subscribe inside subscribe
    Apply: prettier and sort prettier for import ts file
    
    Reviewed-by: @AndriaC
    [Refs_PR]: #42
    
    * feat: dynamic create site
    
    - Add change current-object when click "Add <object>" from datatable
      component
    - api-geom.service: change the way to init the api-geom
    - WIP:  two subscribes in one .. (the subscription is call only once ..)
    - WIP : get config json from backend
    
    Reviewed-by: andriac
    
    * feat: add relationship id into sendData form site
    
    Add type_site and id_site_group to the form site
    
    Reviewed-by: andriac
    [Refs_ticket]: #5 et #6
    
    * feat(back): add custom config when post site
    
    Change backend files in order to choose specific config when site is
    created.
    
    Reviewed-by: andriac
    [Refs_ticket]: #5 , #6
    
    * fix: tooltip and label inside datatable-component
    
    Add a childLabel inside interface objObs.ts
    in order to use this tooltip inside datatable-component
    
    * feat: get back work visitcomponent
    
    get back work from feat/visit to use visitcomponent
    but adapted to current branch
    
    [Refs_ticket]: #5 , #6
    
    * fix: forgot 3 modifications needed from feat/site
    
    Add conftest visit
    Add test_get_visits
    Add get_site_by_id
    
    * fix: passing data between components and property
    
    - Action button "consult..." is working for group_site and site
    - Action with button "cancel" , "come back history routing" send to the
      right component
    - Label and tooltip are according to the parent and child object loaded
      in the corresponding component
    
    - Action "Add site" directly from datatable-g.component (WIP: need to
      remove send to sites_group/:id/create
    
    [Refs_ticket]: #40 , #4 , #5 and #6
    
    * fix: error of url relative when using form
    
    Fix problem of id_module has ["id_module"] in
    create_or_update_object_api function
    Fix path "sites/:id" to "site/:id"
    Add urlRelative when editing component
    
    * fix: fix things broken by rebase
    
    * chore: remove useless file
    
    * chore(front): remove file/comment/console.log
    
    ---------
    
    Co-authored-by: Andria Capai <[email protected]>
    2 people authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    bc33008 View commit details
    Browse the repository at this point in the history
  32. Refactor to prepare for visits (#44)

    * Fix/db migrations (#31)
    
    * feat(db): upgrade down_revision following rebase
    
    Since rebase with develop: changed the down_revision number
    
    * fix(db): fix bind params enabling downgrade
    
    Beforehand the downgrade was not possible...
    
    * refactor(db): removed cor_site_type_category
    
    * refactor(db): changed category into type in cor
    
    * refactor(db): create cor_type_site
    
    * fix(db): renamed column
    
    * refactor(api): update models to fit migrations
    
    * fix(db):change bib_categorie_site to bib_type_site
    
    Adding :
    cor_site_module
    cor_site_type
    revision alembic to create function and trigger in order to add
    bib_type_site but only with nomenclature 'TYPE_SITE'
    upgrade and downgrade works
    
    [Refs ticket]: #3
    Reviewed-by: andriac
    
    * fix(api): updated models from migrations
    
    * fix(api): wip: fix admin following migrations
    
    * fix(api): update routes and tests
    
    To match migration changes
    
    * feat: flask admin bib_type_site
    
    Change bib_categories to bib_type_site into flask admin
    Adding filtering in list label_fr of type_site to secure the unique
    constraint
    
    Reviewed-by: andriac
    [Refs ticket]: #3
    
    * fix(api): updated schema to match models
    
    * fix(api): module edition
    
    * style(api): uniformize type_site
    
    * style(api): change relationship name for type_site
    
    * feat(api): validator admin
    
    * fix(api): make unique BibTypeSite in admin
    
    * test(api): fix test when existing nomenclatures
    
    In database
    
    Co-authored-by: Andria Capai <[email protected]>
    
    * refactor: object.service with observable obj
    
    Change the objectType string to objectType obj
    in order to subscribe to multilple properties link to this object
    
    Reviewed-by: andriacap
    [Refs_ticket]: #40
    
    * feat: adapt service to get config json
    
    Get fieldsName and fieldsLabel for display properties
    (properties component)
    
    Add logic to setItem in LocalStorage to keepLast Value of observable on reload page
    
    TODO:
    - [ ]  see if Localstorage is really necessary with the configService used inside api-geom.service )
    - [ ] adapt monitoring-form-g.component with the new service
    
    Reviewed-by: andriacap
    [Refs ticket]: #4
    
    * refactor(front): svc: better use of types
    
    * feat(front): add Visits component and service
    
    * feat(back): add get site by id route & test
    
    * feat(api): add visits routes and schema
    
    * fix(api): join modules to have the modulecode
    
    For the frontend to be able to redirect to the correct route
    
    * feat(api): add sites/id/module route
    
    To retrieve all the modules compatibles with this site
    This lead to add a relationship. Set to noload so that it is not
    loaded by other not "raiseloaded" queries
    
    * test(api): add test to test the /sites/id/module
    
    Route.
    Also changed some fixture to be able to write these tests
    
    * fix(front): remove double def of IGeomService
    
    * refactor(front): remove Resp interface
    
    Since it is not usefull anymore
    
    * fix(api): exclude sites relationship
    
    * fix(config): change KeyValue
    
    Since id changed
    
    * feat(front): make datatable accepts other add btn
    
    To be able to customize the "add object" button
    
    * feat(front): add btn select protocole for visit
    
    Add new component: select-btn
    Add call to route to get modules from a base site id
    Call the new component in the visit component
    Add interfaces
    Add type in config service
    
    * feat(front): parameter for label and placeholder
    
    For the btn component.
    Style menu and form-field to make them larger
    
    * refactor(front): api service with generic types
    
    * fix(front): div removed following rebase
    
    * refactor(front): add service as input for formComp
    
    So that formComp is more type generic
    
    * fix(config): remove "s" from sites_group
    
    * refactor(front): put initConfig in ApiService
    
    * fix(front): remove "s" from visit
    
    * fix(front): put back condition on css class
    
    To make ng-content conditionnal
    
    * fix: following rebase
    
    Fix imports, double declarations...
    
    * fix(api): redirect to url
    
    * refactor(front): rename select-btn to option-list
    
    * fix: remove contrib
    
    ---------
    
    Co-authored-by: Andria Capai <[email protected]>
    2 people authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    8c98aac View commit details
    Browse the repository at this point in the history
  33. feat(front): add seeObjLabel (#45)

    Displayed in datatable as a link to the obj
    mvergez authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    0819ae5 View commit details
    Browse the repository at this point in the history
  34. Feat/get sites sites group models (#46)

    * fix(api): remove monitoring_g_definitions
    
    Since it prevents the module to load...
    
    * feat(api): add join relationships
    
    For sites and sites_groups
    
    * fix(config): put back id_sites_group
    
    * refactor(api): move function to prevent circular
    
    Imports!
    
    * fix(api): load sites groups from module_id
    
    * chore: remove useless code
    mvergez authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    2ee2bbc View commit details
    Browse the repository at this point in the history
  35. test: routes for type site and post site (#57)

    * test: routes for type site and post site
    
    Reviewed-by: andriac
    
    * test: apply black and change query string
    
    - Keep site beauce it's specific one cannot re use existing
    - Fix mnemonique "None" with existing label_default
    
    Reviewed-by:andriac
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    ee1358e View commit details
    Browse the repository at this point in the history
  36. style(front): no data support & line return (#58)

    When no data is available: show a message
    When the displayed option is too long: line break
    mvergez authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    6de87e1 View commit details
    Browse the repository at this point in the history
  37. Configuration menu
    Copy the full SHA
    be4f922 View commit details
    Browse the repository at this point in the history
  38. feat: delete site (#62)

    * feat: delete site
    
    Add code from backend to delete site (frontend is already implemented)
    
    Reviewed-by: andriac
    [Refs_ticket]: #5 , #6
    
    * test: add test for delete item site
    
    Reviewed-by: andriac
    [Refs_ticket]: #5 , #6
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    7375ab0 View commit details
    Browse the repository at this point in the history
  39. Feat/edit site (#56)

    * feat: edit site (init value btn-select)
    
    - Change button select to accept incoming intial values
    - Change visit component to add btn-select and form-g inside html
    
    - WIP: update form component when initial values is up to date
    
    Reviewed-by: andriac
    [Refs_ticket] :  #5 , #6
    
    * feat: get information when edit site
    
    - Get all fields from specific site.json into editform
    - Fix problem redirection if edit object site
    
    - WIP : check how to update specific fields from object
    - WIP : check how to manage listOption types site when reload or when
      come back into component after first init
    
    Reviewed-by: andriac
    [Refs_ticket]: #5 , #6
    
    * fix: forgot add apiService property binding
    
    Reviewed-by:andriac
    
    * feat: update site with good properties
    
    Change types_site object to array of ids
    Remove extra key "dataComplement" to assign config
    
    Reviewed-by:andriac
    [Refs_ticket]: #5 , #6
    
    * feat: prevent form appear if no type-site
    
    - Hide form if btn-list type-site not selected
    - Add custom error message mat-error if not selected (directive + custom
      message)
    
    WIP: error message is showing up only if not selected after touched .
    Maybe need to use asyncValidator ?
    
    Reviewed-by: andriac
    [Refs_tickets]: #5 , #6 , #54
    
    * feat: change order to emit event bEdit
    
    - Change order between change formService.changeData and bEditChange
    - Preprocess for types_site seems to be useless (see todo)
    
    Reviewed-by: andriac
    [Refs_ticket]: : #5 , #6 , #54
    
    * feat: solve request changes
    
    - Apply prettier
    - Change object key [''] by type properties
    - Remove unused preprocess_data lines
    
    [Refs_ticket] : closes #54
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    6253018 View commit details
    Browse the repository at this point in the history
  40. style: formatter json in flask admin (#63)

    - Create jsonformatter inside utils.py
    - Add formatter to column "config"
    
    Reviewed-by: andriac
    [Refs_ticket] : #59
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    50a3ea8 View commit details
    Browse the repository at this point in the history
  41. feat(front): try to make breadcrumb work

    In the site entry part
    Maxime Vergez authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    284fa28 View commit details
    Browse the repository at this point in the history
  42. feat(front): make breadcrumn logic inside component

    - Get all information from loading component to build breadcrumb
      information
    - Fix call twice siteService (delete the one with snake_case)
    - Use logic from observable and snapshot url to satisfy all case to
      access to route (by component, directly by url etc)
    
    Reviewed-by: andriacap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    2e138a1 View commit details
    Browse the repository at this point in the history
  43. feat(wip): merge chainInput and display-data-info

    Need dev to the two other branches
    Try to add logic into map-list-component
    
    Check if it is the best way to manage map
    
    Reviewed-by: andriac
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    3089d92 View commit details
    Browse the repository at this point in the history
  44. feat: remove unused function

    Subscription to initConfig useless
    
    Reviewed-by: andricap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    e212fd9 View commit details
    Browse the repository at this point in the history
  45. fix: put outside updateBreadCrumb in sitegp comp

    Merge work from branch breadcrumb branhc and resolve problem with other
    feature like problem initialization of sites groups (resolver)
    
    Reviewed-by: andriacap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    43725a0 View commit details
    Browse the repository at this point in the history
  46. feat: remove onInit to mapListComponent

    Back component as it was
    
    Reviewed-by: andriacap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    95b4d8c View commit details
    Browse the repository at this point in the history
  47. feat(wip): manage geometry type into form

    Put back alert to create geometry if geometry_type precise in
    config (json)
    
    Reviewed-by: andricap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    e0a9d6a View commit details
    Browse the repository at this point in the history
  48. feat(wip) change way to manage map obj component

    Create into formService an observable and subscribe into
    mapListComponent to load and connect the form with geometry info
    
    Reviewed-by: andriacap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    d2b060b View commit details
    Browse the repository at this point in the history
  49. fix: rename obj Form and fix pb load confi obj

    - Change the name of form Object for homogeneity
    - Fix problem to load config of siteService in sitesComponents
    
    Reviewed-by: andriacap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    8bd33fb View commit details
    Browse the repository at this point in the history
  50. fix: remove unused edit site component

    Reviewed-by: andriacap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    8f070b7 View commit details
    Browse the repository at this point in the history
  51. fix: loading config object site

    Alternative to the "resolver"  in order to load config and necessary items to
    display site properties and data table
    
    Reviewed-by: andriacap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    59a2e75 View commit details
    Browse the repository at this point in the history
  52. fix: existing little problem

    - description when delete object
    - change selectedObject on component site
    - remove duplicate "bEdit"
    - add "ngIf=!bEdit" on site component (to prevent display datatable on
      edition)
    - fix upper case letter in variable
    
    Reviewed-by: andriacap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    33875b2 View commit details
    Browse the repository at this point in the history
  53. fix: problem to load specific site

    - change the way to load config on visit-component (=site/:id)
    - fix problem on mergeMap that doesn't complete (wrong observable
      called)
    
    Reviewed-by: andriacap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    6cdd45a View commit details
    Browse the repository at this point in the history
  54. feat(wip) : manage map

    - keep trying to send geometry to "objForm" object (FormGroup)
    
    Reviewed-by: andriacap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    a3efa68 View commit details
    Browse the repository at this point in the history
  55. fix: error on form with obj properties/config

    Reviewed-by: andriacap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    368ea48 View commit details
    Browse the repository at this point in the history
  56. Configuration menu
    Copy the full SHA
    4d9f180 View commit details
    Browse the repository at this point in the history
  57. fix: problem when delete site child

    Fix request DELETE in backend for site and change the way to
    get_sites_group_by_id by using the custom query get_or_404
    
    Reviewed-by: andriacap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    8c8c9a6 View commit details
    Browse the repository at this point in the history
  58. fix: problem adding site child by data-table comp

    When trying to add siteGroup's site child data no pass between the form
    component and the component of sites-groups .
    Creation of resolver to load information of siteGroup selected in order
    to updateBreadCrumb but also to specify the siteGroup Parent.
    
    Reviewed-by: andriac
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    3ea594d View commit details
    Browse the repository at this point in the history
  59. fix: problem redirection on delete site action

    Create new method in form component to redirect to the good url
    according the fact we delete site.
    
    Reviewed-by: andriac
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    919953b View commit details
    Browse the repository at this point in the history
  60. fix: untracked gitlab-ci.yml

    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    bdfeb5c View commit details
    Browse the repository at this point in the history
  61. fix: load specific properties obj

    Specific properties were not loaded , add check specific schema to load
    if specific properties exist
    
    Reviewed-by: andriac
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    d203329 View commit details
    Browse the repository at this point in the history
  62. feat: page not found specific to monitoring

    Add page not found in order to manage into monitoring module
    
    Reviewed-by: andriac
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    36fa10b View commit details
    Browse the repository at this point in the history
  63. feat: not found working for request status 404

    Reviewed-by:andriac
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    7826ce8 View commit details
    Browse the repository at this point in the history
  64. Configuration menu
    Copy the full SHA
    e7af8d0 View commit details
    Browse the repository at this point in the history
  65. feat: display types_site label in table and prop

    Display types_site label into data-table component and
    properties-component
    
    Reviewed-by: andriac
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    1f338f2 View commit details
    Browse the repository at this point in the history
  66. feat(api): return label of nomenclature type site

    Maxime Vergez authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    d716b10 View commit details
    Browse the repository at this point in the history
  67. style(config): types site attribut label

    Maxime Vergez authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    5208028 View commit details
    Browse the repository at this point in the history
  68. feat(wip): display specific properties

    - change setControl to setValue
    - add html inside site.json (local)
    - (wip) addSpecific config to second tab for properties component
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    bbe71db View commit details
    Browse the repository at this point in the history
  69. feat: ignore html field when submit form

    - destructuration object to ignore html to submit form
    - ignore html field to specific config in order to match with submit
      form
    
    Reviewed-by: andricap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    531b9be View commit details
    Browse the repository at this point in the history
  70. feat(wip): display specific properties

    Display only field not "undefined" to get properties component readable
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    6cfeee8 View commit details
    Browse the repository at this point in the history
  71. feat: display specific properties

    Display all value from specific config even if it's null
    
    Reviewed-by: andriacap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    18fb31a View commit details
    Browse the repository at this point in the history
  72. fix: remove call api for types_site

    Useless call api in visit-component (already get by another request)
    Remove '/' from start of request to avoid double '//'
    
    Reviewed-by: andriacap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    dc7f28d View commit details
    Browse the repository at this point in the history
  73. feat(back): json formatter on edit column

    Add class JSON to format json in edit column
    
    [Refs_ticket]: Closes #75
    Reviewed-by: andriacap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    cf8b94d View commit details
    Browse the repository at this point in the history
  74. feat(back): edition site work for module enter

    Change the "types_site" properties by id_nomenclature (before label_fr)
    just before post/patch data in "preprocess_data"
    
    WIP: see if it's possible to add different "types_site" ?
    Currently the way is to change type_site only when you enter by site
    
    Reviewed-by: andriacap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    6fd166b View commit details
    Browse the repository at this point in the history
  75. refact: remove useless call service in btn-select

    the service to add Extra formController to formGroup was call too many
    time for nothing.
    
    Reviewed-by: andriacap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    0aba4ef View commit details
    Browse the repository at this point in the history
  76. fix: error on tab spec properties

    When "selectedObj.data" is empty we do not display tab and table (adding
    this part of code to remove the error)
    
    Reviewed-by: andriacap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    b6ba040 View commit details
    Browse the repository at this point in the history
  77. feat(front): architecture form with dynamic field

    Change the way to place the component "btn-select" into the
    form-component-g.
    Also add another dynamic form generator in order to update separetely
    all specific fields and static fields
    
    Reviewed-by: andriacap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    07b9343 View commit details
    Browse the repository at this point in the history
  78. feat: update form from btn-select

    Change the way to update the form , only dynamic fields are updated
    ExhaustMap is used in order to wait complete config subscribe then
    launch other subscribe
    
    Reviewed-by: andriacap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    c1d1e02 View commit details
    Browse the repository at this point in the history
  79. feat: create form according to btn-select comp

    Change the way to update form with btn-select component when we want to
    create a site
    
    Reviewed-by: andriacap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    e984bab View commit details
    Browse the repository at this point in the history
  80. fix: remove unused property binding FormGroup

    The new way to build form doesn't need anymor propertybinding FormGroup
    
    Reviewed-by: andriacap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    01f3e66 View commit details
    Browse the repository at this point in the history
  81. feat: redirection on delete prevent to reload obj

    Before even the delete action reload the entire object whereas now we
    just want to redirect to parent page in case of deleted object.
    
    Reviewed-by: andriacap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    0b508b9 View commit details
    Browse the repository at this point in the history
  82. feat: using service to update and create dyn form

    Use observable and service in order to update and create specific fiedls
    (dynamic Form)
    
    Reviewed-by: andriacap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    dfa8198 View commit details
    Browse the repository at this point in the history
  83. feat(front): displaying dynamic and static form

    Separate static field and dynamic fieds (specific to type site)
    in order to manage easily fields and controls.
    
    Reviewed-by: andriacap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    54db921 View commit details
    Browse the repository at this point in the history
  84. fix: check obj initialized for FormGroup

    Add more check before initialize form component
    
    Reviewed-by: andriacap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    f66885c View commit details
    Browse the repository at this point in the history
  85. fix: error on build

    Fix errors about html, library , and argument in service cause of : new
    angular version and rebased branch
    
    Reviewed-by: andriacap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    0908931 View commit details
    Browse the repository at this point in the history
  86. fix: change down revision and error id_nomenclatur

    Because of rebase needed to change down revision of
    "declare_available_permission"
    
    Fix problem id_nomenclature to id_nomenclature_type_site
    
    Reviewed-by: andriacap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    9ab4eaf View commit details
    Browse the repository at this point in the history
  87. fix: icon edition geometry problem

    Change html ObjForm in monitoring-map-list.ts component
    
    Reviewed-by: andriacap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    65f51af View commit details
    Browse the repository at this point in the history
  88. test: move conftest.py to root project

    Need to move this file because crashing the pytest collect
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    d570f7e View commit details
    Browse the repository at this point in the history
  89. fix: error constructor failed for this service

    Missing argument in constructor
    
    Reviewed-by: andriacap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    a99fa8a View commit details
    Browse the repository at this point in the history
  90. feat(db): alembic revision (ATTENTION)

    Add CRUVED into monitoring admin module
    TODO: to see when we will talk about permission
    
    Reviewed-by: andriacap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    33b4100 View commit details
    Browse the repository at this point in the history
  91. fix: error default argument in route

    Before using GN 2.13.0b , it worked , now I need to remove default
    argument in blueprint route : site_groups/config and site/config
    
    Reviewed-by: andriacap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    e7121e5 View commit details
    Browse the repository at this point in the history
  92. fix(front): angular-material matchiplist

    **Themes**: angular-material
    
    Adapt btn-select component in order to make it again working .
    MatChipList and MatChip  change to MatChipGrid and MatChipRow
    
    Reviewed-by: andricap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    9d7af2f View commit details
    Browse the repository at this point in the history
  93. fix: material angulr tab (group site and site)

    Refactoring du code pour pouvoir :
    - Afficher les groupes de site ET les sites
    - Adapter les tabs au style de la librairie Material-Angular
    
    Modifications des composants impactés : resolver , data-table(service et
    composant) , geom(interface), objObs(interface), breadcrumb (statique
    pour le moment)
    
    WIP/TODO:
    - Re adapter les composants visit et site pour qu'ils soient compatibles
      avcec la nouvelle structure de data-table-g
    - Composant "properties" à changer pour avoir le style "mterial-angular"
    
    FIX:
    - Pouvoir voir un site directement depuis la visualistion du premier
      tableau de sites (PB à résoudre avant : voir comment faire pour
    voir un site orphelin = sans groupe de site --> nouvelle route à créer )
    - Voir les objets : rowStatus et objectStatus du composant data-table
    
    Reviewed-by: andriacap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    78a4716 View commit details
    Browse the repository at this point in the history
  94. fix: angular material adapt for properties comp

    Changement des "tabs" et du bouton "Editer pour les adapter à la
    librairie angular-material utilisé dans GN
    
    Reviewed-by: andriacap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    c2c5dd2 View commit details
    Browse the repository at this point in the history
  95. fix: problem action button to add obj

    Après avoir adapté le style angular material et la possiblité d'avoir
    l'entrée par soit Site ou Groupe de site , l'ajout de l'objet du Tab
    Actif a été impacté .
    Pb résolu pour les groupes de site mais l'ajout d'un site depuis la page
    "acceuil" des liste de site pose un problème de fond (à voir/ discuter)
    
    Reviewed-by: andriacap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    ab26763 View commit details
    Browse the repository at this point in the history
  96. fix: adapt visit, site component to datatable

    Changement des composants "monitoring-sites" et "monitoring-visits"
    pour les adapter à la nouvelle manière de gérer les données dans le
    composant "data-table" (dû au changements avec material-angular et
    la double entrée site/groupe de site)
    
    Correction de quelques bugs (exemple si un site n'a aucune visite, ça
    renvoyait une erreur)
    
    On ignore le "html" dans l'affichage des propriétés spécifiques
    
    Reviewed-by: andriacap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    de0bc3e View commit details
    Browse the repository at this point in the history
  97. fix: correction display btn to add protocol

    Correction au niveau de l'insertion du composant "bouton" pour l'ajout
    de visite qui nécessite la demande d'un protocole:
    - Adaptation à material-angular
    - Changement pour l'affichage conditionnel de ce bouton
    
    Correction de l'UX (style des mat-chip-row , pour la sélection des types
    de sites)
    
    Reviewed-by: andriacap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    84210a5 View commit details
    Browse the repository at this point in the history
  98. fix: error when loading page with specific field

    Ajout d'un check de condition pour executer l'initilisation des
    propriétés spécifiques (type de site) liées aux sites
    
    Reviewed-by: andriacap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    f2b4764 View commit details
    Browse the repository at this point in the history
  99. fix: error localstorage cyclic object

    L'utilisation du localstorage pour le moment n'est pas utilisable
    (probleme d'objet cyclique JSON.stringify)
    
    Reviewed-by: andriacap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    950e189 View commit details
    Browse the repository at this point in the history
  100. Feat/show map according to tab (#79)

    * feat: conditional display site or sitegroup
    
    Ajout d'un Event Binding pour pouvoir charger les bonnes géométries en
    fonction du "tab" actif
    Soit pour afficher toutes les géométries de groupes de site , ou
    afficher toutes les géomtries de site
    
    Reviewed-by: andriacap
    
    * fix: error sho details site from map
    
    Changement de la variable baseUrl pour obtenir la bonne route pour
    visualiser le site sélectionné sur la carte
    
    Reviewed-by: andriacap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    667ce5c View commit details
    Browse the repository at this point in the history
  101. lint(back): apply black

    Reviewed-by: andriacap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    8ff5861 View commit details
    Browse the repository at this point in the history
  102. lint(front): apply prettier

    Reviewed-by: andriacap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    7bbe6de View commit details
    Browse the repository at this point in the history
  103. feat: prevent user to delete site and gp site (#81)

    Prevent user to delete site and gp site when enter through protocol
    
    Reviewed-by: andriacap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    b8d1676 View commit details
    Browse the repository at this point in the history
  104. Feat/enter tab site features (#80)

    * feat: enter through site site_gp
    
    -  Ajout des routes si on entre par site (tab)
    -  Adaptation du breadcrumb si on entre par tab : site
    -  Ajout de champ de formulaire 'id_site_group' pour pouvoir associer un
       site à un groupe de site
    - Correction des redirections des boutons associé au tab "site" (edition
      , ajout)
    
    Reviewed-by: andriacap
    
    * feat: types site (entrance by protocol)
    
    - Création de site à patir de l'entrée par protocole avec champ
      dynamique
    - Création de route pour avoir uniquement les types de site associé au
      protocole sélectionné
    
    - TODO : A l'édition d'un site (entrée par protocole) pouvoir charger
      les champs spécifiques lié à ce site
    
    Reviewed-by: andriacap
    
    * feat(WIP): edit site (entrance protocol)
    
    Reviewed-by: andriacap
    
    * fix: route according to tab selected
    
    Quand on entre par site , la route lié aux sites ou groupes de site sur
    la map ne s'actualisait pas .
    
    Reviewed-by: andriacap
    
    * fix: multiple reload observable subscription
    
    Ajout d'un "subject" pour "unsubscribe" les observables du formulaire
    (entrée par site)
    
    Reviewed-by: andriacap
    
    * feat: edit with pre load properties and dyn form
    
    Ajout de dev pour finaliser la possibilité de charger les data
    complement liés aux types de site (et donc à des fichiers de configs
    présent sur la table bib_types_site )
    
    Reviewed-by: andriacap
    
    * fix: filter on colum "Type(s) de site"
    
    Reviewed-by: andriacap
    
    * style: apply black
    
    Reviewed-by: andriacap
    
    * fix: error on empty tab groupe site
    
    Problème lorsqu'un des deux tabs était vide , alors le composant tableau
    ne se mettait pas à jour par rapport au tab sélectionné .
    
    Reviewed-by: andriacap
    
    * fix: link to edit and create object from table
    
    Reviewed-by: andriacap
    
    * feat: prevent delete sitegp and site from protocol
    
    On empeche la suppression de site de groupe et de site via l'entrée par
    protocole
    
    Reviewed-by: andriacap
    
    * fix: do not load typessite by siteid if edit
    
    Modification de la condition du chargement des types de site en fonction
    de l'édition ou la création de site dans le composant form
    
    Reviewed-by: andriacap
    
    * fix: allow add site group if exist in config
    
    Laisser la possibilité d'ajouter des groupes de site si dans l'arbre de
    config du module (site_group est configuré)
    
    Reviewed-by: andriacap
    
    * feat: add visit from table
    
    Possibilité d'ajouter une visite depuis le composant data-table-g
    Passage d'évenement du composant option-btn-list aux composant
    'grand-parent'
    Affichage conditionnel au click du bouton "+' dans le composant
    data-table
    
    Reviewed-by: andriacap
    
    * feat(front): add variable RouteBase to object
    
    Entrée par site:
    Ajout d'une variable 'RouteBse' pour que ce soit plus verbeux pour la
    redirection des routes en fonction du nombre de tab sur la page
    (Résoud la problématique d'une stratégie de non "reloading" au
    changement de route pour ne pas avoir à tout recharger lorsqu'on change
    de tabs sites_group/site )
    
    Reviewed-by: andriacap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    7cc6fa0 View commit details
    Browse the repository at this point in the history
  105. feat: edit and create geom

    - Suppression des layers dans les ngOndestroy des composants
    - json.loads des geometry pour avoir l'objet geometry prêt pour les map et
    les parentFormControl du composant map
    - Ajout d'une layer de site pour le composant "visit" (layer du site
      parent aux visites)
    - Chane strategie d'écoute du formService FormMap
    
    Reviewed-by: andriacap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    22a108a View commit details
    Browse the repository at this point in the history
  106. fix: error displaying types site

    Error when editing the second time a site (fields types site were not
    displayed)
    
    Reviewed-by: andriacap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    67c859b View commit details
    Browse the repository at this point in the history
  107. style : improve ux/ui for form component

    Amélioration et uniformisation de l'ux entre les composant formulaires
    (entrée par site et par protocoles)
    
    Ajout d'une alerte en cas de suppression d'un type de site sur les
    champs saisies
    
    Ajout des titres à chaque page pour l'édition , la création ou le détail
    d'un site / groupe de site
    
    Reviewed-by: andriacap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    d869797 View commit details
    Browse the repository at this point in the history
  108. feat: observers displaying and editing form

    Observers is now editable in form with the component pnx-observers
    
    Observers is displayed as "nom_complet" in components "properties" and
    "data-table"
    
    Review-by: andriacap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    495d2c9 View commit details
    Browse the repository at this point in the history
  109. Feat/edit delete through table (#86)

    * feat(wip): edit obj from data-table
    
    Allo edition directly from data-table component
    (entrance by site)
    
    Delete from data table (wip)
    
    Reviewed-by: andriacap
    
    * feat(wip): delete site groups from table
    
    Use eventemitter and subscription (see if it could be better)
    
    Reviewed-by: andriacap
    
    * feat: delete object from table comp
    
    - Delete site groupe and site from table (reload route params in order
      to reload resolver)
    
    Reviewed-by: andriacap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    08d1882 View commit details
    Browse the repository at this point in the history
  110. Feat/filter columns relationship (#87)

    * feat(wip) : filter on relationship
    
    Filter and sort on "observers" by "nom_complet" --> OK
    Filter on "last_visit" --> WIP
    
    Reviewed-by: andriacap
    
    * feat: sort and filter on id_inventor and date
    
    Filter on data table component (enter through site) need to manage
    relationship column.
    
    Change DateTime to Char and filter on "nom_complet" for observers
    
    Reviewed-by: andriacap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    a5432c4 View commit details
    Browse the repository at this point in the history
  111. style: apply black and prettier

    Reviewed-by: andriacap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    f8df2ef View commit details
    Browse the repository at this point in the history
  112. feat: use code list observers for observers site (#88)

    Using config gn_config and add CODE_OBSERVERS_LIST to monitoring config
    to get list of observers (enter through site)
    
    Reviewed-by: andriacap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    4462ff0 View commit details
    Browse the repository at this point in the history
  113. style(front): apply prettier

    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    ad5c124 View commit details
    Browse the repository at this point in the history
  114. Feat/conditional edit and delete entrance protocol (#89)

    * feat: conditional delete site
    
    - Delete icon is not showing if visit > 0
    
    Reviewed-by: andriacap
    
    * feat: edit table object (from protocol)
    
    Edit icon in data-table component.
    Allow user to directly edit from a datatable component
    
    Reviewed-by: andriacap
    
    * feat: delete visit from protocol and site
    
    Change relationship for module on t_visit_complements model (fix error dependency rules blank)
    Change visit-component in order to allow delete when enter through site
    Add hide-spinner class to improve UX for delete modal (enter through
    site)
    
    Reviewed-by: andriacap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    641058d View commit details
    Browse the repository at this point in the history
  115. fix: specific form and properties types site (#90)

    IMPORTANT : need dev from GeoNature (see demo test VM)
    
    Fix problem loading specific config (types site) entrance through
    protocol
    
    Fix problem loading specific fields in creation form site
    
    Reviewed-by: andriacap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    683ee10 View commit details
    Browse the repository at this point in the history
  116. feat: add variable config in json (#91)

    Rendre la possibilité d'extraire les variables de configs depuis le
    front et de les remplacer par les valeurs de la config.
    
    FIX: bug de redirection à la création d'un site à partir de l'onglet
    "sites"
    
    Reviewed-by: andriacap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    ed0883c View commit details
    Browse the repository at this point in the history
  117. feat: optional observers_txt field (#92)

    Add multiselect to false for field observers in site.json (only one
    id_inventor in DB)
    
    Add conditional `required` and `hidden` to `observers` field for
    `visit.json`
    
    Reviewed-by: andriacap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    9fb6672 View commit details
    Browse the repository at this point in the history
  118. Feat/observers txt last (#93)

    * feat: add observers_txt to visit.json
    
    Add field observers_txt to visit in order to allow config in submodule
    
    Reviewed-by: andriacap
    
    * style : lint json
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    0796cb3 View commit details
    Browse the repository at this point in the history
  119. Feat/permission (#94)

    * feat: permission guard and on route back
    
    - Creation d'un Guard pour empêcher l'accès aux routes
    -Création d'un service Permission pour permettre d'obtenir les
    permissions liés aux objets (GNM_SITES etc) du module Monitorings et
    ainsi "bloquer" l'action sur les composants
    - Ajout des "check_cruved_scope" coté backend pour empêcher l'éxécution
      d'action CRUD directement depuis les routes API
    
    WIP: continuer à implémenter coté frontend l'affichage conditionnel en
    fonction des permissions de l'utilisateurs (affichage ou non des tabs
    sites, groupes de site, grisage et désactivation des icones liées aux
    actions CRUD, désactivation conditionnelle des boutons liés aux actions
    CRUD
    
    Reviewed-by: andriacap
    
    * feat: add ux (permission) icon and button
    
    - UX permission to not display sites or sites_groups if not allowed
    - UX permission to disable button/icon and add tooltip to warn the user
      that he doesn't get rights to do the action
    
    WIP: add UX to button delete in Form component
    
    Reviewed-by: andriacap
    
    * feat: add scope_filter to monitorings obj permiss
    
    Set true in revision alembic to allow admin to choose 'mon organisme' ,
    'mes données'
    
    Reviewed-by: andriacap
    
    * feat: add variable config in json
    
    Rendre la possibilité d'extraire les variables de configs depuis le
    front et de les remplacer par les valeurs de la config.
    
    FIX: bug de redirection à la création d'un site à partir de l'onglet
    "sites"
    
    Reviewed-by: andriacap
    
    * feat: permission with paginate
    
    Create paginate_scope in order to send object with permission for each
    object
    
    Create function model and function query to filter on object and check
    scope (based on TDataset model)
    
    Integration of permission in data-table
    
    Reviewed-by: andriacap
    
    * feat: add filter readable query to geom site
    
    Add filter_by_readable for site geom
    
    Reviewed-by: andriacap
    
    * feat(back): add object_code to BibTypeSites
    
    Specify object_code to BibTypeSite in order to make work permission on
    this object
    
    Reviewed-by: andriacap
    
    * feat(back): permission on different object
    
    Add permission for:
    
    - GET sites_group geom
    - GET sites_group
    - GET submodules list when we want to create visit through site entrance
    
    Create PermissonModel to use function created in GN Core
    
    Create function with parameter list object, module_code(opt), object_code
    (opt) in order to return CRUVED for each object of list object (need to
    test to see if works with any object : Modules --> ok, sites,
    sites_group, visits,observations to check
    
    Reviewed-by: andriacap
    
    * feat: change the way to get cruved_object
    
    fix problem from frontend to GET cruved_object with object of boolean
    (no more object of integer)
    
    Reviewed-by: andriacap
    
    * feat: add permission logic (entrance site)
    
    WIP : try to make working VisitQuery readable for organism
    
    Reviewed-by: andriacap
    
    * feat: query visit filtering scope
    
    Fix problem function filter_by_scope by using Models
    
    Reviewed-by: andriacap
    
    * style(backend): apply black
    
    Reviewed-by: andriacap
    
    * feat(back): add observation query and fix
    
    Fix: has/any on filter_by_scope function
    
    Add: observation query and id_digitiser to model
    
    Reviewed-by: andriacap
    
    * feat(back): R,U,D for specific object scope
    
    Prevent user to R,U,D for specific object according to his scope
    
    Reviewed-by: andriacap
    
    * fix: error on route
    
    default id not needed
    
    Reviewed-by: andriacap
    
    * feat: permission entrance through protocol
    
    Front
    - Remove unused 'userCruved' (front)
    - Set permission for object and child with 'cruved' object get from
      backend (disable btn and icon everywhere cruved is checked)
    
    Back:
    - add boolean cruved object for each objectType inside serializer
    - add ObservtionQuery to model TMOnitoringOBservation and hybrid_property and has_instance_permission method
    - FIX:
       * name "visite" to "visit"
       * change get_id by get_id_name for GenericModel
       * problem inside get_object_with_permission_boolean
    
    WIP:
    - Entrance protocol :
      * filter_by_readable "GET" on list object
      * Prevent access to edit page
    - Entrance site:
      * UX according to permission on button "Supprimer" into Form Component
    
    Reviewed-by: andriacap
    
    * feat: filter on only readable object
    
    Entrance through protocol : filter_by_scope (Readable object)
    
    Reviewed-by: andriacap
    
    * feat: prevent user to edit object if not allowed
    
    Add boolean canUpdate in form component in case object is readable but
    not editable and user change param edit=true in ulr directly
    
    Reviewed-by: andriacap
    
    * fix: add module_code in get_readable_list_object
    
    Reviewed-by: andriacap
    
    * feat: add check permission to route (entrance site)
    
    BACK:
    - Add to all route  decorator permission and check
      has_intance_permission (entrance site)
    - Add 'cruved' to all object return for get_by_id (site and sites_group)
    FIX (BACK):
    - error when no child (check len childs_model)
    - method get_object_with_permission_boolean condition for module need to
      change the call method
    
    FRONT:
    - change canUpdate, canDelete for form and property component in order
      to check if specific object has permission
    FIX:
    - initForm need to wait for 'config' loaded for this.obj
    - same thing for form.service
    
    Reviewed-by: andriacap
    
    * feat: add guard for other frontend route
    
    Add guard for specific route
    Check canRead with canCreate
    
    Reviewed-by: andriacap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    6826bff View commit details
    Browse the repository at this point in the history
  120. fix: redirection , permission form, reloading (#95)

    - Fix reloading component on delete from databa-table
    - Fix set cruved condition (not module_code 'generic')
    - Add condition read object above create for canActivate Guard
    - Remove some TODO notes
    
    Reviewed-by: andriacap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    c1366b1 View commit details
    Browse the repository at this point in the history
  121. Feat/change model migration (#96)

    * feat: change db structure
    
    Add id_digitiser for t_sites_groups
    
    Drop constraint NOT NULL on t_observations.cd_nom (check if keep or not)
    
    Reviewed-by: andriacap
    
    * feat(back): add revision to add observer_txt
    
    Add observers_txt in database via alembic revision.
    
    Use alembic function to aler column
    
    Reviewed-by: andriacap
    
    * feat: add id_digitiser to t_observations
    
    Create alembic revision and add on model
    
    Reviewed-by: andriacap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    be989c4 View commit details
    Browse the repository at this point in the history
  122. Configuration menu
    Copy the full SHA
    987910e View commit details
    Browse the repository at this point in the history
  123. fix: redirection and permission grp_site

    Precise object_code for paginate_scope with grp_site
    Change route redirection when create object
    Delete get item with marshmallow in delete request
    
    Reviewed-by: andriacap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    f56bd2f View commit details
    Browse the repository at this point in the history
  124. fix: paginate not found

    Need to rename key object send by setPage and onSortEvent
    
    Reviewed-by: andriacap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    263ed48 View commit details
    Browse the repository at this point in the history
  125. style: apply lint front and back

    Reviewed-by: andriacap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    ad8ce13 View commit details
    Browse the repository at this point in the history
  126. fix: change id on delete route

    Problem with id_g --> change to specific id for site and site_group
    
    Reviewed-by: andriacap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    537ae6c View commit details
    Browse the repository at this point in the history
  127. hotfix: problem refreshing page with guard

    Remove guard and canActivate on route (entrance through site)
    
    In addtition of problem of refreshing route with canActivate parmas
    render blank page , this guard is not necessary because of other warning
    and security on all action (CRUD)
    
    Reviewed-by: andriacap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    7036cce View commit details
    Browse the repository at this point in the history
  128. Configuration menu
    Copy the full SHA
    ee8096f View commit details
    Browse the repository at this point in the history
  129. Configuration menu
    Copy the full SHA
    a386cbc View commit details
    Browse the repository at this point in the history
  130. Configuration menu
    Copy the full SHA
    d510fe9 View commit details
    Browse the repository at this point in the history
  131. Erreur rebase

    amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    478f050 View commit details
    Browse the repository at this point in the history
  132. Répercussion renomage de GNM en MONITORINGS et suppression de

    MonitoringPermissions_dict
    amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    6d306ec View commit details
    Browse the repository at this point in the history
  133. db: remove migration alembic

    Move migration alembic for "add_observers_txt_column_t_base_vist"
    to GeoNature
    
    See PR: PnX-SI/GeoNature#2692
    
    Reviewed-by: andriacap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    85338f5 View commit details
    Browse the repository at this point in the history
  134. Configuration menu
    Copy the full SHA
    c5be3db View commit details
    Browse the repository at this point in the history
  135. fix: revision alembic error

    Add join ob bib_action
    
    Reviewed-by: andriacap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    7ef7459 View commit details
    Browse the repository at this point in the history
  136. ux/ui: change layout home page monitoring

    Remove two column (description/modules)
    Align element from home page
    
    Reviewed-by: andriac
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    e8058a3 View commit details
    Browse the repository at this point in the history
  137. fix: size of div container Acces site

    Reviewed-by: andriacap
    andriacap authored and amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    3bcbdfc View commit details
    Browse the repository at this point in the history
  138. Correction tests

    amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    c34c3e1 View commit details
    Browse the repository at this point in the history
  139. Black

    amandine-sahl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    9168c5c View commit details
    Browse the repository at this point in the history
  140. Configuration menu
    Copy the full SHA
    90106b5 View commit details
    Browse the repository at this point in the history
  141. Configuration menu
    Copy the full SHA
    d3a81d2 View commit details
    Browse the repository at this point in the history
  142. refact: load all types site from btn-select comp

    Basé sur les retours de Camille, Amandine et MNHN
    
    Reviewed-by: andriac
    andriacap committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    ec84328 View commit details
    Browse the repository at this point in the history
  143. style: apply lint frontend

    Reviewed-by: andriacap
    andriacap committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    8bd3555 View commit details
    Browse the repository at this point in the history
  144. fix: specific field kept in form

    Reset specific field when quit form component (entrance through site)
    
    Reviewed-by: andriac
    andriacap committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    429213c View commit details
    Browse the repository at this point in the history

Commits on Oct 19, 2023

  1. hotfix: problem create visit

    Load permission on 'ALL' for modules error . Change to precise object
    visit permission
    
    Reviewed-by: andriac
    andriacap committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    0710599 View commit details
    Browse the repository at this point in the history

Commits on Oct 20, 2023

  1. style: centered protocol home page

    Reviewed-by: andriacap
    andriacap committed Oct 20, 2023
    Configuration menu
    Copy the full SHA
    38167e5 View commit details
    Browse the repository at this point in the history
  2. wip: manage geometry site group

    Reviewed-by: andriac
    andriacap committed Oct 20, 2023
    Configuration menu
    Copy the full SHA
    3ae0602 View commit details
    Browse the repository at this point in the history
  3. fix:multiple layer and geom site group

    Manage geometry site group (load, reload, on cancel, manage layer etc) (entrance through site)
    
    Reviewed-by: andriac
    andriacap committed Oct 20, 2023
    Configuration menu
    Copy the full SHA
    086568f View commit details
    Browse the repository at this point in the history
  4. feat: geom site group (edit and create)

    Allow user to create and edit geometry for site group
    
    Case :
    - site group with child --> if no geom created, geometry is
      calculated
      --> if geom created you can edit this geom
    - site group without child --> geom can be null (otherwise it's possible
      to create geom)
    
    - Remove console.log
    
    Reviewed-by: andriacap
    andriacap committed Oct 20, 2023
    Configuration menu
    Copy the full SHA
    1067cf1 View commit details
    Browse the repository at this point in the history
  5. ux: add message to inform about geom site group

    Add message about geometry site group to infomr user that the current
    geometry is calculated based on site group's child
    
    Reviewed-by: andriacap
    andriacap committed Oct 20, 2023
    Configuration menu
    Copy the full SHA
    a15b576 View commit details
    Browse the repository at this point in the history
  6. lint: backend

    andriacap committed Oct 20, 2023
    Configuration menu
    Copy the full SHA
    31bafa2 View commit details
    Browse the repository at this point in the history
  7. fix: problem to read data same organism

    Error on check id_organism compare to organism actor
    
    Reviewed-by: andriacap
    andriacap committed Oct 20, 2023
    Configuration menu
    Copy the full SHA
    9f7f021 View commit details
    Browse the repository at this point in the history

Commits on Oct 31, 2023

  1. docs: add documentation for new features (wip)

    Creation d'un nouveau fichier pour expliquer l'entrée par groupe de
    site et site
    Modification de la présentation du module monitoring
    Modification du paragraphe de Permissions
    Ajout d'images descriptives
    
    Reviewed-by: andriacap
    andriacap committed Oct 31, 2023
    Configuration menu
    Copy the full SHA
    6c85ff6 View commit details
    Browse the repository at this point in the history
  2. docs: add description type site form

    Add part to explain link between type site field in edit and creation site form
    
    Reviewed-by: andriacap
    andriacap committed Oct 31, 2023
    Configuration menu
    Copy the full SHA
    3576127 View commit details
    Browse the repository at this point in the history

Commits on Nov 15, 2023

  1. Optimize model and serialization

    amandine-sahl authored and andriacap committed Nov 15, 2023
    Configuration menu
    Copy the full SHA
    2a06f67 View commit details
    Browse the repository at this point in the history
  2. Use marshmallow serializer

    amandine-sahl authored and andriacap committed Nov 15, 2023
    Configuration menu
    Copy the full SHA
    980bccc View commit details
    Browse the repository at this point in the history
  3. feat: manage geom through protocol

    - Fix bug changeActiveTab
    - Add displaying conditional site group geometry through protocol
    
    Reviewed-by: andriacap
    andriacap committed Nov 15, 2023
    Configuration menu
    Copy the full SHA
    223df5b View commit details
    Browse the repository at this point in the history
  4. fix: create site group without geom

    Reviewed-by: andriacap
    andriacap committed Nov 15, 2023
    Configuration menu
    Copy the full SHA
    7dc2acd View commit details
    Browse the repository at this point in the history

Commits on Nov 22, 2023

  1. hotfix: remove import AppConfig

    Error when using docker build
    
    Reviewed-by: andriacap
    andriacap committed Nov 22, 2023
    Configuration menu
    Copy the full SHA
    e044a6e View commit details
    Browse the repository at this point in the history
  2. docs: add observers_txt in "sous_module"

    Reviewed-by: andriacap
    andriacap committed Nov 22, 2023
    Configuration menu
    Copy the full SHA
    2e1096d View commit details
    Browse the repository at this point in the history

Commits on Dec 8, 2023

  1. Resolve conflicts

    amandine-sahl committed Dec 8, 2023
    Configuration menu
    Copy the full SHA
    3096589 View commit details
    Browse the repository at this point in the history