Skip to content

ENUM attributes: Those intended to be translated to components do not convert as intended #75

@mgrbyte

Description

@mgrbyte

When a ENUM tag in the annotated ACeDB models is marked with a hash-model (e.g #Evidence), the data is not migrated since the ENUM will result in an ident, which is not a referenable construct (in it's own right) in datomic (i.e it is a :db.type/keyword not a :db.type/ref)
The example cited that @a8wright ran into recently was :molecule.biofunction-role/value, whose annotated source is here,

The result (datomic entity api usage shown below in a clojure REPL session):

pseudoace.cli=> (->> mol :molecule/biofunction-role (map d/touch)
           #_=> )
({:db/id 12134210419605054, :molecule.biofunction-role/value :molecule.biofunction-role.value/metabolite, :molecule.biofunction-role/text "Paper_evidence"})

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions