Skip to content

Commit

Permalink
Revert "updating upgrade_status: completed (elastic#1833)"
Browse files Browse the repository at this point in the history
This reverts commit 23be42a.
  • Loading branch information
juliaElastic committed Sep 27, 2022
1 parent eb466d3 commit 3860378
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 11 deletions.
1 change: 0 additions & 1 deletion internal/pkg/api/handleAck.go
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,6 @@ func (ack *AckT) handleUpgrade(ctx context.Context, zlog zerolog.Logger, agent *
doc := bulk.UpdateFields{
dl.FieldUpgradeStartedAt: nil,
dl.FieldUpgradedAt: now,
dl.FieldUpgradeStatus: "completed",
}

body, err := doc.Marshal()
Expand Down
1 change: 0 additions & 1 deletion internal/pkg/dl/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ const (
FieldUnenrolledAt = "unenrolled_at"
FieldUpgradedAt = "upgraded_at"
FieldUpgradeStartedAt = "upgrade_started_at"
FieldUpgradeStatus = "upgrade_status"

FieldDecodedSha256 = "decoded_sha256"
FieldIdentifier = "identifier"
Expand Down
5 changes: 1 addition & 4 deletions internal/pkg/model/schema.go

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

6 changes: 1 addition & 5 deletions model/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -459,10 +459,6 @@
"type": "string",
"format": "date-time"
},
"upgrade_status": {
"description": "Upgrade status",
"type": "string"
},
"access_api_key_id": {
"description": "ID of the API key the Elastic Agent must used to contact Fleet Server",
"type": "string"
Expand Down Expand Up @@ -513,7 +509,7 @@
"format": "date-time"
},
"last_checkin_status": {
"description": "Last checkin status",
"description": "Lst checkin status",
"type": "string"
},
"default_api_key_id": {
Expand Down

0 comments on commit 3860378

Please sign in to comment.