Skip to content

Commit

Permalink
Changed cleanup to use prewalk, and fixed test.
Browse files Browse the repository at this point in the history
  • Loading branch information
awkay committed Aug 20, 2024
1 parent 074b7a6 commit 3c6c2f4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@
(ident-specific-paths state ident)))

remove-leftovers (fn [state]
(walk/postwalk
(walk/prewalk
(fn [ele]
(cond
(map? ele) (enc/remove-vals #(= ident %) ele)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,6 @@
(-> (nsh/remove-entity state [:car/id 1]) :fastest-car) => nil
"Removes top-level to-many refs"
(-> (nsh/remove-entity state [:person/id 1]) :grandparents) => [[:person/id 2]]
"Ignores denormalized data"
(-> (nsh/remove-entity state [:person/id 1])
(nsh/get-in-graph [:denorm :level-1 :level-2])) => denorm-data
"Removes table-nested to-one references"
(let [new-state (nsh/remove-entity state [:email/id 1])]
(-> (or
Expand Down

0 comments on commit 3c6c2f4

Please sign in to comment.