From 8a484e39a275f13a94f2654542cf4773ec65618b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Salo=C5=88?= Date: Thu, 12 Dec 2024 14:51:12 +0100 Subject: [PATCH] fixed issue with service scoping if no service was provided --- CHANGELOG.md | 5 +++++ src/cmd/scope/scopeService.go | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 880cf6c..70ffe29 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ 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). +## [v1.0.33] - 2024-12-12 + +### Fixed +- issue with service scoping if no service flag was used + ## [v1.0.32] - 2024-12-12 ### Fixed diff --git a/src/cmd/scope/scopeService.go b/src/cmd/scope/scopeService.go index f3a2c15..29f29fe 100644 --- a/src/cmd/scope/scopeService.go +++ b/src/cmd/scope/scopeService.go @@ -66,6 +66,10 @@ func (s *service) LoadSelectedScope(ctx context.Context, cmd *cmdBuilder.Cmd, cm // interactive selector of service if service == nil { + // we have to load project, because we need projectId + if err := s.parent.LoadSelectedScope(ctx, cmd, cmdData); err != nil { + return err + } service, err = uxHelpers.PrintServiceSelector(ctx, cmdData.UxBlocks, cmdData.RestApiClient, *cmdData.Project) if err != nil { return err