Skip to content

Adding new input dimension

Marek Rusinowski edited this page Apr 9, 2023 · 1 revision

Add column in Rowy

  1. Open https://rowy.beyondallreason.dev/table/maps and click "Add column"

    • Column name: whatever you want, it can be changed later

    • Field key: this is important, name as variables, it's going to be name of field in yaml files

    • Field type: appropriate to what you want to store.

      ℹ️Note: Automatically generated fields in Rowy should not be exported to repository, they should be build in repository itself from source columns.

  2. Fill in data for some/all rows properly

Integrate new column in repo

  1. Add new property in main/map_list.schema.yaml

    • The name of property must what you've set "Field key" to in previous step
    • Set the type of property according to the "Field type" set in previous step
  2. Run make update_all_from_rowy to update map_list.yaml with the data from newly set field in Rowy.

    All existing contributors to BAR that are in the BAR's Google group should have permission to read data directly from Rowy.

    To make sure that script can actually authenticate as you to Firebase, you have to setup gcloud by following https://cloud.google.com/sdk/docs/install. Set default project in gcloud to rowy-1f075 with gcloud config set project rowy-1f075.

  3. Run make and make test to ensure that all is properly working after the change.

Clone this wiki locally