You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The goal of the separation between the prompting and the writer modules is to be able to use and evolve them separately. Especially when creating complex prompting modules with multiple conditional branches that need to run in the YeomanUI the prompting output will be large flat structures. Such an output can map to one or more writers that need only a subset of the answers.
To solve that we decided that the general flow is prompt -> transform -> write. The prompting results in usually a flat type named xyzAnswers and the writer requires a well structured xyzConfig. The mapping between both would happen in the consumer of both prompting and writing.
Description (include screenshots)
The goal of the separation between the prompting and the writer modules is to be able to use and evolve them separately. Especially when creating complex prompting modules with multiple conditional branches that need to run in the YeomanUI the prompting output will be large flat structures. Such an output can map to one or more writers that need only a subset of the answers.
To solve that we decided that the general flow is
prompt
->transform
->write
. The prompting results in usually a flat type namedxyzAnswers
and the writer requires a well structuredxyzConfig
. The mapping between both would happen in the consumer of both prompting and writing.The goal of this task is to rework the types and interfaces of https://github.com/SAP/open-ux-tools/tree/main/packages/adp-tooling/src/prompts and their corresponding writers.
Value
Clean separation of concerns allows better reusability, testability and maintainability.
Architecture Elaboration
n/a
Notes
#2184 was only approved with the agreement that this TBI will be implemented right after.
Misc
@testojs @mmilko01
Tasks
The text was updated successfully, but these errors were encountered: