Commit Graph

3578 Commits

Author SHA1 Message Date
Steve Abrams 3dbf3997bb Add group level container repository endpoints
API endpoints for requesting container repositories
and container repositories with their tag information
are enabled for users that want to specify the group
containing the repository rather than the specific project.
2019-08-05 20:00:50 +00:00
George Koltsov 5e3a208f58 Add backwards compatibility for legacy setting
`allow_local_requests_for_hooks_and_services` was renamed to
`allow_local_requests_for_web_hooks_and_services`.
2019-08-02 15:39:18 +01:00
Patrick Derichs 0e99daae4a Use NotesFinder in IssuableActions module
Remove project from NotesFinder constructor

Add project parameter to specs

Also look for methods in private scope

Fix specs to match new NotesFinder constructor
2019-08-01 10:42:42 +02:00
Diego Louzán e20538088b Add support page link in help menu
Creates a new item in help dropdown to show configured support page link
2019-07-30 17:03:17 +00:00
Robert Speicher fe22704a20
Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhq 2019-07-29 13:19:50 -05:00
Stan Hu 914bfabba6 Merge branch 'ce-port-4550-add-project-download-export-audit-event' into 'master'
CE: Add project download & project export audit event

See merge request gitlab-org/gitlab-ce!31103
2019-07-29 13:10:16 +00:00
Nick Thomas 3bb3ac3d53 Merge branch 'add-git-blame-api' into 'master'
Expose git blame in api

Closes #51345

See merge request gitlab-org/gitlab-ce!30675
2019-07-29 11:41:44 +00:00
Oleg Zubchenko 5a8eaef42e Add git blame api 2019-07-26 19:27:32 +03:00
Lin Jen-Shin bd1a5a9f42 Merge branch 'remove-nested-groups-checks' into 'master'
Remove code related to object hierarchy and MySQL

Closes #65056 and #65055

See merge request gitlab-org/gitlab-ce!31095
2019-07-26 14:57:12 +00:00
Robert Speicher 900ef6fc31 Merge branch 'mc/feature/find-all-artifacts-for-sha' into 'master'
Find build by sha from ref

Closes #64534 and #45697

See merge request gitlab-org/gitlab-ce!30843
2019-07-26 14:32:20 +00:00
GitLab Release Tools Bot 890c1421a4 Merge branch 'security-remove-take-trigger-ownership-feature' into 'master'
Drop feature to take ownership of a trigger token

Closes #2868

See merge request gitlab/gitlabhq!3198
2019-07-26 13:41:02 +00:00
Peter Leitzen 8136fac26c Prefer `flat_map` over `map` + `flatten`
Convert several occurrences of `map` + `flatten` to
`flat_map` where applicable.
2019-07-26 10:44:13 +00:00
manojmj 6cfd13726f CE: Add project download & project export audit event
This change adds audit events for
download of repository and export of
project.
2019-07-26 12:25:56 +05:30
Matija Čupić 38ab1ae2f2
Rename latest_successful to be more explicit
* Reword Project#latest_successful_build_for to
Project#latest_successful_build_for_ref
* Reword Ci::Pipeline#latest_successful_for to
Ci::Pipeline#latest_successful_build_for_ref
2019-07-26 00:17:52 +02:00
Heinrich Lee Yu 1ce5bcacdb Remove code related to object hierarchy in MySQL
These are not required because MySQL is not
supported anymore
2019-07-25 15:35:06 +08:00
Nick Thomas 4aa76dddec
Remove dead MySQL code
None of this code can be reached any more, so it can all be removed
2019-07-23 16:53:03 +01:00
Sean McGivern b2e4a7957a Merge branch 'gsemet/gitlab-ce-gsemet-master-patch-33258' into 'master'
Multiple pipeline support for Build status

