datomicism icon indicating copy to clipboard operation
datomicism copied to clipboard

remove empty values from transactions originating in form builder

Open trevor opened this issue 11 years ago • 1 comments

When using the "+" symbol to add fields, stray fields may be left and shouldn't be a part of the transaction.

an example with a stray field:

[ 
 {":db/id" #db/id [":db.part/db"]
  ":db/ident" ":myname/enum1"}

 {":db/id" #db/id [":db.part/db"]
  ":db/ident" ":myname/enum2"}

 {":db/id" #db/id [":db.part/db"]
  ":db/ident" ":myname/null"}
]

trevor avatar Jun 28 '13 13:06 trevor

Good find, this is actually being fixed in the feature release this weekend! You will also notice it is making keywords strings.. yuck. It is now using the newer version of jsedn which cleans that up via first-class keyword usage etc. I will keep this open and close it when I push out the new version!

On Fri, Jun 28, 2013 at 7:52 AM, Trevor Wennblom [email protected]:

When using the "+" symbol to add fields, stray fields may be left and shouldn't be a part of the transaction.

an example with a stray field:

[ {":db/id" #db/id [":db.part/db"] ":db/ident" ":myname/enum1"}

{":db/id" #db/id [":db.part/db"] ":db/ident" ":myname/enum2"}

{":db/id" #db/id [":db.part/db"] ":db/ident" ":myname/null"}]

— Reply to this email directly or view it on GitHubhttps://github.com/shaunxcode/datomicism/issues/21 .

shaunxcode avatar Jun 28 '13 15:06 shaunxcode