Skip to content

Commit 9dd33cc

Browse files
Merge pull request #30 from diffo-dev/29-update-to-diffo-021
29 update to diffo 021
2 parents b3344df + 8821ca8 commit 9dd33cc

17 files changed

Lines changed: 81 additions & 108 deletions

CHANGELOG.md

Lines changed: 27 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,14 @@ See [Conventional Commits](Https://conventionalcommits.org) for commit guideline
1111

1212
<!-- changelog -->
1313

14-
## [v0.0.1](https://github.com/diffo-dev/diffo/compare/v0.0.1..v0.0.1) (2025-10-20)
15-
16-
### Features:
17-
* initial version
18-
19-
## [v0.0.2](https://github.com/diffo-dev/diffo/compare/v0.0.1..v0.0.2) (2025-12-01)
14+
## [v0.2.1](https://github.com/diffo-dev/diffo/compare/v0.2.0..v0.2.1) (2026-05-07)
2015

2116
### Maintenance:
22-
* updated to diffo 0.1.3
17+
* updated to diffo 0.2.1
2318

24-
## [v0.0.3](https://github.com/diffo-dev/diffo/compare/v0.0.2..v0.0.3) (2026-03-13)
25-
26-
### Maintenance:
27-
* updated to diffo 0.1.4, using ash_neo4j 0.2.13 using fork bolty 0.0.7 rather than boltx 0.0.6
28-
29-
## [v0.0.4](https://github.com/diffo-dev/diffo/compare/v0.0.3..v0.0.4) (2026-03-19)
30-
31-
### Fixes:
32-
* fixed relationship enrichment inconsistent across neo4j versions
19+
### Features:
20+
* using transactions and test sandbox
21+
* using improved provider DSL
3322

3423
## [v0.2.0](https://github.com/diffo-dev/diffo/compare/v0.0.4..v0.2.0) (2026-04-26)
3524

@@ -43,4 +32,25 @@ See [Conventional Commits](Https://conventionalcommits.org) for commit guideline
4332
* RSP multi-tenancy: SetRspId change, OwnedByActor and NoActor policy checks, RspOwnership macro shared across RSP-owned resources
4433
* NTD and UNI modelled as NBN-owned infrastructure — readable by any RSP, mutable only by internal calls
4534
* Interactive NBN livebook with Kino RSP selector and actor-scoped provisioning flow
46-
* NBN domain documentation including Perentie ecosystem narrative
35+
* NBN domain documentation including Perentie ecosystem narrative
36+
37+
## [v0.0.4](https://github.com/diffo-dev/diffo/compare/v0.0.3..v0.0.4) (2026-03-19)
38+
39+
### Fixes:
40+
* fixed relationship enrichment inconsistent across neo4j versions
41+
42+
## [v0.0.3](https://github.com/diffo-dev/diffo/compare/v0.0.2..v0.0.3) (2026-03-13)
43+
44+
### Maintenance:
45+
* updated to diffo 0.1.4, using ash_neo4j 0.2.13 using fork bolty 0.0.7 rather than boltx 0.0.6
46+
47+
## [v0.0.2](https://github.com/diffo-dev/diffo/compare/v0.0.1..v0.0.2) (2025-12-01)
48+
49+
### Maintenance:
50+
* updated to diffo 0.1.3
51+
52+
## [v0.0.1](https://github.com/diffo-dev/diffo/compare/v0.0.1..v0.0.1) (2025-10-20)
53+
54+
### Features:
55+
* initial version
56+

documentation/domains/diffo_example_nbn.livemd

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@ SPDX-License-Identifier: MIT
99
```elixir
1010
Mix.install(
1111
[
12-
# {:diffo_example, "~> 0.3.0"},
13-
{:diffo_example, github: "diffo-dev/diffo_example", branch: "dev"},
14-
{:diffo, github: "diffo-dev/diffo", branch: "dev", override: true},
12+
{:diffo_example, "~> 0.2.1"},
13+
{:diffo, "~> 0.4.1"},
1514
{:kino, "~> 0.14"},
1615
{:req, "~> 0.5"}
1716
],

lib/diffo_example/application.ex

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@ defmodule DiffoExample.Application do
1010
@impl true
1111
def start(_type, _args) do
1212
children =
13-
[
14-
{Task, &DiffoExample.Nbn.Initializer.init/0}
15-
] ++
16-
if Mix.env() == :test,
17-
do: [],
18-
else: [{Plug.Cowboy, scheme: :http, plug: DiffoExample.Nbn.Router, options: [port: 4000]}]
13+
if Mix.env() == :test do
14+
[]
15+
else
16+
[
17+
{Task, &DiffoExample.Nbn.Initializer.init/0},
18+
{Plug.Cowboy, scheme: :http, plug: DiffoExample.Nbn.Router, options: [port: 4000]}
19+
]
20+
end
1921

2022
Supervisor.start_link(children, strategy: :one_for_one, name: DiffoExample.Supervisor)
2123
end

lib/nbn/initializer.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ defmodule DiffoExample.Nbn.Initializer do
1919
%{name: "Taipan Group", short_name: :taipan, id: "0004"},
2020
%{name: "Echidna Networks", short_name: :echidna, id: "0005"},
2121
%{name: "Dugong Digital", short_name: :dugong, id: "0006"},
22-
%{name: "Lyrebird", short_name: :lyrebird, id: "0007"}
22+
#%{name: "Lyrebird", short_name: :lyrebird, id: "0007"}
2323
]
2424

2525
def init do

lib/nbn/resources/rsp.ex

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,11 @@ defmodule DiffoExample.Nbn.Rsp do
6565

6666
instances do
6767
role :owner, DiffoExample.Nbn.Avc
68-
role :owner, DiffoExample.Nbn.Cvc
69-
role :owner, DiffoExample.Nbn.Nni
70-
role :owner, DiffoExample.Nbn.NniGroup
71-
role :owner, DiffoExample.Nbn.NbnEthernet
68+
# pending resolution of /diffo-dev/diffo#101
69+
#role :owner, DiffoExample.Nbn.Cvc
70+
#role :owner, DiffoExample.Nbn.Nni
71+
#role :owner, DiffoExample.Nbn.NniGroup
72+
#role :owner, DiffoExample.Nbn.NbnEthernet
7273
end
7374

7475
actions do

mix.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ defmodule DiffoExample.MixProject do
66
@moduledoc false
77
use Mix.Project
88

9-
@version "0.2.0"
9+
@version "0.2.1"
1010
@name "DiffoExample"
1111
@description "Examples for Diffo TMF Service and Resource Manager"
1212
@github_url "https://github.com/diffo-dev/diffo-example"
@@ -86,7 +86,7 @@ defmodule DiffoExample.MixProject do
8686
# Run "mix help deps" to learn about dependencies.
8787
defp deps do
8888
[
89-
{:diffo, diffo_version([path: "../diffo"])},
89+
{:diffo, diffo_version("~> 0.2.1")},
9090
{:ash_json_api, "~> 1.6"},
9191
{:plug_cowboy, "~> 2.7"},
9292
{:req, "~> 0.5", only: [:dev, :test]},

mix.lock

Lines changed: 9 additions & 9 deletions
Large diffs are not rendered by default.

test/access/cable_test.exs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
defmodule DiffoExample.Access.CableTest do
66
@moduledoc false
7-
use ExUnit.Case
7+
use ExUnit.Case, async: true
88
alias Diffo.Provider.Specification
99
alias Diffo.Provider.Characteristic
1010
alias Diffo.Provider.Assignment
@@ -13,14 +13,9 @@ defmodule DiffoExample.Access.CableTest do
1313
alias DiffoExample.Access.IntegerUnit
1414
alias DiffoExample.Test.Characteristics
1515

16-
setup_all do
17-
AshNeo4j.BoltyHelper.start()
18-
end
19-
2016
setup do
21-
on_exit(fn ->
22-
AshNeo4j.Neo4jHelper.delete_all()
23-
end)
17+
AshNeo4j.Sandbox.checkout()
18+
on_exit(&AshNeo4j.Sandbox.rollback/0)
2419
end
2520

2621
describe "build cable" do

test/access/card_test.exs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,17 @@
44

55
defmodule DiffoExample.Access.CardTest do
66
@moduledoc false
7-
use ExUnit.Case
7+
use ExUnit.Case, async: true
88
alias Diffo.Provider.Specification
99
alias Diffo.Provider.Characteristic
1010
alias Diffo.Provider.Assignment
1111
alias DiffoExample.Access
1212
alias DiffoExample.Access.Card
1313
alias DiffoExample.Test.Characteristics
1414

15-
setup_all do
16-
AshNeo4j.BoltyHelper.start()
17-
end
18-
1915
setup do
20-
on_exit(fn ->
21-
AshNeo4j.Neo4jHelper.delete_all()
22-
end)
16+
AshNeo4j.Sandbox.checkout()
17+
on_exit(&AshNeo4j.Sandbox.rollback/0)
2318
end
2419

2520
describe "build card" do

test/access/characteristic_value_test.exs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,17 @@
44

55
defmodule DiffoExample.Access.CharacteristicValueTest do
66
@moduledoc false
7-
use ExUnit.Case
7+
use ExUnit.Case, async: true
88
alias DiffoExample.Access.AggregateInterface
99
alias DiffoExample.Access.Circuit
1010
alias DiffoExample.Access.Dslam
1111
alias DiffoExample.Access.Line
1212
alias DiffoExample.Access.BandwidthProfile
1313
alias Diffo.Type.Value
1414

15-
setup_all do
16-
AshNeo4j.BoltyHelper.start()
17-
end
18-
1915
setup do
20-
on_exit(fn ->
21-
AshNeo4j.Neo4jHelper.delete_all()
22-
end)
16+
AshNeo4j.Sandbox.checkout()
17+
on_exit(&AshNeo4j.Sandbox.rollback/0)
2318
end
2419

2520
@dslam "QDONC0001"

0 commit comments

Comments
 (0)