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 mdEditor incorrectly writes the "liabilityStatement" to mdJSON as "liablityStatement" (missing "i"). The translator correctly imports from CSDGM and writes to JSON as liabilityStatement.
Records imported from CSDGM may contain a correctly named key, which will not be displayed in the editor. Subsequent editing of the record could result in the presence of two statements, one with the correcly spelled key and another with the incorrectly spelled key.
Tasks:
Rename key in mdEditor to liabilityStatement
Determine how to fix existing data. (perform on import and export)
Case 1: no liability statement present; no action needed.
Case 2: single liability statement using correct spelling; no action needed.
Case 3: single liability statement using incorrect spelling; rename key or copy and delete.
Case 4: two liability statements present using both correct and incorrect keys. The value of the misspelled key (entered via the editor) shall replace the value of the correctly spelled key (imported from CSDGM). The misspelled key shall then be deleted from the JSON.
See:
I see the issue, it looks like there a misspelling, liablityStatement vs liabilityStatement (missing i)
since this is in the Production version I'll do a little digging on how we can handle upgrading existing mdJson to the correct spelling transparently in the editor, and I suppose we should handle both spellings in the translator
The mdEditor incorrectly writes the "liabilityStatement" to mdJSON as "liablityStatement" (missing "i"). The translator correctly imports from CSDGM and writes to JSON as
liabilityStatement
.Records imported from CSDGM may contain a correctly named key, which will not be displayed in the editor. Subsequent editing of the record could result in the presence of two statements, one with the correcly spelled key and another with the incorrectly spelled key.
Tasks:
See:
I see the issue, it looks like there a misspelling, liablityStatement vs liabilityStatement (missing i)
this is coming from mdEditor
mdEditor/app/pods/components/object/md-distribution/template.hbs
Line 22 in f947706
since this is in the Production version I'll do a little digging on how we can handle upgrading existing mdJson to the correct spelling transparently in the editor, and I suppose we should handle both spellings in the translator
Originally posted by @timothypage in adiwg/mdTranslator#236 (comment)
The text was updated successfully, but these errors were encountered: