Lua-Binding fuer daw_error/v1 bauen #41
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-lua-common#41
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?
Ziel
Einen Lua-Konstruktor fuer
daw_error/v1-Objekte bereitstellen, dendaw-lua-commonunddaw-lua-netbeim Umbau verwenden koennen.Begruendung
Beim Umfangs-Check fuer die 2.0.0-Fehlerobjekt-Umstellung wurde
festgestellt: in
daw-contractsexistiert noch keinbindings/lua/fuer
daw_error/v1-- es gibt aktuell keinen offiziellen Weg, einsolches Objekt in Lua zu erzeugen. Ohne diesen Baustein kann die
Umstellung der 171 Fehlerstellen nicht beginnen.
Umfang
daw-lua-common(z.B.error/init.lua)daw_error/v1-Objekte:id(UUID),source,code,message, optionalcause, optionaldatasourcewird modulweit gesetzt (_NAMEdes jeweiligen Moduls,z.B.
daw.common.base64), nicht pro Funktionbase64.luaals Referenzimplementierung erprobt:Ruecktfuehrung nach
daw-contracts/daw_error/v1/bindings/lua/alsoffizielle Referenzbindung (Folgearbeit, nicht Teil dieses Issues)
Akzeptanzkriterien
daw_error/v1-Objekte gemaessdaw-contracts/daw_error/v1/contract.jsoncause-Verschachtelung moeglich (ein Objekt referenziert einanderes vollstaendiges
daw_error/v1-Objekt alscause)examples/valid/undexamples/invalid/ausdaw-contractsgeprueftfragjan cleanbestehtBezug
DAW/daw-contracts (Vertragsdefinition, daw_error/v1)
Clarification: the constructor exists in daw-lua-common (
daw/common/error/init.lua+util.lua), tested against its own unit tests and against theexamples/valid/examples/invalidfixtures from daw-contracts.This is not yet a 'working reference binding' in the sense of this issue -- so far it is only a theoretical integration. No real running program produces errors with it in actual operation; only daw-lua-common's and daw-lua-net's own test suites exercise it.
Back-porting to
daw-contracts/daw_error/v1/bindings/lua/will happen once a real program (e.g. kaupapi) uses the constructor without issues in practice -- the same waiting condition as the draft->beta promotion trigger for daw_error/v1 itself.Status set to status/review: the implementation is done and tested in daw-lua-common. The waiting condition from the comment above is unchanged -- the binding goes back to daw-contracts only once a real program (e.g. kaupapi) uses it in operation.