- 01 Feb, 2023 6 commits
- 31 Jan, 2023 8 commits
- 30 Jan, 2023 6 commits
-
-
Legoktm authored
And change the default retry to 1 second instead of 0.
-
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.
-
Legoktm authored
-
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
-
Legoktm authored
-
Legoktm authored
-
- 29 Jan, 2023 2 commits
-
-
Legoktm authored
- 22 Jan, 2023 4 commits
- 16 Jan, 2023 1 commit
-
- 14 Jan, 2023 1 commit
-
-
Legoktm authored
This will be used later on by the uploading code that can't use post_with_token().
-
- 09 Jan, 2023 1 commit
-
-
Legoktm authored
-
- 08 Jan, 2023 10 commits
-
-
Legoktm authored
-
Legoktm authored
-
Legoktm authored
Make it pub(crate) and just access the field directly instead of going through a getter and setter. Those two functions are now deprecated and are expected to be removed in the next breaking release if there are no objections.
-
Legoktm authored
Because of T324431, HTML is somtimes ending up in the <title> element, so it isn't usable as an actual title. In most cases, we know the title since we requested it from the server, so just store that title since we at least know it's the correct title. Most importantly this makes transform_to_wikitext() work for pages with customized titles. Bug: T326490
-
0xDeadbeef authored
-
Legoktm authored
Now at <https://gitlab.wikimedia.org/repos/mwbot-rs/mwseaql/>.
-
- 02 Jan, 2023 1 commit
-