Skip to content

Refactor Generate Settings #199

@jwildfire

Description

@jwildfire

Current State

generateSettings uses a standard and chart to generate a 'default' settings object (with an option to leave some values undefined vi the partial option). A settings shell object for eDish (representing a default configuration) is saved in the function. This isn't very flexible, generalizable or scalable.

Future State

Create a more generalizable framework, where generateSettings creates a default object using the various metadata files, and then users can provide a customSettings object that overwrites default values (via setSettingValue()).

Details

  • Remove the "shell" setting list for eDish currently saved in generateSettings. We want to generate this algorithmically instead. We might want to start with the code @pburnsdata wrote for the previous more limited refactor
  • Need to figure out the best way to store the "default" values for setting other than data mappings.
  • customSettings should be optional. Not sure if it's best to structure that parameter as a settings object or as an array of key/value pairs ...

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions