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 9, 2024
1 parent 472b713 commit 8acace2
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 ([#356](https://github.com/edgehog-device-manager/edgehog/issues/356).

## [0.9.2] - 2024-12-09
### Changed
- Update the docker-compose configuration to allow both physical and virtual devices
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 8acace2

Please sign in to comment.