Skip to content

[usage] Fix negative credits #12773

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

Merged
merged 1 commit into from
Sep 8, 2022
Merged

[usage] Fix negative credits #12773

merged 1 commit into from
Sep 8, 2022

Conversation

easyCZ
Copy link
Member

@easyCZ easyCZ commented Sep 8, 2022

Description

Fixes negative credits.

Related Issue(s)

Fixes #

How to test

Unit tests

Release Notes

NONE

Documentation

Werft options:

  • /werft with-preview

@easyCZ easyCZ requested a review from a team September 8, 2022 14:15
@github-actions github-actions bot added the team: webapp Issue belongs to the WebApp team label Sep 8, 2022
@roboquat roboquat added the size/M label Sep 8, 2022

if i.StoppingTime.IsSet() {
if i.StoppingTime.Time().Before(maxStopTime) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was really the problem. If we wanted to retain the logic, we'd have needed to do

if i.StoppingTime.Time().After(maxStopTime) {

@easyCZ easyCZ force-pushed the mp/usage-fix-negative-credits branch from 3e4a7e8 to fe7c9d6 Compare September 8, 2022 14:18
@roboquat roboquat merged commit 9f13257 into main Sep 8, 2022
@roboquat roboquat deleted the mp/usage-fix-negative-credits branch September 8, 2022 14:26
@roboquat roboquat added deployed: webapp Meta team change is running in production deployed Change is completely running in production labels Sep 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployed: webapp Meta team change is running in production deployed Change is completely running in production release-note-none size/M team: webapp Issue belongs to the WebApp team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants