Skip to content

Derive WikiPage#last_version from existing data

What does this MR do?

We query the Gitaly WikiGetPageVersions RPC in a haml partial, which creates an N+1 problem #33951 (comment 232631025).

This MR instead derives the same "last version" Commit using the data that is already loaded, avoiding the need to call Gitaly here.

#34836

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Edited by 🤖 GitLab Bot 🤖

Merge request reports