Skip to content

Commit

Permalink
Merge pull request #3721 from PnCevennes/feat/fixtures_rules
Browse files Browse the repository at this point in the history
Add fixture rules of sensitive area #3470
  • Loading branch information
Chatewgne authored Nov 28, 2023
2 parents 1aa50fa + 0ce3391 commit 94eee3c
Show file tree
Hide file tree
Showing 44 changed files with 1,532 additions and 4 deletions.
6 changes: 5 additions & 1 deletion docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ CHANGELOG
2.101.4+dev (XXXX-XX-XX)
------------------------

**Improvements**

- Add rules fixture on sensitive area (#3470)

**Documentation**

- Improve documentation for database restore
Expand Down Expand Up @@ -111,7 +115,7 @@ CHANGELOG

**Documentation**

- Replace broken link
- Replace broken link

**Improvements**

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


You can insert rules of sensitive area with these commands :

::

sudo geotrek loaddata /opt/geotrek-admin/lib/python*/site-packages/geotrek/sensitivity/fixtures/rules.json
cp -r /opt/geotrek-admin/lib/python*/site-packages/geotrek/sensitivity/fixtures/upload/rules/ /opt/geotrek-admin/var/media/upload/


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

Expand All @@ -677,7 +686,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 +764,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 +785,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 94eee3c

Please sign in to comment.