Closed madeleineostoja closed 7 years ago
UID foo.bar.baz exists Simpla.remove('foo.bar') called
foo.bar.baz
Simpla.remove('foo.bar')
The foo.bar path is removed. That is, foo.bar and all of its children are removed.
foo.bar
Only the specific identifier foo.bar is removed, so foo and foo.bar.baz exist, but foo.bar does not.
foo
This will also play into the move from UIDs -> paths, but I imagine is a separate issue in terms of implementation.
Fixed in https://github.com/simplaio/simpla/commit/1c27c1729f9f9ca4b9697c81355188e2750b2e5d
Scenario
UID
foo.bar.baz
existsSimpla.remove('foo.bar')
calledExpected outcome
The
foo.bar
path is removed. That is,foo.bar
and all of its children are removed.Actual outcome
Only the specific identifier
foo.bar
is removed, sofoo
andfoo.bar.baz
exist, butfoo.bar
does not.This will also play into the move from UIDs -> paths, but I imagine is a separate issue in terms of implementation.