Removing a metadata field - Vanuatu-National-Statistics-Office/vnso-nsdp-platform GitHub Wiki

To remove a metadata field from all indicators, you will need to edit this file:

https://github.com/Vanuatu-National-Statistics-Office/vnso-nsdp-platform/blob/develop/metadata-schema.yml

Removing one of the items in this file will have two effects:

  1. The metadata field will no longer appear on indicator pages
  2. The metadata field will no longer appear in the metadata edit forms

For example, at the time of this writing there is a field called "Definition". The file referenced above currently looks like this:

prose:
  metadata:
    meta:
      - name: "Proxy"
        field:
            element: text
            translation_key: "Proxy"
            scope: national
      - name: "Definition"
        field:
            element: text
            translation_key: "Definition"
            scope: national

To remove the "Definition" field, you would remove that entire chunk of code from the file. This should result in the following:

prose:
  metadata:
    meta:
      - name: "Proxy"
        field:
            element: text
            translation_key: "Proxy"
            scope: national

NOTE: This file uses the YAML syntax, which is notoriously picky about indentation. When editing this file, be precise about the indentation used.