Fix a production error

Reproduces an error from its stack trace, fixes it and adds a test.

What you ask

Search Acme

engineering

2
  1. Lena

    @devboxes Fix this TypeError in checkout. The stack trace is attached.

    stack-trace.txt Plain Text
  2. devboxes APP

    The error happens when a cart has a discount code but no items left. #92 adds a test that fails the same way and the fix that makes it pass. All checks pass.

When an alert starts it

Search Acme

alerts

1
  1. devboxes APP

    Looked at 4 sources
    1. Sentry Read the new alert
    2. GitHub Found where the invoice export reads the amount
    3. GitHub Found Tuesday's change to it
    4. Terminal Wrote a test that fails with the same error

    Sentry's new alert is the invoice export failing on invoices without a coupon, since Tuesday's release. #61 adds a test that fails the same way and the fix that makes it pass. All checks pass.

    GitHub

    #61 Treat a missing coupon as no discount

    Open devboxes/invoice-export-coupon 3 checks passed

    Ready for review

What devboxes does

  1. Read the error

    • devboxes finds the failing code and the input that triggers it.
  2. Reproduce it in a test

    • A new test fails with the same error as your stack trace.
  3. Fix the cause

    • The new test passes.
    • The fix changes the code that causes the error, so the test passes.
  4. Verify

    1. Install dependencies

    2. Test

    3. Lint

    4. If it fails

      1. Fix

        • The tests pass.
      2. Test again

      3. Lint again

  5. Publish

  6. Review

Good for

Startups

Ask devboxes to fix a production error

Get started for free