Skip to content

Commit

Permalink
Add missing action log entry ID attribute.
Browse files Browse the repository at this point in the history
  • Loading branch information
candera committed Jan 25, 2016
1 parent 29bc54e commit c34cc2e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions resources/simulant/schema.edn
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,13 @@
:db/doc "Identifier for the kind of step within an action."
:db/cardinality :db.cardinality/one
:db.install/_attribute :db.part/db}
{:db/id #db/id[:db.part/db]
:db/ident :actionLog/id
:db/valueType :db.type/uuid
:db/unique :db.unique/identity
:db/doc "A unique identifier for the action log item."
:db/cardinality :db.cardinality/one
:db.install/_attribute :db.part/db}
{:db/id #db/id [:db.part/db]
:db/ident :actionLog/sequence-number
:db/valueType :db.type/long
Expand Down
1 change: 1 addition & 0 deletions src/simulant/action_log.clj
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
current step is defined, also include a reference to it."
[action process]
(merge {:db/id (d/tempid :db.part/user)
:actionLog/id (d/squuid)
:actionLog/sequence-number (swap! seq-counter inc)
:actionLog/sim (-> process :sim/_processes only e)
:actionLog/action (e action)}
Expand Down

0 comments on commit c34cc2e

Please sign in to comment.