Commit Graph

2817 Commits

Author SHA1 Message Date
Grzegorz Bizon 1068ec2e92 Merge branch '66741-remove-spec-rails_helper-rb' into 'master'
Remove spec/rails_helper.rb

Closes #66741

See merge request gitlab-org/gitlab-ce!32380
2019-09-03 13:48:17 +00:00
Filipa Lacerda 288e709cb7 Creates Feature Flag for job log
Updates frontend code and specs to allow for the new
feature flag
2019-08-30 21:51:30 +00:00
Ash McKenzie 19ff9d9899
Replace rails_helper.rb with spec_helper.rb
rails_helper.rb's only logic was to require
spec_helper.rb.
2019-08-30 12:26:18 +10:00
Robert Speicher 7698d40550
Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhq 2019-08-29 17:17:37 -05:00
GitLab Release Tools Bot 21b5239a00 Merge branch 'security-2853-prevent-comments-on-private-mrs' into 'master'
Ensure only authorised users can create notes on merge requests and issues

See merge request gitlab/gitlabhq!3137
2019-08-29 21:34:27 +00:00
GitLab Release Tools Bot 34c2b6adf9 Merge branch 'security-personal-snippets' into 'master'
Add direct upload support for personal snippets

See merge request gitlab/gitlabhq!3226
2019-08-29 21:34:22 +00:00
GitLab Release Tools Bot 7d6ec7f7ed Merge branch 'security-fix_jira_ssrf_vulnerability' into 'master'
Fix DNS rebind vulnerability for JIRA integration

See merge request gitlab/gitlabhq!3266
2019-08-29 21:34:17 +00:00
GitLab Release Tools Bot a5b2a37860 Merge branch 'security-59549-add-capcha-for-failed-logins' into 'master'
Require a captcha after unique failed logins from the same IP

See merge request gitlab/gitlabhq!3270
2019-08-29 21:34:12 +00:00
GitLab Release Tools Bot e20fb7cb39 Merge branch 'security-mr-head-pipeline-leak' into 'master'
Permission fix for MergeRequestsController#pipeline_status

See merge request gitlab/gitlabhq!3274
2019-08-29 21:34:10 +00:00
GitLab Release Tools Bot be128484b5 Merge branch 'security-group-runners-permissions' into 'master'
admin_group authorization for Groups::RunnersController

See merge request gitlab/gitlabhq!3325
2019-08-29 21:33:57 +00:00
GitLab Release Tools Bot 70818d3d68 Merge branch 'security-ci-metrics-permissions' into 'master'
Restrict MergeRequests#test_reports to authenticated users with read-access on Builds

See merge request gitlab/gitlabhq!3329
2019-08-29 21:33:55 +00:00
Stan Hu f6c7e38040 Make it harder to delete issuables accidentally
Previously submitting a DELETE request to an issuable URL would be
enough to destroy it, but this should require human confirmation.  We
now require that the `destroy_confirm` parameter is set to a truthy
value before this can complete.

In addition, we log a Sentry error if a deletion arrived without
confirmation.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/62387
2019-08-29 12:54:19 -07:00
Felipe Artur 8f6a433c41 Save board lists collapsed setting
Persists if a board list is collapsed for each user.
2019-08-28 20:18:40 +00:00
Jan Provaznik 41d52bbfe9 Add direct upload support for personal snippets 2019-08-23 11:19:14 +02:00
Lin Jen-Shin fdd5177ac3 Merge branch 'ce-8631-archiving-a-project-should-create-an-audit-event' into 'master'
CE: Archiving a project should create an audit event

See merge request gitlab-org/gitlab-ce!32039
2019-08-22 16:06:41 +00:00
drew cimino d29ea1fa13 admin_group authorization for Groups::RunnersController
- Use authorize_admin_group! instead of authorize_admin_pipeline!
- Added role-based permission specs for Groups::RunnersController
2019-08-22 11:48:24 -04:00
Alex Ives 3e2b45870a Issue #39099: Add links for latest pipelines 2019-08-22 08:49:40 -05:00
drew cimino f7fbf49929 Restrict MergeRequests#test_reports to authenticated users with read-access on Builds 2019-08-22 03:16:32 -04:00
George Koltsov 8bcc47ac02 Add SortingPreference concern
Sorting preference functionality has been extracted
from `IssuableCollections` to a new `SortingPreference`
concern in order to reuse this functionality in projects
(and groups in the future).
2019-08-21 10:13:45 +00:00
Grzegorz Bizon 89f6584fb3 Merge branch '63372-award-emoji-services' into 'master'
Add service classes for mutating AwardEmoji

Closes #63372

See merge request gitlab-org/gitlab-ce!29782
2019-08-21 09:38:40 +00:00
manojmj a07efbdfd0 CE: Audit event for archiving and unarchiving projects 2019-08-21 09:12:48 +05:30
Luke Duncalfe 926bf71e51 Improve specs for Issues and Notes controllers
This adds test that Todos are completed.

https://gitlab.com/gitlab-org/gitlab-ce/issues/63372
2019-08-21 11:39:41 +12:00
Luke Duncalfe 37b17fa61a Add service classes for mutating AwardEmoji
Adding, destroying and toggling emoji previously lacked services and
instead were performed through methods called on Awardable models.

This led to inconsistencies where relevant todos would be marked as done
only when emoji were awarded through our controllers, but not through
the API. Todos could also be marked as done when an emoji was being
removed.

Behaviour changes

- Awarding emoji through the API will now mark a relevant Todo as done
- Toggling an emoji off (destroying it) through our controllers will no
  longer mark a relevant Todo as done

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/63372
2019-08-21 11:39:41 +12:00
Luke Duncalfe 93a618f0e5 New wiki page redirects user to random slug
Previously we asked a user to enter a new slug before taking them to
the Create Page page.

As a UX improvement, we now take them to a randomly generated URI so
they can begin creating their new page.

https://gitlab.com/gitlab-org/gitlab-ce/issues/46299
2019-08-21 09:33:12 +12:00
Stan Hu e632ae8084 Standardize remote_ip and path keys for auth.log and api_json.log
Current `auth.log` uses `fullpath` and `ip`, while `api_json.log` uses
`remote_ip` and `path` for the same fields. Let's standardize these
namings to make it easier for people working with the data.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/66167
2019-08-20 18:12:28 +00:00
Douglas Barbosa Alexandre 31b508e820 Merge branch 'fix-deprecation-warnings-change-success-to-successful' into 'master'
Change `be_success` to `be_successful` in specs

See merge request gitlab-org/gitlab-ce!31969
2019-08-20 16:02:32 +00:00
Stan Hu f3d65e78bc Merge branch 'mc/bug/nplusone-pipelines-show' into 'master'
Improve nplusone spec for PipelinesController#show

See merge request gitlab-org/gitlab-ce!31976
2019-08-19 21:52:56 +00:00
Douglas Barbosa Alexandre 2067f677df
Fix N+1s queries while loading users 2019-08-19 17:35:46 -03:00
Matija Čupić ae7f5faf67
Improve nplusone spec for PipelinesController#show 2019-08-19 21:02:28 +02:00
Vitali Tatarintev 6a6411938a Change `be_success` to `be_successful` in specs
Fixes deprecation warning:

```
DEPRECATION WARNING: The success? predicate is deprecated and
will be removed in Rails 6.0.
Please use successful? as provided by Rack::Response::Helpers.
```
2019-08-19 14:40:56 +02:00
Stan Hu 2dcb69c903 Merge branch '66023-starrers-count-do-not-match-after-searching' into 'master'
Fix starrers counts after searching

See merge request gitlab-org/gitlab-ce!31823
2019-08-16 20:34:27 +00:00
Grzegorz Bizon b1604f7d8f Merge branch '47003-user-onboarding-replace-current-email-confirmation-flow-with-a-soft-email-confirmation-flow' into 'master'
Soft email confirmation flow

Closes #47003

See merge request gitlab-org/gitlab-ce!31245
2019-08-16 12:31:16 +00:00
Thong Kuah f4ce990b0e Merge branch '24705-multi-selection-for-delete-on-registry-page' into 'master'
Resolve "Multi selection for delete on registry page"

Closes #24705

See merge request gitlab-org/gitlab-ce!30837
2019-08-15 23:57:38 +00:00
Douglas Barbosa Alexandre 38ba59bedd
Fix starrers counters after searching 2019-08-15 14:34:16 -03:00
Douglas Barbosa Alexandre 9032814542 Merge branch 'dblessing-fix-public-project-ssh-only-ci-failure' into 'master'
Allow CI to clone public projects when HTTP protocol is disabled

