Skip to content
Snippets Groups Projects
  1. Jan 11, 2022
  2. Jan 08, 2022
  3. Jan 05, 2022
  4. Jan 03, 2022
  5. Dec 06, 2021
  6. Nov 08, 2021
  7. Nov 04, 2021
  8. Jul 22, 2021
  9. Jul 21, 2021
  10. Sep 15, 2020
  11. Sep 14, 2020
  12. Sep 09, 2020
  13. Jul 03, 2020
  14. Jun 08, 2020
  15. May 11, 2020
  16. May 08, 2020
    • Jean-Paul Calderone's avatar
      Remove redundant error-handling check · 0e0a84fd
      Jean-Paul Calderone authored
      This condition can never succeed.
      
      If the voucher is being seen for the first time at this point then it should
      start redemption and the check will not pass.
      
      If the voucher has been seen before and was in an error state to begin with
      then the check higher up, outside of the loop, prevents execution from ever
      entering the loop.
      
      If the voucher has been seen before and just now entered an error state then
      the `if not succeeded` check below, on the previous iteration, would stop the
      loop and prevent this condition from ever being checked.
      0e0a84fd
  17. May 01, 2020
    • Jean-Paul Calderone's avatar
      Add expected total tokens to the voucher model · 3d04a281
      Jean-Paul Calderone authored
      This makes the database responsible for remembering how many tokens we expect
      to get for a voucher, rather than the in-memory Python state or the code.
      
      As a result, we can resume redemption knowing the correct number of tokens
      after a process restart and without relying on the PaymentController's default
      token count to have remained unchanged.
      3d04a281
  18. Apr 30, 2020
  19. Apr 29, 2020
  20. Apr 28, 2020
Loading