Skip to content
Snippets Groups Projects

Add more usage data to EE ping

Merged Stan Hu requested to merge sh-improve-ee-usage-ping into master
All threads resolved!

This MR loads the EE usage ping asynchronously on the admin application settings page and now includes the counts of the following items:

  • Comments
  • Groups
  • Users
  • Projects
  • Issues
  • Labels
  • CI builds
  • Snippets
  • Milestones
  • Todos
  • Pushes
  • Merge requests
  • Environments
  • Triggers
  • Deploy keys
  • Pages
  • Project Services
  • Issue Boards
  • CI Runners
  • Deployments
  • Geo Nodes
  • LDAP Groups
  • LDAP Keys
  • LDAP Users
  • LFS objects
  • Protected branches
  • Releases
  • Remote mirrors
  • Web hooks

Closes #997 (closed)

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Stan Hu
  • @stanhu can you indicate in the body of this MR if you add any other data to collect than what is described in https://gitlab.com/gitlab-org/gitlab-ee/issues/997 ?

  • Author Maintainer

    @yorickpeterse @jschatz1 Given that these counts might take some time to calculate, should we require the user to click on a link/button to show the payload?

    image

  • Author Maintainer

    Perhaps we can also load this asynchronously.

    Edited by Stan Hu
  • Stan Hu Added 1 commit:

    Added 1 commit:

  • Stan Hu Added 1 commit:

    Added 1 commit:

  • Stan Hu Mentioned in issue #997 (closed)

    Mentioned in issue #997 (closed)

  • @stanhu Loading it asynchronously seems like the least annoying solution for the user.

  • Stan Hu Added 1 commit:

    Added 1 commit:

    • da6e77b2 - Load usage ping payload asynchronously
  • Stan Hu Added 1 commit:

    Added 1 commit:

    • 55ce239b - Add more usage data to EE ping. Load it asynchronously to
  • Stan Hu Milestone changed to %8.12

    Milestone changed to %8.12

  • Stan Hu Added ~149424 label

    Added ~149424 label

  • Reassigned to @rspeicher

  • Reassigned to @yorickpeterse

  • Author Maintainer

    I'm assigning this to @yorickpeterse because I think @rspeicher is traveling Monday, and I want to make sure this gets in 8.12.

  • Reassigned to @stanhu

  • Stan Hu Mentioned in issue #808 (closed)

    Mentioned in issue #808 (closed)

  • Stan Hu Added 112 commits:

    Added 112 commits:

    • 55ce239b...3e684d89 - 110 commits from branch master
    • 98538f9b - Add more usage data to EE ping. Load it asynchronously to
    • 71160e90 - Don't use inline JavaScript to modify application settings
  • Stan Hu Added 1 commit:

    Added 1 commit:

    • 317a28fd - Move usage data URL into data-endpoint
  • Stan Hu Added 1 commit:

    Added 1 commit:

    • 0d2bf63a - Add a container around usage data help-block to prevent horizontal scroll in Firefox
  • Reassigned to @yorickpeterse

  • Maybe in a separate MR, but what do we think about moving this data to the License page in the admin area rather than the Settings page?

    • It's in a weird spot in the Settings page -- it's somewhat related to the "Version check enabled" setting above it, but completely unrelated to the "Include author name in notification email body" setting below it.
    • It will reduce CE-to-EE merge conflicts if the information and implementation are tied to something else that's EE-only.
    • With all of this new information, the highlighted JSON payload will be longer and more obstructive in the Settings page, which is already out of control.
    Edited by Robert Speicher
  • Robert Speicher
  • Robert Speicher
  • Robert Speicher
  • Robert Speicher
  • Robert Speicher
  • Robert Speicher
  • Robert Speicher
  • Robert Speicher
  • Robert Speicher
  • Stan Hu Added 1 commit:

    Added 1 commit:

    • c2d970f7 - Incorporate review comments
  • Stan Hu Added 1 commit:

    Added 1 commit:

  • Stan Hu Added 1 commit:

    Added 1 commit:

  • Stan Hu Added 1 commit:

    Added 1 commit:

  • Stan Hu Added 1 commit:

    Added 1 commit:

  • Stan Hu Resolved all discussions

    Resolved all discussions

  • Author Maintainer

    It's in a weird spot in the Settings page -- it's somewhat related to the "Version check enabled" setting above it, but completely unrelated to the "Include author name in notification email body" setting below it. It will reduce CE-to-EE merge conflicts if the information and implementation are tied to something else that's EE-only. With all of this new information, the highlighted JSON payload will be longer and more obstructive in the Settings page, which is already out of control.

    Good points. I think there is also talk about having this feature in CE as well (https://gitlab.com/gitlab-org/gitlab-ce/issues/3962), and the license page doesn't exist there. Plus, the setting is right under the "Version check enabled" setting, to which it is related. We could consider moving both of these settings towards the very bottom?

  • Stan Hu Added 1 commit:

    Added 1 commit:

  • @stanhu There seem to be some CI failures related to the usage data changes.

  • Reassigned to @stanhu

  • Robert Speicher
  • Robert Speicher
  • Robert Speicher
  • Robert Speicher
  • Robert Speicher
  • Robert Speicher
  • Stan Hu Added 1 commit:

    Added 1 commit:

    • 46b8b680 - Incorporate review comments
  • Stan Hu Resolved all discussions

    Resolved all discussions

  • Stan Hu Added 1 commit:

    Added 1 commit:

    • 739e6c43 - Set namespace for Ci modules
  • Stan Hu Added 1 commit:

    Added 1 commit:

    • 47d6d33b - Add spec for HistoricalData.max_historical_user_count
  • Reassigned to @rspeicher

  • Robert Speicher
  • Robert Speicher
  • Stan Hu Added 1 commit:

    Added 1 commit:

    • e2fee92a - Make UsageData a static class again
  • Stan Hu Resolved all discussions

    Resolved all discussions

  • Maybe in a separate MR, but what do we think about moving this data to the License page in the admin area rather than the Settings page?

    • It's in a weird spot in the Settings page -- it's somewhat related to the "Version check enabled" setting above it, but completely unrelated to the "Include author name in notification email body" setting below it.
    • It will reduce CE-to-EE merge conflicts if the information and implementation are tied to something else that's EE-only.

    @rspeicher @stanhu I rebased and added one field GitLab usage statistics in https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5449/diffs before I read your comment!

  • @stanhu So basically, here, at this point, we will send data to version.gitlab.com but will they be recorded? As we have not made any changes on version.gitlab.com yet...

  • @axil Just want to make sure that sending more data to version.gitlab.com than what it actually expects to receive won't crash version.gitlab.com

  • Stan Hu Added 1 commit:

    Added 1 commit:

    • dcceb1d5 - Use UsageData.to_json as a short-hand
  • Robert Speicher
  • Stan Hu Resolved all discussions

    Resolved all discussions

  • Robert Speicher Resolved all discussions

    Resolved all discussions

  • Author Maintainer

    Just want to make sure that sending more data to version.gitlab.com than what it actually expects to receive won't crash version.gitlab.com

    @regisF I don't think it will, but I do have an out-of-date MR that will support all the new fields: https://dev.gitlab.org/gitlab/version-gitlab-com/merge_requests/36

  • Robert Speicher
  • Stan Hu Added 1 commit:

    Added 1 commit:

    • 4a0e6d8b - Reduce number of records for HistoricalData spec
  • Stan Hu Added 1 commit:

    Added 1 commit:

    • 76a175f2 - Reduce number of records for HistoricalData spec
  • Robert Speicher
  • Stan Hu Resolved all discussions

    Resolved all discussions

  • Stan Hu Added 1 commit:

    Added 1 commit:

    • 2db914a4 - Add more usage data to EE ping. Load it asynchronously to
  • Stan Hu Added 1 commit:

    Added 1 commit:

    • 5067244c - Add more usage data to EE ping.
  • Robert Speicher Enabled an automatic merge when the build for 5067244c succeeds

    Enabled an automatic merge when the build for 5067244c succeeds

  • Author Maintainer

    @yorickpeterse @rspeicher Thanks for the thorough review!

  • Robert Speicher Status changed to merged

    Status changed to merged

  • Robert Speicher Mentioned in commit 63260200

    Mentioned in commit 63260200

  • I'll submit the docs tomorrow and make the proper changes in the application settings from https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5449.

  • Picked into 8-12-stable, will go into RC6.

  • Rubén Dávila Removed ~149424 label

    Removed ~149424 label

  • adding @francisaquino to this issue as an FYI. First step is to begin asking for the data, then for us to collect the info and then to push into other systems, at which point Francis will be involved.

  • Robert Speicher Mentioned in commit 941f7598

    Mentioned in commit 941f7598

  • then for us to collect the info and then to push into other systems, at which point Francis will be involved.

    @ChadMalchow we need to talk about this then, because this data is meant to be sent to version.gitlab.com only at this point.

  • @regisF that is correct and do not want to interrupt this at all. I am having @francisaquino work with someone in engineering to figure out how we can push the data in version.gitlab.com into our CRM tool for customer success and account management to have visibility to take action on and build programs around. This is step 3 and comes after the work you all are doing.

  • @axil once you have the link for the documentation, can you let me know here so I can update my comment for the blog post? Thanks!

  • Please register or sign in to reply
    Loading