Skip to content

Commit

Permalink
Revert "OSS Changes Patch (#29154)"
Browse files Browse the repository at this point in the history
This reverts commit 46c69d7.
  • Loading branch information
divyaac authored Dec 20, 2024
1 parent 3754c67 commit 3ab9900
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions vault/logical_system_activity.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ const (

// WarningCurrentMonthIsAnEstimate is a warning string that is used to let the customer know that for this query, the current month's data is estimated.
WarningCurrentMonthIsAnEstimate = "Since this usage period includes both the current month and at least one historical month, counts returned in this usage period are an estimate. Client counts for this period will no longer be estimated at the start of the next month."

ErrorUpgradeInProgress = "Upgrade to 1.19+ is in progress; the activity log is not queryable until the upgrade is complete"
)

// activityQueryPath is available in every namespace
Expand Down Expand Up @@ -295,9 +293,6 @@ func (b *SystemBackend) handleClientExport(ctx context.Context, req *logical.Req
if a == nil {
return logical.ErrorResponse("no activity log present"), nil
}
if !a.hasDedupClientsUpgrade(ctx) {
return logical.ErrorResponse(ErrorUpgradeInProgress), nil
}

startTime, endTime, err := parseStartEndTimes(d, b.Core.BillingStart())
if err != nil {
Expand Down Expand Up @@ -344,9 +339,6 @@ func (b *SystemBackend) handleClientMetricQuery(ctx context.Context, req *logica
if a == nil {
return logical.ErrorResponse("no activity log present"), nil
}
if !a.hasDedupClientsUpgrade(ctx) {
return logical.ErrorResponse(ErrorUpgradeInProgress), nil
}

warnings := make([]string, 0)

Expand Down Expand Up @@ -393,9 +385,6 @@ func (b *SystemBackend) handleMonthlyActivityCount(ctx context.Context, req *log
if a == nil {
return logical.ErrorResponse("no activity log present"), nil
}
if !a.hasDedupClientsUpgrade(ctx) {
return logical.ErrorResponse(ErrorUpgradeInProgress), nil
}

results, err := a.partialMonthClientCount(ctx)
if err != nil {
Expand All @@ -417,9 +406,6 @@ func (b *SystemBackend) handleActivityConfigRead(ctx context.Context, req *logic
if a == nil {
return logical.ErrorResponse("no activity log present"), nil
}
if !a.hasDedupClientsUpgrade(ctx) {
return logical.ErrorResponse(ErrorUpgradeInProgress), nil
}

config, err := a.loadConfigOrDefault(ctx)
if err != nil {
Expand Down Expand Up @@ -454,9 +440,6 @@ func (b *SystemBackend) handleActivityConfigUpdate(ctx context.Context, req *log
if a == nil {
return logical.ErrorResponse("no activity log present"), nil
}
if !a.hasDedupClientsUpgrade(ctx) {
return logical.ErrorResponse(ErrorUpgradeInProgress), nil
}

warnings := make([]string, 0)

Expand Down

0 comments on commit 3ab9900

Please sign in to comment.