Integrate ignoreRevisionsBlob parameter in frontend blame GraphQL query
Context
This is a follow-up to #555443 (closed) for integrating the ignoreRevisionsBlob
parameter in the frontend blame GraphQL query once the backend support is implemented in #519397 (closed).
Currently, the frontend uses the following GraphQL query for retrieving inline blame data on the Blob page:
query getBlameData(
$fullPath: ID!
$filePath: String!
$fromLine: Int
$toLine: Int
$ref: String!
) {
project(fullPath: $fullPath) {
id
repository {
blobs(ref: $ref, paths: [$filePath]) {
nodes {
id
blame(fromLine: $fromLine, toLine: $toLine) {
firstLine
groups {
lineno
span
commit {
id
authorName
titleHtml
message
authoredDate
authorGravatar
webPath
author {
...Author
}
sha
}
commitData {
projectBlameLink
}
}
}
}
}
}
}
}
The backend currently only accepts fromLine
and toLine
parameters. Once #519397 (closed) is completed, we need to update the frontend to:
Tasks
-
Update the GraphQL query to include the ignoreRevisionsBlob
parameter -
Integrate the parameter with the blame preferences dropdown functionality -
Ensure the parameter is passed correctly based on user preferences -
Test the integration with the backend changes from #519397 (closed)
Dependencies
- Blocked by #519397 (closed) (backend implementation of
ignoreRevisionsBlob
parameter)
Related Issues
- #555443 (closed) (parent issue for rewriting blame preferences)
- #519397 (closed) (backend implementation)
Edited by 🤖 GitLab Bot 🤖