magda-io / magda

A federated, open-source data catalog for all your big data and small data
https://magda.io
Apache License 2.0
508 stars 93 forks source link

New aspect "preview-map-settings" to provide dataset / distribution level controls over UI functionality #3478

Closed t83714 closed 1 year ago

t83714 commented 1 year ago

New aspect "preview-map-settings" to provide dataset / distribution level controls over UI functionality

Currently, we have config options available for both web-server & magda-preview-map. However, those config options only allow us to config the preview map global behaviour rather than the behaviour for each individual map.

This ticket proposes a new aspect, "preview-map-settings":

{
  "$schema": "http://json-schema.org/schema#",
  "title": "Preview Map Settings",
  "description": "Provides extra preview map configuration options at dataset/distribution level.",
  "type": "object",
  "properties": {
    "enable": {
      "title": "Whether the preview map UI feature should be enabled for the attached dataset/distribution.",
      "type": "boolean",
      "default": true
    }
  }
}

We can manually attach this aspect to any dataset/distribution records to indicate whether the whole dataset (all distributions in the dataset) or the attached distribution record should not be used for preview map purposes in UI.

At this stage, we will not provide any UI / tool to create this aspect. Users can create the aspect data for a particular dataset or distribution record via API when required.

t83714 commented 1 year ago

closed via PR: https://github.com/magda-io/magda/pull/3479