Skip to content

Commit

Permalink
Merge pull request #1749 from diggerhq/fix/remove-is-acknowledged
Browse files Browse the repository at this point in the history
Remove IsAcknowledged, use status instead
  • Loading branch information
ZIJ authored Oct 4, 2024
2 parents ca1a3c5 + 1947a11 commit 9545695
Show file tree
Hide file tree
Showing 7 changed files with 48 additions and 37 deletions.
9 changes: 5 additions & 4 deletions ee/drift/controllers/ci_jobs.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
package controllers

import (
"log"
"net/http"
"time"

"github.com/diggerhq/digger/ee/drift/dbmodels"
"github.com/diggerhq/digger/ee/drift/model"
"github.com/diggerhq/digger/libs/terraform_utils"
"github.com/gin-gonic/gin"
"log"
"net/http"
"time"
)

type SetJobStatusRequest struct {
Expand Down Expand Up @@ -119,7 +120,7 @@ func ProjectDriftStateMachineApply(project model.Project, tfplan string, resourc
}
if !isEmptyPlan && !wasEmptyPlan {
if project.DriftTerraformPlan != tfplan {
if project.IsAcknowledged {
if project.DriftStatus == dbmodels.DriftStatusAcknowledgeDrift {
project.DriftStatus = dbmodels.DriftStatusNewDrift
}
}
Expand Down
5 changes: 3 additions & 2 deletions ee/drift/model/org_settings.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion ee/drift/model/projects.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 11 additions & 9 deletions ee/drift/model/users.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 9 additions & 5 deletions ee/drift/models_generated/org_settings.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions ee/drift/models_generated/projects.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 19 additions & 11 deletions ee/drift/models_generated/users.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9545695

Please sign in to comment.