See merge request gitlab-org/gitlab-ce!30828
2019-07-23 11:57:30 +00:00
Matija Čupić 41b8dca877
Add specs for specifying pipeline behavior
Adds specs for testing the new behavior of specifying a pipeline when
POSTing a status.
2019-07-23 12:02:07 +02:00
Douglas Barbosa Alexandre 0854f18352 Merge branch 'ci_default_git_depth_only' into 'master'
API: Allow changing only ci_default_git_depth

See merge request gitlab-org/gitlab-ce!30888
2019-07-18 12:31:12 +00:00
Nick Thomas 3069cb2545 Merge branch 'webide-commit-use-correct-parent' into 'master'
Use correct parent when committing in WebIDE

See merge request gitlab-org/gitlab-ce!29598
2019-07-18 10:47:35 +00:00
Mathieu Parent 0f585d0de8 API: Allow changing only ci_default_git_depth 2019-07-18 10:18:23 +02:00
Markus Koller f8cecafb07
Add start_sha to commits API
When passing start_branch on committing from the WebIDE, it's possible
that the branch has changed since editing started, which results in the
change being applied on top of the latest commit in the branch and
overwriting the new changes.

By passing the start_sha instead we can make sure that the change is
applied on top of the commit which the user started editing from.
2019-07-18 09:19:18 +02:00
Francisco Javier López bcd2458076 Refactor RedisCounter and WebIdeCommitsCounter
This MR refactor RedisCounter and WebIdeCommitsCounter
to be reused by other components.
2019-07-17 23:45:35 +00:00
Gaetan Semet 4e814c257b
Multiple pipeline support for Build status
This allows user to specify the pipeline ID
when several pipelines has been triggered
on the same branch and commit.

Signed-off-by: Gaetan Semet <gaetan.semet@renault.com>
2019-07-17 14:43:15 +02:00
Imre Farkas 7aa1d17475 CE port of "Move external authorization service API management to EE"
EE MR: https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/14598
2019-07-17 07:20:17 +00:00
Stan Hu f0400dc7c0 Merge branch '12800-read-and-write-user-admin-notes-via-api-ce' into 'master'
CE Backport: Read and write User "Admin notes" via API

See merge request gitlab-org/gitlab-ce!30775
2019-07-16 22:13:26 +00:00
manojmj ce40c12849 CE: Read and write User "Admin notes" via API
This change adds the ability to read and
write admin notes for a user via the
USER API
2019-07-17 01:11:10 +05:30
Francisco Javier López 556d213cbc Refactored WebIdeCommitsCount class
We're adding more redis base counters to the web ide and other
classes. We're refactoring this class in other to use the logic
in other places.
2019-07-16 13:12:37 +00:00
Jason Goodman d4ffcb69e6 Update Release API docs
Include released_at parameter
2019-07-16 11:47:46 +00:00
Adam Hegyi 4959d8fd49 Migrate null values for users.private_profile
- Background migration for changing null values to false
- Set false as default value for private_profile DB column
2019-07-15 21:07:54 +00:00
Stan Hu 0ffac1ab27 Filter Geo proxied data from api_json.log
Currently the base64-encoded value of the push-to-secondary data is
saved in `api_json.log`, and this can easily be hundreds of
megabytes. We should filter this from the logs.
2019-07-14 20:53:54 -07:00
Bob Van Landuyt fd407d0658 Merge branch 'upgrade-rails-5-2-ce' into 'master'
[CE] Upgrade to Rails 5.2

See merge request gitlab-org/gitlab-ce!30052
2019-07-12 12:31:26 +00:00
Grzegorz Bizon 1def071991 Merge branch '55623-group-cluster-apis' into 'master'
Resolve "API support for group-level clusters"

Closes #55623

