Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-09-13Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-08-30Allow be_url to specify the typeAlex Kalderimis
This allows the be_url matcher to be more specific. By default, it only matches HTTP and HTTPS URIs.
2019-08-07Convert RestClient to Gitlab::HTTP for Prometheus MonitorDavid Wilkins
- Closes #60024 - Change PrometheusClient.new to accept a base url instead of an already created RestClient - Use Gitlab::HTTP in PrometheusClient instead of creating RestClient in PrometheusService - Move http_options from PrometheusService to PrometheusClient (follow_redirects: false) - ensure that base urls don't have the trailing slash - Created a `PrometheusClient#url` method that might not be strictly required - Change rescued exceptions from RestClient::* to HTTParty::ResponseError where possible and StandardError for the rest
2019-07-25Add frozen_string_literal to spec/supportThong Kuah
Using the sed script from https://gitlab.com/gitlab-org/gitlab-ce/issues/59758
2019-07-11Added the `abort_execution` matcherGabriel Mazetto
2019-07-03Fix order-dependent Gitaly specs failingStan Hu
If `spec/tasks/gitlab/cleanup_rake_spec.rb` preceded any of the Gitaly request specs, it would import the `cleanup.rake` and the global function `limit`. For some reason, the Protobuf implementation would use the global function instead of the getter method. For example: ``` def limit puts "hi" end req = Gitaly::WikiGetAllPagesRequest.new req.send(:limit) hi => nil ``` To fix this problem, access the field value using the [] operator instead. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/64006
2019-06-19Fix N+1 problem in `JobsController#index`Kamil Trzciński
This adds missing preloads, and introduces additional n+1 matcher to look for duplicates.
2019-05-31Generate lets_encrypt_private_key on the flyVladimir Shushlin
Remove migration generating lets encrypt key Don't generate private_key if database is readonly For reference: This reverts commit 988a7f70489b99383b95e9f271a2caf6bb5b3a44. This reverts commit 21acbe531592d55caf0e5b8716a3b551dafd6233.
2019-03-26Remove .wiki and @md-typography mixin in favor of .md and .md-fileDouwe Maan
Before, the styling for `img:not(.emoji)`` was repeated between `.md:not(.use-csslab):not(.wiki)` (for comments and the Markdown preview), `.documentation.wiki` (for help pages), and `.issuable-details .description .wiki` (for MR and issue descriptions). In these places, we now simply use `.md`. Wherever we use `.md` but don't want this image styling (like wikis and blobs), `.md-file` is added.
2019-03-07Reduce differences in spec/support/matchers/access_matchers.rbRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2019-02-26Get rid of ScheduleInstallationServiceJoão Cunha
- deletes schedule_installation_service.rb - moves schedule_installation_service.rb logic to create_service.rb - moves specs as well Removes code duplication Remove unecessary spec block Abide review suggestions Test installable applications which are not associated to a cluster Fix a typo Removes duplciated expectation Reuse variable instead of redefining Remove method in favor of a local scoped lambda Improve 'failing service' shared examples Test the increase of status count Remove duplicated test Enable fronzen literal
2019-02-26Improve GraphQL Authorization DSLLuke Duncalfe
Previously GraphQL field authorization happened like this: class ProjectType field :my_field, MyFieldType do authorize :permission end end This change allowed us to authorize like this instead: class ProjectType field :my_field, MyFieldType, authorize: :permission end A new initializer registers the `authorize` metadata keyword on GraphQL Schema Objects and Fields, and we can collect this data within the context of Instrumentation like this: field.metadata[:authorize] The previous functionality of authorize is still being used for mutations, as the #authorize method here is called at during the code that executes during the mutation, rather than when a field resolves. https://gitlab.com/gitlab-org/gitlab-ce/issues/57828
2018-08-01Merge branch 'bvl-user-status-message-35463' into 'master'Rémy Coutable
Allow users to set a status Closes #35463 See merge request gitlab-org/gitlab-ce!20614
2018-07-31Merge branch 'feature/gb/login-activity-metrics' into 'master'Sean McGivern
Add user authentication activity metrics Closes #47789 See merge request gitlab-org/gitlab-ce!20668
2018-07-30Show the status of a user in interactionsBob Van Landuyt
The status is shown for - The author of a commit when viewing a commit - Notes on a commit (regular/diff) - The user that triggered a pipeline when viewing a pipeline - The author of a merge request when viewing a merge request - The author of notes on a merge request (regular/diff) - The author of an issue when viewing an issue - The author of notes on an issue - The author of a snippet when viewing a snippet - The author of notes on a snippet - A user's profile page - The list of members of a group/user
2018-07-27Improve readability and move custom matchers to better placeGrzegorz Bizon
2018-07-25Add mutation toggling WIP state of merge requestsBob Van Landuyt
This is mainly the setup of mutations for GraphQL. Including authorization and basic return type-structure.
2018-07-18Delete UserActivities and related workersImre Farkas
2018-07-11Resolve "Rename the `Master` role to `Maintainer`" BackendMark Chao
2018-07-07Refactor rspec matchers in read_only_spec.rbBrett Walker
2018-06-28Expose permissions on types in GraphQLBob Van Landuyt
This adds a reusable way to expose permissions for a user to types in GraphQL.
2018-06-22Bring changes from EELin Jen-Shin
2018-06-15Allow querying a single MR within a projectBob Van Landuyt
This allows the user to get a single MR nested in a GraphQL project query. Since we need the full path and the iid anyway, this makes more sense than having a root query that needs the full path as well.
2018-06-06Initial setup GraphQL using graphql-ruby 1.8Bob Van Landuyt
- All definitions have been replaced by classes: http://graphql-ruby.org/schema/class_based_api.html - Authorization & Presentation have been refactored to work in the class based system - Loaders have been replaced by resolvers - Times are now coersed as ISO 8601
2018-06-05Add a minimal GraphQL APINick Thomas
2018-06-05Merge branch 'sh-add-uncached-query-limiter' into 'master'Rémy Coutable
Remove N+1 query for author in issues API See merge request gitlab-org/gitlab-ce!19345
2018-06-05Remove N+1 query for author in issues APIStan Hu
This was being masked by the statement cache because only one author was used per issue in the test.. Also adds support for an Rspec matcher `exceed_all_query_limit`.
2018-06-03Revert "Add a new have_html_escaped_body_text that match an HTML-escaped text"Takuya Noguchi
This reverts commit 517598ba10793efa02cb90379f78ab97c9c5b25d.
2018-04-23Move spec helpers/matchers/shared examples/contexts to their relevant folderRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-04-11Add matcher for emojiBob Van Landuyt
2018-04-03Replace the `project/issues/issues.feature` spinach test with an rspec analogblackst0ne
2018-03-06Add matcher to match elements by idsToon Claes
Initially added in gitlab-org/gitlab-ee!4864 and gitlab-org/gitlab-ee!4689.
2018-02-06Return only limited pagination headers for search API endpointsJarka Kadlecová
2018-01-29Add Colors to GitLab Flavored MarkdownTony Rom
2018-01-11Adds Rubocop rule for line break around conditionals🙈 jacopo beschi 🙉
2017-11-23Allow password authentication to be disabled entirelyMarkus Koller
2017-11-23Fix encoding bugs in Gitlab::Git::UserJacob Vosmaer (GitLab)
2017-11-09Merge branch '36099-api-responses-missing-x-content-type-options-header' ↵Douwe Maan
into '10-1-stable' Include X-Content-Type-Options (XCTO) header into API responses See merge request gitlab/gitlabhq!2211 (cherry picked from commit 6c818e77f2abeef2dd7b17a269611b018701fa79) e087e075 Include X-Content-Type-Options (XCTO) header into API responses
2017-11-03Add Projects::Clusters::ApplicationsController testsAlessio Caiazza
2017-09-22Replace the 'project/shortcuts.feature' spinach test with an rspec analogVitaliy @blackst0ne Klachkov
2017-09-16Improve 'spec/features/profiles/*' specsVitaliy @blackst0ne Klachkov
2017-08-15Enable Layout/TrailingWhitespace cop and auto-correct offensesRobert Speicher
2017-08-09Enable the Layout/SpaceBeforeBlockBraces copRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-08-07Support references to group milestonesSean McGivern
Group milestones can only be referred to by name, not IID. They also do not support cross-project references.
2017-07-24Resolve "Lazy load images on the Frontend"Tim Zallmann
2017-07-14Introduce have_gitlab_http_statusLin Jen-Shin
So that whenever this failed: expect(response).to have_gitlab_http_status(200) We see what's the response there. Here's an example: ``` 1) API::Settings Settings PUT /application/settings custom repository storage type set in the config updates application settings Failure/Error: expect(response).to have_gitlab_http_status(200) expected the response to have status code 200 but it was 400. The response was: {"error":"password_authentication_enabled, signin_enabled are mutually exclusive"} ```
2017-07-05Revert unnecesarry changesShinya Maeda
2017-07-05zj nice catchies 3Shinya Maeda
2017-07-05Improved AccessMatchers and testsShinya Maeda
2017-06-30Add a UTF-8 encoding matcherJacob Vosmaer