summaryrefslogtreecommitdiff
path: root/spec/controllers/concerns
Commit message (Collapse)AuthorAgeFilesLines
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-09-171-1/+0
|
* Enable serving static objects from an external storagestatic-objects-external-storageAhmad Sherif2019-09-101-0/+96
| | | | | | | | | | It consists of two parts: 1. Redirecting users to the configured external storage 1. Allowing the external storage to request the static object(s) on behalf of the user by means of specific tokens Part of https://gitlab.com/gitlab-com/gl-infra/infrastructure/issues/6829
* Add SortingPreference concernGeorge Koltsov2019-08-212-72/+93
| | | | | | | 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).
* Add ConfirmEmailWarning concernAlex Buijs2019-08-081-0/+98
|
* Use NotesFinder in IssuableActions modulePatrick Derichs2019-08-011-0/+69
| | | | | | | | | | Remove project from NotesFinder constructor Add project parameter to specs Also look for methods in private scope Fix specs to match new NotesFinder constructor
* Revert "Merge branch '52123-issuable-actions-notesfinder-pderichs' into ↵Stan Hu2019-07-271-69/+0
| | | | | 'master'" This reverts merge request !29733
* Merge branch '52123-issuable-actions-notesfinder-pderichs' into 'master'Stan Hu2019-07-261-0/+69
|\ | | | | | | | | | | | | Use NotesFinder to fetch notes in module IssuableActions Closes #52123 See merge request gitlab-org/gitlab-ce!29733
| * Use NotesFinder in module IssuableActionsPatrick Derichs2019-07-261-0/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add spec for concern IssuableActions Add shared samples for discussions endpoint Add schema validations for discussions Fix rubocop style issue Make target assignable Use new possibility to provide target
* | Remove code related to object hierarchy in MySQLremove-nested-groups-checksHeinrich Lee Yu2019-07-251-2/+2
|/ | | | | These are not required because MySQL is not supported anymore
* Support redirect paths starting with a dash51952-forking-via-webideMarkus Koller2019-06-251-23/+54
| | | | | | | We use a leading dash for certain things like the WebIDE, which had the side effect of losing the `params[:continue][:to]` param when opening the WebIDE on a project where the user doesn't have push access and therefore needs to fork the project first.
* Make checks for continue_params more robustMarkus Koller2019-06-251-0/+8
| | | | | | | | | | The check for continue_params&.key?(:to) in Projects::ImportsController caused an exception in redirect_to if this key contained a nil value. Since url_for won't add any params for an empty hash, we can just return that in continue_params if params[:continue] isn't present, and simplify the code in the controllers to check for the values we actually want to use.
* Search issuables by iidsRiccardo Padovani2019-06-181-0/+11
|
* Fix send_file_upload_spec.rb with right MIME typeStan Hu2019-06-161-1/+1
| | | | | This fixes a regression in mime-types-data: https://github.com/mime-types/mime-types-data/pull/20
* Add `to_json` to `represent` method callce-3861-use-serializers-for-project-group-boardscharlieablett2019-06-131-1/+1
|
* Add `to_json` to `represent` method callcharlieablett2019-06-101-2/+2
|
* Use serialization for project boardscharlieablett2019-06-061-0/+23
| | | | | | - Add serializers and Grape::Entity - Replace to_json - Add specs
* Fix project settings not being able to updateStan Hu2019-06-031-0/+12
| | | | | | | | Previously import_url would always be present in the update parameters, which would cause the validation to fail. We now only include this parameter only if there is URL given. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/62708
* Hide password on import by url formIgor Drozdov2019-05-291-0/+44
|
* Merge branch 'ce-jej/sso-enforcement-redirect' into 'master'Rémy Coutable2019-05-152-1/+157
|\ | | | | | | | | Refactor RoutableActions to allow additional not_found checks See merge request gitlab-org/gitlab-ce!28243
| * Avoid passing not_found_or_authorized_proc aroundJames Edwards-Jones2019-05-152-1/+38
| | | | | | | | | | Since this needs to be called on every find_routable!(Project, ... we can instead move it to a RoutableActions check.
| * Added RoutableActions testsJames Edwards-Jones2019-05-151-0/+119
| |
* | Optimise upload path callsSean McGivern2019-05-141-1/+2
|/ | | | | | | | String#underscore isn't particularly slow, but it's possible for us to call it many times in a users autocomplete request, with mostly-static values ('User', 'Group', etc.). We can memoise this and save a surprising amount of time (around 10% of the total request time in some cases).
* Change specs to match gitlab code standardsJames Fargher2019-05-071-0/+2
|
* Check instance cluster feature at policy levelJames Fargher2019-05-071-0/+38
| | | | Try to simplify feature flag checks by using policies
* Add label_name as scalar param of IssuableFinder60569-timeline-entry-label-link-is-not-applying-the-filter-on-issuesHeinrich Lee Yu2019-04-231-42/+68
| | | | This was removed by a previous MR but broke some links
* Add some frozen string to spec/**/*.rbgfyoung2019-04-159-0/+18
| | | | | | | | | | Adds frozen string to the following: * spec/bin/**/*.rb * spec/config/**/*.rb * spec/controllers/**/*.rb xref https://gitlab.com/gitlab-org/gitlab-ce/issues/59758
* Move Contribution Analytics related spec in ↵Imre Farkas2019-04-091-0/+51
| | | | spec/features/groups/group_page_with_external_authorization_service_spec to EE
* Revert "Merge branch 'if-57131-external_auth_to_ce' into 'master'"Andreas Brandl2019-04-051-51/+0
| | | This reverts merge request !26823
* Move Contribution Analytics related spec in ↵Imre Farkas2019-04-051-0/+51
| | | | spec/features/groups/group_page_with_external_authorization_service_spec to EE
* Consider array params on rendering MR list on dashboardIgor2019-04-041-2/+2
| | | | | This fixes the bug, when approver filter is provided, but dashboard asks to enter any filter
* Bump fog-aws to 3.3.0 and associated dependenciesStan Hu2019-02-281-1/+1
| | | | | Fixes issue with AWS V4 signatures not working with Ceph S3: https://github.com/fog/fog-aws/issues/462
* Merge branch 'filter-confidential-issues' into 'master'Kamil Trzciński2019-02-261-1/+3
| | | | | | | Ability to filter confidential issues Closes #50747 See merge request gitlab-org/gitlab-ce!24960
* Revert "Merge branch 'filter-confidential-issues' into 'master'"Michael Kozono2019-02-251-3/+1
| | | | | This reverts commit d133bf84c668df3dfc9938bb04150754cb873c8b, reversing changes made to 7981c0292b07a0138b096fa082341fcb13e9ce2b.
* Only use boolean parameters internallyRobert Schilling2019-02-221-3/+3
| | | | Use internally only boolean params.
* Ability to filter confidential issuesRobert Schilling2019-02-211-0/+2
| | | | | Add a new search bar filter for confidential issues. Add filtering support to the IssuesFinder.
* Fix Content-Disposition hard-coded to attachmentsStan Hu2019-02-131-0/+17
| | | | | | | | | Due to a regression in https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/24919, Content-Disposition is hard-coded to `attachment` instead of `inline`. We now use the argument `disposition` to fix that problem. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/57660
* Encode Content-Disposition filenamesStan Hu2019-02-041-3/+22
| | | | | | | | | | | | | Users downloading non-ASCII attachments would see garbled characters. When used with object storage, AWS S3 would return an InvalidArgument error: Header value cannot be represented using ISO-8859-1. Per RFC 5987 and RFC 6266, Content-Disposition should be encoded properly. This commit takes the Rails 6 implementation of ActiveSuppport::Http::ContentDisposition (https://github.com/rails/rails/pull/33829) and ports it here. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/47673
* Save sorting preference for Issues/MRs in BEMario de la Ossa2019-01-281-0/+45
| | | | | | In order to let users' sorting preferences transfer between devices, we save the preference for issues and MRs (one preference for issues, one for MRs) in the backend inside the UserPreference object
* Enable the Layout/ExtraSpacing cop56392-enable-the-layout-extraspacing-copRémy Coutable2019-01-241-1/+1
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Update specs to rails5 formatblackst0ne-convert-specs-rails5-styleblackst0ne2018-12-193-11/+11
| | | | | | | | | | Updates specs to use new rails5 format. The old format: `get :show, { some: params }, { some: headers }` The new format: `get :show, params: { some: params }, headers: { some: headers }`
* Fix deprecation: Comparing equality between ActionController::Parameters and ↵Jasper Maes2018-12-161-2/+2
| | | | a Hash is deprecated
* [CE backport]Add sort direction button with sort dropdown for epicsFelipe Artur2018-12-031-0/+1
|
* render :nothing option is deprecated, Use head method to respond with empty ↵Jasper Maes2018-11-232-6/+6
| | | | response body.
* Refactor whitelisting of filter paramsHeinrich Lee Yu2018-11-151-10/+5
|
* MIME type application/javascript -> application/ecmascriptsh-bump-mime-typesStan Hu2018-11-101-1/+1
|
* backport: Always proxy reports downloadsalways-proxy-reportsKamil Trzciński2018-11-071-9/+20
| | | | This makes to always proxy reports
* Fix attachments not displaying inline with Google Cloud StorageStan Hu2018-09-051-2/+29
| | | | | | | | | | | | | | | | | | | | | | There were several issues: 1. With Google Cloud Storage, we can't override the Content-Type with Response-Content-Type once it is set. Setting the value to `application/octet-stream` doesn't buy us anything. GCS defaults to `application/octet-stream`, and AWS uses `binary/octet-stream`. Just remove this `Content-Type` when we upload new files. 2. CarrierWave and fog-google need to support query parameters: https://github.com/fog/fog-google/pull/409/files, https://github.com/carrierwaveuploader/carrierwave/pull/2332/files. CarrierWave has been monkey-patched until an official release. 3. Workhorse also needs to remove the Content-Type header in the request (https://gitlab.com/gitlab-org/gitlab-workhorse/blob/ef80978ff89e628c8eeb66556720e30587d3deb6/internal/objectstore/object.go#L66), or we'll get a 403 error when uploading due to signed URLs not matching the headers. Upgrading to Workhorse 6.1.0 for https://gitlab.com/gitlab-org/gitlab-workhorse/merge_requests/297 will make Workhorse use the headers that are used by Rails. Closes #49957
* Set issuable_sort and diff_view cookies to secure when possibleStan Hu2018-09-031-0/+28
| | | | Closes #49120
* Preload ancestors after pagination when filteringBob Van Landuyt2018-07-061-0/+11
| | | | | | | | | We need to preload the ancestors of search results after applying pagination limits. This way the search results itself are paginated, but not the ancestors. If we don't do this, we might not preload a parent group of a search result as it has been cut off by pagination.
* Backport InternalRedirect#sanitize_redirectce-jej/sanitize-group-saml-relay-stateJames Edwards-Jones2018-06-141-0/+25
|