Closes #65805

See merge request gitlab-org/gitlab-ce!31632
2019-08-15 16:53:10 +00:00
Stan Hu 36a729f05f Merge branch 'georgekoltsov/48854-fix-empty-flash-message' into 'master'
Exclude json content type from workhorse interception

See merge request gitlab-org/gitlab-ce!31809
2019-08-15 12:01:34 +00:00
Stan Hu 0b43c1027f Merge branch '46548-open-source-alternative-to-recaptcha-for-gitlab-com-registration' into 'master'
Open source alternative to reCAPTCHA for GitLab.com registration

See merge request gitlab-org/gitlab-ce!31625
2019-08-14 22:04:42 +00:00
Drew Blessing 7f00bcb92e Allow CI to clone public projects when HTTP protocol is disabled
GitLab has a mechanism that allows CI to clone repositories via HTTP
even when the HTTP protocol is disabled. This works as expected
when a project is private or internal. However, when a project is
public CI gets an error message that HTTP is not allowed. This
happens because Git only sends auth in a subsequent request after a
401 is returned first. For public projects, GitLab grabs onto that
unauthenticated request and sends it through since it recognizes
that Guests are ordinarily allowed to access the repository.
Later on this leads to a 403 since HTTP protocol is disabled.
Fix this by only continuing with unauthenticated requests when
HTTP is allowed.
2019-08-14 14:15:33 -05:00
Adam Hegyi c5cb5da4ac Track page views for cycle analytics show page
This change adds a new counter 'cycle_analytics_views' to the usage data
metrics to count the page views for cycle analytics show page.
2019-08-14 16:12:12 +00:00
Alex Buijs cdbe66490f
Add logging and counter for invisible captcha 2019-08-14 14:05:24 +02:00
George Koltsov 10b2383f02 Exclude json content type from workhorse interception 2019-08-14 12:07:42 +01:00
Mayra Cabrera b6c51f57dd Return 429 on rate limiter on raw endpoint
It was originally returning 302 when the rate limit kicks in, because
using the the correct status code makes it easier to track rate limiting
events

Related to https://gitlab.com/gitlab-org/gitlab-ce/issues/65974
2019-08-13 18:13:37 +00:00
drew cimino 1c7c91806d Permission fix for MergeRequestsController#pipeline_status
- Use set_pipeline_variables to filter for visible pipelines
- Mimic response of nonexistent pipeline if not found
- Provide set_pipeline_variables as a before_filter for other actions
2019-08-12 17:39:32 -04:00
Markus Koller 49c83155cc
Load search result counts asynchronously
Querying all counts for the different search results in the same request
led to timeouts, so we now only calculate the count for the *current*
search results, and request the others in separate asynchronous calls.
2019-08-12 22:01:15 +02:00
George Koltsov 4e64ca4477 Add BitbucketServerController filtering spec 2019-08-12 11:16:17 +01:00
Ash McKenzie 0d9068b4a0 Merge branch 'sh-break-out-invited-group-members' into 'master'
Make it easier to find invited group members

Closes #61948

See merge request gitlab-org/gitlab-ce!28436
2019-08-12 09:17:33 +00:00
Alex Buijs a8da0de528
Add invisible captcha
With a time treshold of 4 seconds
and a firstname and lastname honeypot
input fields when signing up
2019-08-10 12:24:53 +02:00
Igor b99011af62 Split MR widget into cached and non-cached serializers
Splits auto-refreshing of MR widget into 2 requests:

- the one which uses etag-caching and invalidates the fields on change
- the one without caching

The idea is to gradually move all the fields to etag-cached endpoint
2019-08-09 21:01:55 +00:00
Robert Speicher 43b9be9d6c Merge branch 'spec-differences' into 'master'
Backport EE code for OAuth applications spec

See merge request gitlab-org/gitlab-ce!31670
2019-08-09 20:52:40 +00:00
Tristan Read 5e6a58040b Remove gfm_embed_metrics flag from BE
Removes the feature flag that controls whether
metrics dashboard urls unfurl the metrics dashboard
charts.
2019-08-09 20:35:43 +00:00