We recently upgraded from Gerrit 3.6.4 to 3.7.2. One of the things our
users have noticed is that urls in Gerrit emails contain a ?usp=email
query string in them. Digging a bit into the code turns up that this
is an intentional inclusion to the emails and since the change applies
to the variable outside of the templates themselves we cannot update
the templates to remove them [0].
Looking further this parameter appears to be used to log where users
originate from when they access changes [1]. Other possible values
I've found include 'service-worker-notification', 'metadata' ,
'related-change', dashboard and search names/terms, and so on. What I
haven't been able to sort out is how these values are consumed. It
doesn't seem like opening a change with usp set to 'email' or
'related-change' or 'submitted-together' changes the behavior of the
change screen.
Would it be possible to offer some insight into how this is used by
Gerrit? In particular there is concern that we may be adding user
tracking and clarification would be helpful.
[0]
https://gerrit.googlesource.com/gerrit/+/refs/heads/stable-3.7/java/com/google/gerrit/server/mail/send/ChangeEmail.java#256
[1]
https://gerrit.googlesource.com/gerrit/+/refs/heads/stable-3.7/polygerrit-ui/app/models/views/change.ts#58