Skip to content

fix(labs): migrate image/oldimage queries to file/filerevision tables#545

Open
ayushshukla1807 wants to merge 1 commit into
hatnote:masterfrom
ayushshukla1807:fix/migrate-wikireplica-image-to-file-tables
Open

fix(labs): migrate image/oldimage queries to file/filerevision tables#545
ayushshukla1807 wants to merge 1 commit into
hatnote:masterfrom
ayushshukla1807:fix/migrate-wikireplica-image-to-file-tables

Conversation

@ayushshukla1807
Copy link
Copy Markdown

Fixes #504.

The image and oldimage tables are being removed from WikiReplica on 28 May 2026 (see the Phabricator ticket linked in #504). This PR migrates both queries in labs.py to use the new file and filerevision schema.

Column aliases are preserved, so no downstream code changes are required -- make_entry() in loaders.py continues to receive the same dict keys (img_width, img_name, img_user, etc.).

Changes:

  • get_files(): image AS i -> `file` AS fi, oldimage -> filerevision
  • get_file_info(): same migration
  • IMAGE_COLS renamed to FILE_COLS with updated column references
  • All img_actor/oi_actor references updated to file_actor/fr_actor

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.

Migrate image/oldimage to file/filerevision tables (wikireplica deadline: 28 May 2026)

1 participant