Skip to content

Refactor ScienceBase user setting to support updated "publish-options" schema #764

@hmaier-fws

Description

@hmaier-fws

Refactor how ScienceBase user setting are stored in and read from the mdEditor-Json "type": "settings" object. The publish-options setting is being refactored (see: #726 ) and existing functions that read ScienceBase user settings will need to be updated.

tasks:

  • Update settings schema as described below
  • Update existing ScienceBase functions that read user settings
  • remove the rootURI element from lib/mdeditor-sciencebase/addon/utils/config.js file.

Proposed settings schema:

"publish-options": [
  {
    "publisher": "ScienceBase",
    "publishEndpoint": "url to ScienceBase publishing endpoint (string)",
    "sb-defaultParent": "identifier of ScienceBase parent item (string)"
  }
]

Metadata

Metadata

Assignees

Labels

maintenanceMinor updates or code refactoring not impacting current functionspublishing:sciencebaseIssues relating to publishing to ScienceBase

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions