From a67f9d4041a535c8e301f6d24b64b187d35b9b04 Mon Sep 17 00:00:00 2001 From: Ash-exp Date: Fri, 12 Sep 2025 16:57:18 +0530 Subject: [PATCH 1/2] fix: update validation tags for TimeBoundariesRequest fields --- common-lib/utils/TimeUtils.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common-lib/utils/TimeUtils.go b/common-lib/utils/TimeUtils.go index cebe36da4..9e8e3d6c0 100644 --- a/common-lib/utils/TimeUtils.go +++ b/common-lib/utils/TimeUtils.go @@ -110,9 +110,9 @@ func (timeRange *TimeRangeRequest) ParseAndValidateTimeRange() (*TimeRangeReques // TimeBoundariesRequest represents the request for time boundary frames type TimeBoundariesRequest struct { - TimeWindowBoundaries []string `json:"timeWindowBoundaries" schema:"timeWindowBoundaries" validate:"omitempty, min=1"` - TimeWindow *TimeWindows `json:"timeWindow" schema:"timeWindow" validate:"omitempty, oneof=week month quarter year"` // week, month, quarter, year - Iterations int `json:"iterations" schema:"iterations" validate:"omitempty, min=1"` + TimeWindowBoundaries []string `json:"timeWindowBoundaries" schema:"timeWindowBoundaries" validate:"omitempty,min=1"` + TimeWindow *TimeWindows `json:"timeWindow" schema:"timeWindow" validate:"omitempty,oneof=week month quarter year"` // week, month, quarter, year + Iterations int `json:"iterations" schema:"iterations" validate:"omitempty,min=1"` } // TimeWindowBoundaries represents the start and end times for a time window From 1a1396dbe458332aa085e42f1a7929ae38287310 Mon Sep 17 00:00:00 2001 From: Ash-exp Date: Thu, 25 Sep 2025 13:30:50 +0530 Subject: [PATCH 2/2] fix: reset checkout message on successful fetch --- git-sensor/pkg/RepoManages.go | 1 + 1 file changed, 1 insertion(+) diff --git a/git-sensor/pkg/RepoManages.go b/git-sensor/pkg/RepoManages.go index e3f69a3b7..90a448727 100644 --- a/git-sensor/pkg/RepoManages.go +++ b/git-sensor/pkg/RepoManages.go @@ -407,6 +407,7 @@ func (impl RepoManagerImpl) checkoutMaterial(gitCtx git.GitContext, material *sq } else { material.CheckoutLocation = checkoutLocationForFetching material.CheckoutStatus = true + material.CheckoutMsgAny = "" material.FetchStatus = true } err = impl.materialRepository.Update(material)