Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .formatter.exs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2025 diffo contributors <https://github.com/diffo-dev/diffo/graphs.contributors>
#
# SPDX-License-Identifier: MIT

# Used by "mix format"
locals_without_parens = [
id: 1,
Expand Down
6 changes: 6 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2025 diffo contributors <https://github.com/diffo-dev/diffo/graphs.contributors>

SPDX-License-Identifier: MIT
-->

---
name: Bug report
about: Create a report to help us improve
Expand Down
6 changes: 6 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2025 diffo contributors <https://github.com/diffo-dev/diffo/graphs.contributors>

SPDX-License-Identifier: MIT
-->

---
name: Feature request
about: Suggest an idea for this project
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/reuse.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# SPDX-FileCopyrightText: 2025 diffo contributors <https://github.com/diffo-dev/diffo/graphs.contributors>
#
# SPDX-License-Identifier: MIT

name: REUSE Compliance Check

on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: REUSE Compliance Check
uses: fsfe/reuse-action@v6
3 changes: 3 additions & 0 deletions .gitignore.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2025 diffo contributors <https://github.com/diffo-dev/diffo/graphs.contributors>

SPDX-License-Identifier: MIT
4 changes: 4 additions & 0 deletions .iex.exs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2025 diffo contributors <https://github.com/diffo-dev/diffo/graphs.contributors>
#
# SPDX-License-Identifier: MIT

IEx.configure(
inspect: [
custom_options: [sort_maps: true]
Expand Down
2 changes: 2 additions & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
erlang 28.1
elixir 1.18.4-otp-28
3 changes: 3 additions & 0 deletions .tool-versions.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2025 diffo contributors <https://github.com/diffo-dev/diffo/graphs.contributors>

SPDX-License-Identifier: MIT
3 changes: 3 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2025 diffo contributors <https://github.com/diffo-dev/diffo/graphs.contributors>
//
// SPDX-License-Identifier: MIT
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
Expand Down
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2025 diffo contributors <https://github.com/diffo-dev/diffo/graphs.contributors>

SPDX-License-Identifier: MIT
-->

# Change Log

All notable changes to this project will be documented in this file.
Expand All @@ -19,4 +25,8 @@ See [Conventional Commits](Https://conventionalcommits.org) for commit guideline
* customise instance via specification
* improve relationships to avoid circular loads

## [v0.1.1](https://github.com/diffo-dev/diffo/compare/v0.1.1...v0.1.2) (2025-10-20)

### Features

* REUSE compliant
2 changes: 1 addition & 1 deletion LICENSE.md → LICENSES/MIT.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2025 Matthew Graham Beanland
Copyright (c) 2025 Matthew Graham Beanland and [contributors](https://github.com/diffo-dev/diffo/graphs/contributors)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
<!--
SPDX-FileCopyrightText: 2025 diffo contributors <https://github.com/diffo-dev/diffo/graphs.contributors>

SPDX-License-Identifier: MIT
-->

# Diffo

[![Module Version](https://img.shields.io/hexpm/v/diffo)](https://hex.pm/packages/diffo)
[![Hex Docs](https://img.shields.io/badge/hex-docs-lightgreen)](https://hexdocs.pm/diffo/)
[![License](https://img.shields.io/hexpm/l/diffo)](https://github.com/diffo-dev/diffo/blob/master/LICENSES/MIT.md)
[![REUSE status](https://api.reuse.software/badge/github.com/diffo-dev/diffo)](https://api.reuse.software/info/github.com/diffo-dev/diffo)

Diffo is a Telecommunications Management Forum (TMF) Service and Resource Manager, built for autonomous networks.

It is implemented using the [Ash Framework](https://www.ash-hq.org) leveraging core and community extensions including some created and maintained by [diffo-dev](https://github.com/diffo-dev/). As such it is highly customizable using Spark DSL and as necessary Elixir.
Expand Down Expand Up @@ -28,7 +39,7 @@ by adding `diffo` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:diffo, "~> 0.1.1"}
{:diffo, "~> 0.1.2"}
]
end
```
Expand Down
1 change: 0 additions & 1 deletion VERSION

This file was deleted.

4 changes: 4 additions & 0 deletions config/config.exs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2025 diffo contributors <https://github.com/diffo-dev/diffo/graphs.contributors>
#
# SPDX-License-Identifier: MIT

import Config

config :spark,
Expand Down
4 changes: 4 additions & 0 deletions config/dev.exs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2025 diffo contributors <https://github.com/diffo-dev/diffo/graphs.contributors>
#
# SPDX-License-Identifier: MIT

import Config

config :boltx, Bolt,
Expand Down
4 changes: 4 additions & 0 deletions config/prod.exs
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
# SPDX-FileCopyrightText: 2025 diffo contributors <https://github.com/diffo-dev/diffo/graphs.contributors>
#
# SPDX-License-Identifier: MIT

import Config
4 changes: 4 additions & 0 deletions config/runtime.exs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2025 diffo contributors <https://github.com/diffo-dev/diffo/graphs.contributors>
#
# SPDX-License-Identifier: MIT

import Config

if config_env() == :prod do
Expand Down
4 changes: 4 additions & 0 deletions config/test.exs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2025 diffo contributors <https://github.com/diffo-dev/diffo/graphs.contributors>
#
# SPDX-License-Identifier: MIT

import Config

config :logger, level: :warning
Expand Down
8 changes: 7 additions & 1 deletion diffo.livemd
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
<!--
SPDX-FileCopyrightText: 2025 diffo contributors <https://github.com/diffo-dev/diffo/graphs.contributors>

SPDX-License-Identifier: MIT
-->

# Diffo TMF Service and Resource Manager

```elixir
Mix.install(
[
{:diffo, "~> 0.1.1"}
{:diffo, "~> 0.1.2"}
],
consolidate_protocols: false
)
Expand Down
12 changes: 0 additions & 12 deletions lib/CHANGELOG.md

This file was deleted.

4 changes: 4 additions & 0 deletions lib/diffo.ex
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2025 ash_neo4j contributors <https://github.com/diffo-dev/ash_neo4j/graphs.contributors>
#
# SPDX-License-Identifier: MIT

defmodule Diffo do
@moduledoc """
Diffo - TMF Service and Resource Management with a difference
Expand Down
4 changes: 4 additions & 0 deletions lib/diffo/access/access.ex
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2025 diffo contributors <https://github.com/diffo-dev/diffo/graphs.contributors>
#
# SPDX-License-Identifier: MIT

defmodule Diffo.Access do
@moduledoc """
Diffo - TMF Service and Resource Management with a difference
Expand Down
6 changes: 5 additions & 1 deletion lib/diffo/access/assigner/assignable_value.ex
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2025 diffo contributors <https://github.com/diffo-dev/diffo/graphs.contributors>
#
# SPDX-License-Identifier: MIT

defmodule Diffo.Access.AssignableValue do
@moduledoc """
Diffo - TMF Service and Resource Management with a difference
Expand All @@ -8,7 +12,7 @@ defmodule Diffo.Access.AssignableValue do

jason do
pick [:first, :last, :free, :type, :algorithm]
compact true
compact(true)
end

typed_struct do
Expand Down
4 changes: 4 additions & 0 deletions lib/diffo/access/assigner/assigner.ex
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2025 diffo contributors <https://github.com/diffo-dev/diffo/graphs.contributors>
#
# SPDX-License-Identifier: MIT

defmodule Diffo.Access.Assigner do
@moduledoc """
Diffo - TMF Service and Resource Management with a difference
Expand Down
6 changes: 5 additions & 1 deletion lib/diffo/access/assigner/assignment.ex
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2025 diffo contributors <https://github.com/diffo-dev/diffo/graphs.contributors>
#
# SPDX-License-Identifier: MIT

defmodule Diffo.Access.Assignment do
@moduledoc """
Diffo - TMF Service and Resource Management with a difference
Expand All @@ -8,7 +12,7 @@ defmodule Diffo.Access.Assignment do

jason do
pick [:id, :assignee_id, :operation]
compact true
compact(true)
end

typed_struct do
Expand Down
4 changes: 4 additions & 0 deletions lib/diffo/access/resources/cable.ex
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2025 diffo contributors <https://github.com/diffo-dev/diffo/graphs.contributors>
#
# SPDX-License-Identifier: MIT

defmodule Diffo.Access.Cable do
@moduledoc """
Diffo - TMF Service and Resource Management with a difference
Expand Down
4 changes: 4 additions & 0 deletions lib/diffo/access/resources/card.ex
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2025 diffo contributors <https://github.com/diffo-dev/diffo/graphs.contributors>
#
# SPDX-License-Identifier: MIT

defmodule Diffo.Access.Card do
@moduledoc """
Diffo - TMF Service and Resource Management with a difference
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2025 diffo contributors <https://github.com/diffo-dev/diffo/graphs.contributors>
#
# SPDX-License-Identifier: MIT

defmodule Diffo.Access.CableValue do
@moduledoc """
Diffo - TMF Service and Resource Management with a difference
Expand All @@ -8,7 +12,7 @@ defmodule Diffo.Access.CableValue do

jason do
pick [:name, :pairs, :length, :loss, :technology]
compact true
compact(true)
end

outstanding do
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2025 diffo contributors <https://github.com/diffo-dev/diffo/graphs.contributors>
#
# SPDX-License-Identifier: MIT

defmodule Diffo.Access.CardValue do
@moduledoc """
Diffo - TMF Service and Resource Management with a difference
Expand All @@ -8,14 +12,13 @@ defmodule Diffo.Access.CardValue do

jason do
pick [:name, :family, :model, :technology]
compact true
compact(true)
end

outstanding do
expect [:name]
end


typed_struct do
field :name, :string, description: "the card name"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2025 diffo contributors <https://github.com/diffo-dev/diffo/graphs.contributors>
#
# SPDX-License-Identifier: MIT

defmodule Diffo.Access.FloatUnit do
@moduledoc """
Diffo - TMF Service and Resource Management with a difference
Expand All @@ -8,7 +12,7 @@ defmodule Diffo.Access.FloatUnit do

jason do
pick [:amount, :unit]
compact true
compact(true)
end

outstanding do
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2025 diffo contributors <https://github.com/diffo-dev/diffo/graphs.contributors>
#
# SPDX-License-Identifier: MIT

defmodule Diffo.Access.IntegerUnit do
@moduledoc """
Diffo - TMF Service and Resource Management with a difference
Expand All @@ -8,7 +12,7 @@ defmodule Diffo.Access.IntegerUnit do

jason do
pick [:amount, :unit]
compact true
compact(true)
end

outstanding do
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2025 diffo contributors <https://github.com/diffo-dev/diffo/graphs.contributors>
#
# SPDX-License-Identifier: MIT

defmodule Diffo.Access.PathValue do
@moduledoc """
Diffo - TMF Service and Resource Management with a difference
Expand All @@ -8,7 +12,7 @@ defmodule Diffo.Access.PathValue do

jason do
pick [:name, :sections, :length, :loss, :technology]
compact true
compact(true)
end

outstanding do
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2025 diffo contributors <https://github.com/diffo-dev/diffo/graphs.contributors>
#
# SPDX-License-Identifier: MIT

defmodule Diffo.Access.ShelfValue do
@moduledoc """
Diffo - TMF Service and Resource Management with a difference
Expand All @@ -8,7 +12,7 @@ defmodule Diffo.Access.ShelfValue do

jason do
pick [:name, :family, :model, :technology]
compact true
compact(true)
end

outstanding do
Expand Down
4 changes: 4 additions & 0 deletions lib/diffo/access/resources/path.ex
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2025 diffo contributors <https://github.com/diffo-dev/diffo/graphs.contributors>
#
# SPDX-License-Identifier: MIT

defmodule Diffo.Access.Path do
@moduledoc """
Diffo - TMF Service and Resource Management with a difference
Expand Down
4 changes: 4 additions & 0 deletions lib/diffo/access/resources/shelf.ex
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2025 diffo contributors <https://github.com/diffo-dev/diffo/graphs.contributors>
#
# SPDX-License-Identifier: MIT

defmodule Diffo.Access.Shelf do
@moduledoc """
Diffo - TMF Service and Resource Management with a difference
Expand Down
Loading