Skip to content

Make loading of default profiles optional #615

@marip8

Description

@marip8

Is your feature request related to a problem? Please describe.

As of 0.29.x, when a task cannot find a specified profile, it chooses a default profile instead of returning an error. This can result in undesired planning behavior that can be hard to track down.

Describe the solution you'd like

  1. Remove the getProfile helper function that returns a provided default profile if the desired profile is not available
  2. Add a helper function that adds a default profiles for each task to a profile dictionary. Then the user can choose whether or not to populate their profile dictionary with default profiles or if they want to be responsible for adding them all themselves
    • One approach (implemented here) is to write a where we manually a default profile for all known tasks. The limitation here is that this would only add default profiles for tasks that exist in Tesseract, and not user provided tasks.
    • Probably a better approach (discussed here) is to add a function to the task composer task base class that generates a default profile for that task. Then our helper function could loop over all known task composer plugins and invoke the task method for generating the default profile. Then we would be able to add default profiles for all findable (and therefore usable) tasks.

Describe alternatives you've considered

N/A

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions