Commit Graph

62 Commits

Author SHA1 Message Date
Logan King 0cd7ebf717 Add error tracking usage counts 2019-03-25 07:42:08 +00:00
Darby Frey ff2de2f179 Adding additional usage metrics for Release to weekly ping 2019-03-07 17:08:29 +00:00
João Cunha ed2f7e23d6 Rename scope to imply :installed and :updated result
- Adds to specs the case where apps are also updated
- Rename scope calls on Gitlab::UsageData and Clusters::Cluster
- Removes a duplicated spec
2019-02-15 11:16:45 +00:00
Victor Zagorodny fa518963ec Protect group overview usage ping w/ feature flag
user_preferences key is includes into system usage
data only if group_overview_security_dashboard
feature flag is enabled; see
https://gitlab.com/gitlab-org/gitlab-ee/issues/7048
2019-02-12 12:46:31 +02:00
Victor Zagorodny 60bd0a24f5 Add user_preferences_usage to usage ping 2019-02-12 12:46:31 +02:00
Balasankar "Balu" C 232a7a36e2
Add number of repositories to usage ping data 2019-01-31 18:46:07 +05:30
Oswaldo Ferreira ed3034bbb7 Allow suggesting single line changes in diffs 2018-12-13 19:17:19 +00:00
Jan Provaznik 3720d02b8b Use approximate counts for big tables 2018-12-06 16:07:14 +00:00
Dylan Griffith 821b4fdec7 Add UsageData for group/project clusters 2018-12-05 14:50:30 +01:00
Amit Rathi 2945ab47d6 Fix usage data and install command spec 2018-11-20 16:48:23 +05:30
Sean McGivern cc9e3d0900 Merge branch 'jira-ping-differentiate-cloud' into 'master'
Usage ping - Differentiate Jira Server and Cloud

Closes #51043

See merge request gitlab-org/gitlab-ce!22791
2018-11-07 20:09:24 +00:00
Mario de la Ossa 013d097e8b
Usage ping - Differentiate Jira Server and Cloud 2018-11-07 11:28:04 -06:00
Chris Baumbauer 28a9bbceb7 Remove comments from migration script and add usage data 2018-11-01 08:14:49 -07:00
gfyoung c858f70d07 Enable frozen string for lib/gitlab/*.rb 2018-10-22 07:00:50 +00:00
Tiago Botelho 1e662293e8 Implements Web IDE commits counter in Redis
This makes a temporary implementation of the
Web IDE commits counter using Redis while
https://gitlab.com/gitlab-org/gitlab-ce/issues/52096
is being discussed further for a more generic
approach to counters
2018-10-03 11:34:48 +01:00
Tiago Botelho 9b2e17ac71 Adds WebIDE commits to UsagePing
Implements UsageCounters model to track feature usage counters
and makes easy to extend for future counters
2018-10-01 16:11:09 +01:00
Yorick Peterse 2039c8280d
Disable existing offenses for the CodeReuse cops
This whitelists all existing offenses for the various CodeReuse cops, of
which most are triggered by the CodeReuse/ActiveRecord cop.
2018-09-11 17:32:00 +02:00
Sean McGivern f5f439f2c9 Ensure services counts always have values in usage pings 2018-09-05 17:51:47 +01:00
Sean McGivern d13ae9c260 Handle statement timeouts in usage ping 2018-09-05 17:51:47 +01:00
Chantal Rollison e9c1f184bc Added count for label, assignee, and milestone lists 2018-08-21 08:21:01 -07:00
Lin Jen-Shin d0afab482f Disable SAML if OmniAuth is disabled
We also try to unify the way we setup OmniAuth, and how we check
if it's enabled or not.
2018-07-20 18:54:46 +08:00
Douglas Barbosa Alexandre 727bba8ef5
Add enabled prefix to feature keys to be consistent with other keys 2018-06-20 14:16:14 -03:00
Balasankar C 9f76632d80 Add installation type to usage ping data 2018-06-07 15:01:20 +00:00
Tiago Botelho 9a13059332 Backports every CE related change from ee-5484 to CE 2018-05-07 11:59:51 +02:00
Matija Čupić b26913a30c
Extract cluster installed query to scope 2018-03-30 18:31:11 +02:00
Matija Čupić 6fccd9dfcf
Change order of queries for gcp cluster usage data count 2018-03-29 21:49:18 +02:00
Matija Čupić 8c1cfcbc22
Use cluster scopes to deflate usage data implementation 2018-03-29 21:26:12 +02:00
Matija Čupić 427eeb43bf
Query GCP provider table instead of selecting clusters 2018-03-29 20:57:25 +02:00
Matija Čupić 8853e183a8
Make cluster usage datapoints more specific 2018-03-26 22:32:04 +02:00
Matija Čupić 4478103d99
Rename cluster datapoint names to be more specific 2018-03-26 21:54:13 +02:00
Matija Čupić e46950f284
Disable rubocop Metrics/AbcSize on UsageData#system_usage_data 2018-03-22 14:57:56 +01:00
Matija Čupić 0bf79bf12e
Add additional cluster usage metrics 2018-03-22 00:44:06 +01:00
Tiago Botelho 335ee79a73 Refactors median code to work with both single and multiple projects 2018-02-28 10:46:20 +00:00
Tiago Botelho 3f31da9c69 Restrict cycle analytics usage data to instances that use postgres only 2018-02-28 10:46:20 +00:00
Tiago Botelho a7b3f11edd Adds get all medians to Cycle Analytics model 2018-02-28 10:46:19 +00:00
Mario de la Ossa eaada9d706 use Gitlab::UserSettings directly as a singleton instead of including/extending it 2018-02-02 18:39:55 +00:00
Markus Koller 257fd57134 Allow password authentication to be disabled entirely 2017-11-23 13:16:14 +00:00
Shinya Maeda 6571efb6c3 Fix spec. Fix usage ping. Fix warnings by adding new models and attributes. 2017-11-01 16:12:44 +09:00
Shinya Maeda a6b2387d3f Collect usage pings `Gcp::Cluster.enabled` and `Gcp::Cluster.disabled`, instead of `Gcp::Cluster.count` 2017-10-11 23:02:47 +09:00
Kamil Trzcinski f16ac0efda Added usage ping 2017-10-04 21:09:40 +02:00
Tiago Botelho 25932308c0 Adds gitlab features and components to usage ping data. 2017-09-21 14:47:35 +01:00
Zeger-Jan van de Weg 74bf291c78
Add auto devops enabled/disabled to usage ping 2017-09-12 12:33:48 +02:00
Zeger-Jan van de Weg 5c6f40ab6e
Add usage ping for Auto DevOps
Fixes gitlab-org/gitlab-ce#37648
2017-09-08 19:38:02 +02:00
Sean McGivern 5883ce95ef `current_application_settings` belongs on `Gitlab::CurrentSettings`
The initializers including this were doing so at the top level, so every object
loaded after them had a `current_application_settings` method. However, if
someone had rack-attack enabled (which was loaded before these initializers), it
would try to load the API, and fail, because `Gitlab::CurrentSettings` didn't
have that method.

To fix this:

1. Don't include `Gitlab::CurrentSettings` at the top level. We do not need
   `Object.new.current_application_settings` to work.
2. Make `Gitlab::CurrentSettings` explicitly `extend self`, as we already use it
   like that in several places.
3. Change the initializers to use that new form.
2017-08-31 13:38:33 +01:00
Bob Van Landuyt fda83a6179 Use correct `Environment`-class within `Gitlab` namespace 2017-08-07 15:54:30 +02:00
Jarka Kadlecova 124ef7dd60 Add Slack and JIRA services counts to Usage Data 2017-07-24 12:59:06 +02:00
Jarka Kadlecova 2cc063e592 Add github imported projects count to usage data 2017-07-19 15:22:05 +02:00
Kamil Trzciński efb7b2d341 Merge branch 'zj-usage-ping-only-gl-pipelines' into 'master'
Only count GL pipelines in usage data ping

Closes #33172

See merge request !12277
2017-06-29 13:55:19 +00:00
Z.J. van de Weg 4447006832 Split pipelines by origin on usage data
When sending the usage data, it now includes all pipelines. This commit
will split the pipelines in two; internal and external.

This will lead to historical data being incorrectly marked this way.

Fixes gitlab-org/gitlab-ce#33172
2017-06-27 12:47:44 +02:00
Z.J. van de Weg e7d12a70d2 Add in_review_folder to usage ping
As its hard to reliably check how many review apps there are on the
clients machine, we start by checking where the type is `review`. This
means the folder is called that way. This will lead to a seq
scan on the table. However, this is done once a week, so the benefit of
adding an index seems not to apply here.
2017-06-27 09:39:05 +02:00