See merge request gitlab-org/gitlab-ce!30213
2019-07-12 08:36:24 +00:00
Heinrich Lee Yu aeb67dd489 Upgrade to Rails 5.2
Updates changed method names and fixes spec failures
2019-07-12 10:15:31 +08:00
Dylan Griffith 7fb076f5d0 Add API for CRUD group clusters
This is basically a copy of the API for project clusters.
2019-07-11 17:22:58 +10:00
Dylan Griffith dacd0ee18b Refactor: model errors for multi cluster validation
The current approach requires catching exceptions to handle these errors
and callers are already handling model validations so it seems more
appropriate.  Also it seemed to convoluted to add this logic directly to
the model since the model needs to check too many possible associations
to determine whether or not there are more than one cluster since the
model doesn't know what it's being created on. Additionally we only
wanted to validate during create to avoid the risk of existing models
becoming invalid by many different edge cases.
2019-07-11 17:22:58 +10:00
Mayra Cabrera 0ab89d8e36 Add a rubocop for Rails.logger
Suggests to use a JSON structured log instead

Related to https://gitlab.com/gitlab-org/gitlab-ce/issues/54102
2019-07-10 19:26:47 +00:00
Fabio Pitino a7821dd910 Drop feature to take ownership of a trigger token
Removing API and frontend interactions that allowed
users to take ownership of a trigger token.

Removed mentions from the documentation.
2019-07-10 12:08:45 +02:00
Jan Provaznik 227d8b4445 Merge branch '58275-rename-project-entity' into 'master'
Rename ProjectEntity to IssuableEntity

Closes #58275

See merge request gitlab-org/gitlab-ce!30217
2019-07-10 05:39:44 +00:00
Douglas Barbosa Alexandre 2615265ef8
Merge branch 'master' into sathieu/gitlab-ce-project_api 2019-07-09 14:45:46 -03:00
charlie ablett 639ab5214c Remove `:graphql` feature flag
- Remove `FeatureConstrainer` call wrapping api endpoint
- Remove `Feature.enabled?(:graphql)` conditionals in back and frontend
- Modify graphql test to be graphql flag agnostic
- Remove api routing spec
- Remove frontend feature flag via `gon`
2019-07-09 12:45:23 +00:00
Alexandru Croitor dba5f3aeea Rename ProjectEntity to IssuableEntity 2019-07-09 15:41:45 +03:00
Tim Zallmann b9e52612fe Updates on success of an MR the count on top and in other tabs
New API endpoint for merge request count
Updates all open tabs at the same time with one call
Restructured API response

API response changed to 401 if no current_user

Added API + JS specs

Fix for Static Check

Updated Count on Open/Close, Assign/Unassign of MR's

Checking if MR Count is refreshed

Added # frozen_string_literal: true to spec

Added Changelog
2019-07-09 08:44:19 +00:00
sujay patel e241c89977 Adding order by to list runner jobs api. 2019-07-05 14:24:56 +05:30
Nick Thomas 381468d0cc
Allow asynchronous rebase operations to be monitored
This MR introduces tracking of the `rebase_jid` for merge requests. As
with `merge_ongoing?`, `rebase_in_progress?` will now return true if a
rebase is proceeding in sidekiq.

After one release, we should remove the Gitaly-based lookup of rebases.
It is much better to track this kind of thing via the database.
2019-07-04 08:50:55 +01:00
Rémy Coutable 9a4b5f08db Merge branch 'sh-fix-issue-63349' into 'master'
Make Housekeeping button do a full garbage collection

Closes #63349

See merge request gitlab-org/gitlab-ce!30289
2019-07-04 07:38:56 +00:00
Maneschi Romain def94f5043 Add Grafana to Admin > Monitoring menu when enabled 2019-07-03 16:09:51 +00:00
Mathieu Parent 32bbb52c19 Fix API performance problem of auto_devops query 2019-07-03 16:18:05 +02:00
Mathieu Parent e44167004d Add auto_devops_* to project API
The auto_devops object sometimes doesn't exists. We may need to create
it.
2019-07-03 16:18:05 +02:00
Mathieu Parent 5028f5d73d Add auto_cancel_pending_pipelines to project API 2019-07-03 16:18:05 +02:00