Authorized Application count is double the actual count

Summary

The count of a user's authorized applications is double the actual. Prior to this screenshot, I had 4 applications and GitLab reported (8). After removing an application GitLab shows (6) as below.

image

Steps to reproduce

  1. Have 1 or more authorized applications
  2. Navigate to /profile/applications
  3. Observe miss-match in count

Example Project

Currently exists on .com

What is the current bug behavior?

Number of authorized applications is 2x actual

What is the expected correct behavior?

The correct number of applications.

Relevant logs and/or screenshots

See above.

Output of checks

This bug happens on GitLab.com

Possible fixes

(If you can, link to the line of code that might be responsible for the problem)

Edited by Brendan O'Leary