1. 01 Feb, 2023 6 commits
  2. 31 Jan, 2023 8 commits
  3. 30 Jan, 2023 6 commits
    • Legoktm's avatar
      Restructure retry_after errors to be struct-like · 2be3ad21
      Legoktm authored
      And change the default retry to 1 second instead of 0.
      2be3ad21
    • Legoktm's avatar
      Move the UploadRequest builder code into mwbot, where it's a better fit · 35d64917
      Legoktm authored
      Aside from the Client builder, mwapi is simple functional interfaces.
      UploadRequest is a better fit for mwbot. Shift it over and introduce a
      very stubbed `File` type for it to live in.
      35d64917
    • Legoktm's avatar
      Properly handle upload warnings · fa9902d7
      Legoktm authored
      fa9902d7
    • Legoktm's avatar
      Add support for file uploads · 22ad2079
      Legoktm authored
      The main difference from normal requests is that uploads require sending
      files in multipart requests. These requests are also generally not
      retriable since it might be referring to a Stream (not yet implemented)
      that can't be cloned. The logic of making requests has been extracted so
      it can be called independently.
      
      As part of this refactor, we had to move the retry-after header handling
      into the error itself. Unfortunately this is a breaking change since it
      changes the error types, so we can make a few other changes like
      replacing `should_retry()` with `retry_after()`.
      
      By default, files are uploaded in chunks of 5MB. This can be adjusted
      depending on the wiki you're uploading to and bandwidth. If the wiki
      supports it, async mode will be used too. Upload-by-url is not supported
      yet, mostly because the MediaWiki implementation is pretty busted and
      you're better off downloading it on your own.
      
      Bug: T319098
      22ad2079
    • Legoktm's avatar
      mwbot: Release 0.4.5 · ff1a9d36
      Legoktm authored
      ff1a9d36
    • Legoktm's avatar
      Bump CHANGELOG · b5727b91
      Legoktm authored
      b5727b91
  4. 29 Jan, 2023 2 commits
  5. 22 Jan, 2023 4 commits
  6. 16 Jan, 2023 1 commit
  7. 14 Jan, 2023 1 commit
  8. 09 Jan, 2023 1 commit
  9. 08 Jan, 2023 10 commits
  10. 02 Jan, 2023 1 commit