Skip to content

Change schade choices

Machteld Varewyck edited this page Apr 20, 2022 · 1 revision

Rationale

The list of species one can select from at the beginning of the wildschade-page is ever changing. Therefore it is necessary to know how to change this list.

This how to is based on the fix provided for issue #254 by @mvarewyck

Method

while on github online

  1. go to ./reporting-grofwild/inst/extdata and open meta_schade.csv
  2. click on edit this file

image

  1. Add/remove/edit the relevant rows in the data. Do not edit the columns or their names. The data should always contain following 5 columns:
  • variable: type of choice list. Possible values are wildsoort, type or source.
  • group and name: define the value names in the data for each group and members of the group. Leave the group empty if not relevant (e.g. for source)
  • group_display and name_display: defines translation of the original value in the data for the web application. Leave empty if no such translation needed (e.g. for wildsoort).
  1. Commit these changes to a new branch and start a pull request.
    • select @sanderdevisscher and/or @jimcasaer as reviewers
  2. Create the pull request
  3. The reviewer(s) check the pull request
    • After approval the reviewer(s) merge the branch with the master and remove the branch

Example screenshots

Example for wildsoort and type group_display and name_display choices in the web application
Screenshot from 2022-04-20 15-00-52
Example for wildsoort and type group, group_display, name and name_display choices
Example for source name_display choices in the web application
Screenshot from 2022-04-20 15-04-18
Example for source name and name_display choices
Clone this wiki locally