Skip to content

Diffing

Henne Vogelsang edited this page Sep 23, 2022 · 4 revisions

Code flow to get a diff in Webui

BsRequestAction::Differ::ForSource

app/models/bs_request_action/differ/for_source.rb

Handles superseded and accepted BsRequestActions

  • superseded: diff between superseded action and the current one
  • accepted: The source might be gone, generate the diff by comparing revisions recorded in BsRequestAction.bs_request_action_accept_info

Backend::Api::Sources::Package.source_diff

app/lib/backend/api/sources/package.rb

Get the diff from the backend in XML

ParsePackageDiff

app/mixins/parse_package_diff.rb

Makes a hash out of the XML diff and sort the files in the hash by importance

Clone this wiki locally