Skip to content

Add GET endpoint to User Preferences

What does this MR do?

To make syncing a user's preferences easier (#329577 (closed)), this MR introduces a GET endpoint to User Preferences. It shows the current user preferences available to set through the MR widget:

"view_diffs_file_by_file"
"show_whitespace_in_diffs"

In addition, this corrects a change in the documentation I made in !62245 (merged)

show_whitespace_in_diffs is not available to set for another user, it's only available for the current user. I've updated the docs to reflect that.

Screenshots (strongly suggested)

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

Does this MR contain changes to processing or storing of credentials or tokens, authorization and authentication methods or other items described in the security review guidelines? If not, then delete this Security section.

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

Related to #329577 (closed)

Edited by Gary Holtz

Merge request reports