Skip to content

Commit

Permalink
feat(ota): exposing optional update target of OTA
Browse files Browse the repository at this point in the history
Ota operations expose an optional `UpdateTarget`. It is a reference to
the update target that created the managed ota operation

Closes #356

Signed-off-by: Luca Zaninotto <[email protected]>
  • Loading branch information
lusergit committed Dec 6, 2024
1 parent e41244a commit 9ae4323
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.10] - Unreleased
### Added
- Managed OTA operations expose the update target that created them in graphql.

## [0.9.1] - 2024-10-28
### Fixed
- Allow receiving `trigger_name` key in trigger payload, which is sent by Astarte >= 1.2.0.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,15 @@ defmodule Edgehog.OSManagement.OTAOperation do
attribute_public? false
allow_nil? false
end

has_one :update_target, Edgehog.UpdateCampaigns.UpdateTarget do
description """
The update target of an update campaing that created the managed
ota operation, if any.
"""

public? true
end
end

calculations do
Expand Down

0 comments on commit 9ae4323

Please sign in to comment.