Skip to content

mw: CurrentRevID downloads the whole page to read its revision id #46

Closed

Description

@CameronBrooks11

push checks each changed page for a conflict with CurrentRevID, which calls FetchPage with rvprop=ids|content. So every changed page's full wikitext is downloaded only to read its revision id, on both the preview and --apply.

FetchPage has no other caller outside tests; pull uses FetchPages. It is a second copy of single-page fetching next to the batched one.

Fix: CurrentRevID asks for rvprop=ids only. Drop FetchPage; the integration tests can read a page with FetchPages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions