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 12, 2023
1 parent a9f8969 commit 427f8cf
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 @@ -8,6 +8,7 @@ CHANGELOG
**Improvements**

- Remove 'review' field on ServiceType (#1669)
- Add rules fixture on sensitive area (#3470)

**Documentation**

Expand All @@ -31,7 +32,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 @@ -113,7 +113,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 @@ -191,7 +191,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 @@ -212,7 +212,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 Expand Up @@ -293,6 +293,14 @@ To take these changes into account, you need to run :

sudo dpkg-reconfigure -u geotrek-admin


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


Diving
------

Expand Down
Loading

0 comments on commit 427f8cf

Please sign in to comment.