Ask the field of a decision_required event and return the response #15
Labels
No labels
coordination/cross-repo
coordination/needed
effort
large
effort
medium
effort
small
meta/duplicate
meta/planning
meta/wontfix
priority
high
priority
low
priority
medium
session
blocker
session
handover
session
next
status
blocked
status
done
status
in-progress
status
review
status
to-go
type
admin
type
bug
type
config
type
deployment
type
docs
type
enhancement
type
feature
type
handover
type
infrastructure
type
installation
type
maintenance
type
migration
type
research
type
security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
DAW/daw-modul-berhtjan-cli#15
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
A module asks a question with a
daw_event/v1(decision_required) thatcarries a field declared with
daw_field_type/v1. berhtjan-cli cannotanswer it yet:
prompt()reads every field as free text and ignores thefield type,
confirm()is a fixed yes/no with fixed texts and knows noevent. The adapter must show the question, read the answer and hand back a
daw_event_response/v1, without knowing any module.First use case: yes/no confirmation before a module is removed
(DAW/daw-module-manager), declared as a
selection/static/singlefield with two answers.
Scope
daw_event_response/v1|
daw_error/v1resource_id(
daw_i18n/v1)(
acquisition[].kind,cardinality,collection.source), with theinput functions from #14; first step:
selection/staticas achoice by number. The adapter works with positions internally and
returns the declared
value, never an entered textresource_idresolved from the catalogs,falling back to its canonical
message(same pattern asdaw_error/v1)value.kind, in code or in a tableissue in DAW/daw-modul-berhtjan-core); the response is returned to the
caller, no transport here
daw_error/v1input_ended, as inprompt()andconfirm()Provisional (marked as such until validated)
data.answer) and of the value (data.value)collection.valuesentries (object withvalue,message,resource_id), see the companion issue in DAW/daw-contractsOut of scope
confirm(): it stays until DAW/fragjan no longer uses it,then a separate issue
Acceptance criteria
daw_i18n/v1resources,resource_idper error sitefragjan code .andmake test(Lua 5.1 and 5.4) passRelated
DAW/daw-modul-berhtjan-cli#14, DAW/daw-contracts (
daw_event/v1,daw_event_response/v1,daw_field_type/v1), DAW/fragjan#137Cross references
DAW/daw-modul-berhtjan-core#21 (build and check the response)
collection.valuesentries); the object form used here is provisional until it is decided
Implemented on develop
Commits:
a67221f,64f03d0,d7a196dPushed. Follow-up points, if any, are tracked in their own issues.