Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused isBillingModeProvisioned var in dynamoevents.go #15555

Merged
merged 3 commits into from
Aug 16, 2022

Conversation

vitorenesduarte
Copy link
Contributor

@vitorenesduarte vitorenesduarte commented Aug 16, 2022

isBillingModeProvisioned in dynamoevents.Log doesn't seem to be in use, so this PR removes it.

Testing

None.

@github-actions github-actions bot added the audit-log Issues related to Teleports Audit Log label Aug 16, 2022
@github-actions github-actions bot requested review from hatched and jakule August 16, 2022 14:07
@vitorenesduarte vitorenesduarte self-assigned this Aug 16, 2022
@zmb3
Copy link
Collaborator

zmb3 commented Aug 16, 2022

I would like @xacrimon to look at this.

isBillingModeProvisioned was added to fix a sev 1 issue encountered by a customer. I'm surprised it's not being used.

@xacrimon
Copy link
Contributor

xacrimon commented Aug 16, 2022

@zmb3 The sev1 issue in question was caused by an error triggering during migration and creation of the new index as part of a version upgrade. This code doesn't exist in master as of #12577 after a quick bisection. This is unused because the only branch/bit of code that actually depended on this data to make the correct choice was the migration code. This is safe to remove and is expected. I should've removed this code in the PR mentioned above but missed it. We stripped out the migration code because we don't support such version jumps. This code still exists in v10/v9 which means we won't/cannot backport this PR.

@vitorenesduarte vitorenesduarte enabled auto-merge (squash) August 16, 2022 19:09
@zmb3
Copy link
Collaborator

zmb3 commented Aug 16, 2022

Awesome, thanks for confirming Joel!

@github-actions github-actions bot removed the request for review from jakule August 16, 2022 19:30
@vitorenesduarte vitorenesduarte merged commit 0e87ca8 into master Aug 16, 2022
@vitorenesduarte vitorenesduarte deleted the vitor/remove-unused-vars-dynamoevents branch August 16, 2022 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
audit-log Issues related to Teleports Audit Log
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants