Commit Graph

49148 Commits

Author SHA1 Message Date
Olena Horal-Koretska b5d67c3f35 Data url update 2019-09-20 16:25:28 +01:00
Olena Horal-Koretska 79b51ab33e Load InfluxDb datasource using BE endpoint 2019-09-12 22:22:43 +03:00
Olena Horal-Koretska 7b0e59b7fd Load prometheus datasource using BE endpoint 2019-09-12 14:45:41 +03:00
Vitali Tatarintev 9329998332 Add experimental charts endpoint
That is not a working version of the code,
that's an endpoint prototype to test on localhost.

How to use:

```
http://localhost:3000/<PROJECT_NAMESPACE>/<PROJECT_ID>
/chart?url=<ENCODED_URL>
```

Where:
PROJECT_NAMESPACE and PROJECT_ID are valid project namespace,
and id on localhost. You can get them by calling
`Project.last` from Rails console.

ENCODED_URL is an Encoded URL to data provider.

To encode an URL you can use https://www.urlencoder.io

The endpoint responds with a JSON.
It's either `{ "error": "Error description" }`
or a valid JSON from data provider.
2019-09-12 08:54:40 +02:00
Olena Horal-Koretska b7599284e9 Updated grafans datasource, minor UI changes 2019-09-11 15:39:47 +03:00
Olena Horal-Koretska c2f0f51007 rendering charts from transformed data 2019-09-10 13:46:50 +03:00
Olena Horal-Koretska 700e25492f chart json transform 2019-09-09 16:53:37 +03:00
Olena Horal-Koretska a5efcda462 Update sample_data_type 2019-09-09 13:56:12 +03:00
Olena Horal-Koretska 690f8841c0 Separate menu item BE 2019-09-09 13:27:34 +03:00
Olena Horal-Koretska 861b0256c8 Use mock data to draw graphs 2019-09-05 23:11:04 +03:00
Olena Horal-Koretska 6b7dba5109 Sample Data 2019-09-05 19:42:40 +03:00
Olena Horal-Koretska 1943358b43 Data Type 2019-09-05 19:41:11 +03:00
Olena Horal-Koretska e848e8d633 Individual contributor graph basic view 2019-09-05 15:49:57 +03:00
Pavel Shutsin f089a23015 Backport EE changes for productivity analytics
Improve diff lines count efficiency
2019-09-04 13:01:55 +03:00
Lee Tickett 09c7044f08 Revert "DB change, migratoin and changelog"
This reverts commit af5242ecb682189c5d8276e1ab1ffe5ce844f2e5.
2019-09-04 03:51:43 +00:00
Lee Tickett e8c58d62fb Remove vue resource from group service
Addresses https://gitlab.com/gitlab-org/gitlab-ce/issues/66750
2019-09-04 03:45:28 +00:00
Paul Slaughter e4a1ac6160 Merge branch 'revert-2f01437f' into 'master'
Revert "Merge branch 'remove-vue-resource-from-sidebar-service' into 'master'"

See merge request gitlab-org/gitlab-ce!32620
2019-09-03 23:56:27 +00:00
Jacques Erasmus 85f89d21aa Add cluster domain warning
Added a cluster domain wanring if no domain is defined
2019-09-03 23:15:13 +00:00
Mike Greiling 3399335602 Revert "Merge branch 'remove-vue-resource-from-sidebar-service' into 'master'"
This reverts merge request !32400
2019-09-03 22:44:56 +00:00
Jan Provaznik 243bd0202f Create an event on epic actions
Creates new event when an epic is created, closed, reopened or
commented.
2019-09-03 21:29:55 +00:00
Lee Tickett 19371b9062 Revert "DB change, migratoin and changelog"
This reverts commit af5242ecb682189c5d8276e1ab1ffe5ce844f2e5.
2019-09-03 19:10:08 +00:00
Lee Tickett c487c7cf6a Revert "DB change, migratoin and changelog"
This reverts commit af5242ecb682189c5d8276e1ab1ffe5ce844f2e5.
2019-09-03 16:38:17 +00:00
Nick Thomas bc26349b76 Merge branch '62591-fix-milestone-due-date-today-wording' into 'master'
Fix wording on milestone due date today

Closes #62591

See merge request gitlab-org/gitlab-ce!32096
2019-09-03 13:49:16 +00:00
Stan Hu 8326e84ed0 Merge branch 'ab-routable-nplus1' into 'master'
Preload routes information in Routable

See merge request gitlab-org/gitlab-ce!32352
2019-09-03 13:23:39 +00:00
Kushal Pandya f3b9ddb11b Merge branch '66454-utils-parser' into 'master'
Creates utility parser for the job log

See merge request gitlab-org/gitlab-ce!32555
2019-09-03 12:28:18 +00:00
Alexandru Croitor 8e6e1e1d15 Fix wording on milestone due date today
Fix wording on milestone due date, to show today instead of
hours ago or remaining, when milestone is due today.
2019-09-03 15:19:58 +03:00
Jan Provaznik aa34c693e9 Merge branch 'clusterable_cluster_environments_path' into 'master'
Add #environments_cluster_path which will always return nil in CE

See merge request gitlab-org/gitlab-ce!32527
2019-09-03 11:26:23 +00:00
Andreas Brandl 53801b1206
Preload routes information
This fixes a high frequency N+1 issue:

`RoutableActions#find_routable!` is used across many controllers to
retrieve e.g. the Project or Namespace by path. The `#find_routable!`
method calls `#ensure_canonical_path` which in turn retrieves
`#full_path` from the given Routable.

This in turn triggers a lookup on `routes`, leading to a high frequency
of these queries:

```sql
SELECT  "routes".* FROM "routes" WHERE "routes"."source_id" = $1 AND
"routes"."source_type" = $2 LIMIT $3
```

This is unnecessary as we already join `routes` in
`Routable#find_by_full_path` anyways.
2019-09-03 12:16:03 +02:00
Etienne Baqué a43ab8d6a4 Added relationships between Release and Milestone
Modified schema via migrations.
Added one-to-one relationship between the two models.
Added changelog file
2019-09-03 09:38:59 +00:00
Kamil Trzciński 6b7fe67ada Merge branch 'add-pipeline-type-key-in-pipeline-entity' into 'master'
Expose `name` and `merge_request_event_type` in serialized json and predefined variables

See merge request gitlab-org/gitlab-ce!32323
2019-09-03 09:18:46 +00:00
Fatih Acet 3741402a24 Make flash notifications sticky
This commit also unifies layout structure
and remove no_container flag
2019-09-03 09:03:35 +00:00
Filipa Lacerda 876ae19d9e Creates utils for the job log
With the new job log json format
we need a parser on the frontend
2019-09-03 09:32:42 +01:00
Rémy Coutable af5f2424ca Merge branch 'change-role-system-hook' into 'master'
Add system hooks for project/group membership updates

Closes gitlab-ee#12252

See merge request gitlab-org/gitlab-ce!32371
2019-09-03 07:08:40 +00:00
Lin Jen-Shin abd9e84272 Merge branch 'ce-12996-cancel-redundant-pipelines' into 'master'
Backport retries options for cancel_running

See merge request gitlab-org/gitlab-ce!32525
2019-09-03 06:31:58 +00:00
Shinya Maeda 8c21610c79 Add pipeline.type key to PipelineEntity
This commit adds pipeline.type key to PipelineEntity.
This key will be used in MR widget in the next iteration.
2019-09-03 13:30:53 +07:00
Igor 8dcddb9886 Stub DetectRepositoryLanguagesWorker for all tests
It performs an expensive operation, but isn't required in
most of tests
2019-09-03 06:19:21 +00:00
Kushal Pandya ab27d66a7f Merge branch '51372-remove-milestone-tabs-deprecation-message' into 'master'
Remove deprecation message for milestone tabs

See merge request gitlab-org/gitlab-ce!32252
2019-09-03 05:55:51 +00:00
Giorgenes Gelatti f5b2899422 If user can push to docker then it can delete too
Extends the permission of $CI_REGISTRY_USER to allow them
to delete tags in addition to just pushing.

https://gitlab.com/gitlab-org/gitlab-ce/issues/40096
2019-09-03 02:41:22 +00:00
Heinrich Lee Yu 2f210e9c3f Remove deprecation message for milestone tabs
We're reversing the deprecation due to user feedback
2019-09-03 09:17:23 +08:00
Brandon Williams 2bd4d580d1
Add system hooks for project/group membership updates
When updating group and project members, new system hooks
`user_update_for_group` and `user_update_for_team` will be executed.

Fixes https://gitlab.com/gitlab-org/gitlab-ee/issues/12252
2019-09-02 18:35:36 -05:00
Thong Kuah 1894c6ebe8 Add facade which will always return nil in CE
This method will be overridden in EE
2019-09-03 11:29:57 +12:00
Tim Zallmann 407132bfd4 Merge branch '66393-proposal-remove-area-chart-in-favor-of-time-series' into 'master'
Remove area chart in favor of time series

Closes #66393

See merge request gitlab-org/gitlab-ce!32129
2019-09-02 20:04:02 +00:00
Tim Zallmann e6fb109d45 Merge branch 'cluster-form-ca-cert-larger' into 'master'
Expand textarea for CA cert in cluster form

See merge request gitlab-org/gitlab-ce!32508
2019-09-02 19:57:53 +00:00
Mayra Cabrera 138d886d0d Merge branch 'add-notification-reason-to-note-emails' into 'master'
Add X-GitLab-NotificationReason header to note emails

See merge request gitlab-org/gitlab-ce!32422
2019-09-02 18:41:57 +00:00
Walmyr Lima e Silva Filho 183d9ed708 Merge branch 'qa-add-built-in-project-template-test-ce' into 'master'
Backport EE changes for built-in project template test

See merge request gitlab-org/gitlab-ce!32358
2019-09-02 18:20:07 +00:00
Peter Leitzen e0ce29ad06 Provide filename and line number for `class_eval`
This commit removes one RuboCop offense from its todo file.
2019-09-02 18:05:33 +00:00
Sean McGivern 075f6d3559 Add X-GitLab-NotificationReason header to note emails
The 'assigned' reason doesn't apply to notes, but the other two
can ('mentioned' and 'own_activity'), so we can still use this for note
emails.
2019-09-02 12:15:24 -05:00
Stan Hu 526ea7c5b6 Update Mermaid to v8.2.6
This fixes a regression where an underscore in labels no
longer worked:
https://github.com/knsv/mermaid/releases
2019-09-02 16:50:09 +00:00
Douwe Maan 68bfb091ae Merge branch '65152-unfolded-lines-perf-improvement' into 'master'
Support selective highlighting of lines

See merge request gitlab-org/gitlab-ce!32514
2019-09-02 14:15:16 +00:00
Peter Leitzen 9260706d7b Reduce amount of property definitions in ChatNotificationService
Before this commit we redefined properties for supported events on each
new instance of ChatNotificationService during "runtime".

This commit defines the properties only once during "compile time".
2019-09-02 13:25:15 +00:00