Skip to content

Bug in io.pedestal.app.diff/model-diff-inform #18

@danielcompton

Description

@danielcompton

I'm not sure if I'm not understanding it correctly but it seems like there is a bug in https://github.com/pedestal/pedestal-app/blob/master/app/src/io/pedestal/app/diff.clj#L42

I run

(model-diff-inform {:a 1} {:a 1 :b 2})
;;[[[:b] :added {:a 1} {:a 1, :b 2}]]
(model-diff-inform {:a 1 :b 2} {:a 1})
;;[]

I would expect that (model-diff-inform {:a 1 :b 2} {:a 1}) would return something like [[[:b] :removed {:a 1, :b 2} {:a 1}]]

Is this expected behaviour?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions