Skip to content

fix(mw): read only the revision id when push checks for a conflict - #53

Merged
CameronBrooks11 merged 1 commit into
mainfrom
fix/current-revid-ids
Nov 13, 2026
Merged

CameronBrooks11 merged 1 commit into
mainfrom
fix/current-revid-ids

Conversation

@CameronBrooks11

Copy link
Copy Markdown
Member

push checks each changed page for a conflict with CurrentRevID. That called FetchPage with rvprop=ids|content, so every changed page's full text was downloaded just to read its revision id. It now asks for rvprop=ids. TestCurrentRevIDAsksForTheIDOnly pins that; putting content back makes it fail on rvprop = "ids|content", want ids.

FetchPage had no other caller outside tests, so it goes:

  • Its field-mapping test (page id, namespace, revision and text) moves to FetchPages, whose tests didn't check page id or namespace.
  • The integration test reads the live page with FetchPages.

Closes #46

CurrentRevID called FetchPage with rvprop=ids|content, so push
downloaded each changed page's full text just to read its revision id.
It now asks for rvprop=ids.

FetchPage had no other caller outside tests, so it goes; the tests read
pages with FetchPages, and its field-mapping test moves there.

Closes #46
@CameronBrooks11
CameronBrooks11 merged commit cdad553 into main Nov 13, 2026
9 checks passed
@CameronBrooks11
CameronBrooks11 deleted the fix/current-revid-ids branch November 13, 2026 17:12
CameronBrooks11 added a commit that referenced this pull request Nov 13, 2026
Prepares v0.5.1: the version constant becomes 0.5.1, and the CHANGELOG's
Unreleased section becomes 0.5.1. User-facing changes since v0.5.0: #52
(HTTP status on login and edit errors, #45), #53 (conflict check reads
the revision id only, #46), #61 (login failure and count wording, #56),
#62 (push read-back warning, #58). The rest are refactors with no change
in behaviour: #54, #55, #57, #59, #60. The tag is pushed after this
merges.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant