Skip to content

Commit

Permalink
💫 [IMPR] Create fixture with national parks rules for sensitive areas
Browse files Browse the repository at this point in the history
  • Loading branch information
amandine-sahl committed Sep 29, 2023
1 parent 0b444a0 commit ab4e5e4
Show file tree
Hide file tree
Showing 44 changed files with 1,528 additions and 4 deletions.
3 changes: 2 additions & 1 deletion docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ CHANGELOG

- Add organizer_id on TouristicEvent endpoint (#3587)
- Sort API V2 by begin date by default on touristic events (#3597)
- Add rules fixture on sensitive area (#3470)

**Maintenance**

Expand Down Expand Up @@ -60,7 +61,7 @@ CHANGELOG

**Documentation**

- Replace broken link
- Replace broken link

**Improvements**

Expand Down
14 changes: 11 additions & 3 deletions docs/install/advanced-configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -657,6 +657,14 @@ add the following code:
See `sensitivity section <./sensitivity.html>`_ for settings and imports.


You can insert rules of sensitive area with this command :

::

sudo geotrek loaddata /opt/geotrek-admin/lib/python*/site-packages/geotrek/sensitivity/fixtures/rules.json


Feedback reports settings
-------------------------

Expand All @@ -677,7 +685,7 @@ Geotrek reports can work together with Suricate API, using one of 3 modes. Proce

**1** - No Suricate (default)

This mode sends no report data to Suricate.
This mode sends no report data to Suricate.

To initialize Report forms (Geotrek-admin, Geotrek-rando-v2, Geotrek-rando-v3) load lists for categories, activities, statuses and problem magnitude:

Expand Down Expand Up @@ -755,7 +763,7 @@ To make these lists available for your Geotrek-rando, run ``sync_rando`` (see :r
geotrek loaddata /opt/geotrek-admin/lib/python*/site-packages/geotrek/feedback/fixtures/management_workflow.json
geotrek loaddata /opt/geotrek-admin/lib/python*/site-packages/geotrek/maintenance/fixtures/basic.json
- Go to the Admin Site and
- Go to the Admin Site and
- if you want to include the moderation steps (`SKIP_MANAGER_MODERATION = False`), select a user as Workflow Manager (`/admin/feedback/workflowmanager/`). Their role is to assign reports to other users.
- select a district as Workflow District (`/admin/feedback/workflowdistrict/`). This zone defines the area of reponsibility for reports. Reports relocated outside of the district will be excluded from workflow.
- create predefined emails (`/admin/feedback/predefinedemail/`) to notify Suricate Sentinels and Administrators. You can use `##intervention_date##` and `##supervisor##` in the messages' body to automatically replace with the report's linked Intervention date and author. The Extended Username field will be dsiplayed (see User Profile under `/admin/auth/user/`).
Expand All @@ -776,7 +784,7 @@ Display reports with status defined colors
.. code-block :: python
ENABLE_REPORT_COLORS_PER_STATUS = True
Go to the Admin Site and select colors to display for each status (`/admin/feedback/reportstatus/`).


Expand Down
Loading

0 comments on commit ab4e5e4

Please sign in to comment.