summaryrefslogtreecommitdiff
path: root/spec/models/concerns
Commit message (Collapse)AuthorAgeFilesLines
* Add a default reactive cache keyadd-default-reactive-cache-keyTiger2019-06-071-0/+13
| | | | | Aligns with the other reactive cache options by providing a default that can be overridden if necessary.
* Remove requirement for id for #markdown_cache_keyPatrick Bajao2019-06-051-4/+0
| | | | It's not needed anymore as we require `#cache_key` instead.
* Use #cache_key of subject for generated redis keyPatrick Bajao2019-06-051-0/+4
| | | | | This commit also includes some changes in specs to use `Class.new` approach.
* Use Redis for CacheMarkDownField on non AR modelsPatrick Bajao2019-06-051-308/+138
| | | | | | | | | | | | | | | | | | This allows using `CacheMarkdownField` for models that are not backed by ActiveRecord. When the including class inherits `ActiveRecord::Base` we include `Gitlab::MarkdownCache::ActiveRecord::Extension`. This will cause the markdown fields to be rendered and the generated HTML stored in a `<field>_html` attribute on the record. We also store the version used for generating the markdown. All other classes that include this model will include the `Gitlab::MarkdownCache::Redis::Extension`. This add the `<field>_html` attributes to that model and will generate the html in them. The generated HTML will be cached in redis under the key `markdown_cache:<class>:<id>`. The class this included in must therefore respond to `id`.
* Merge branch 'ce-9578-adjust-opened-issues-count-and-completion-rate' into ↵Robert Speicher2019-06-041-58/+20
|\ | | | | | | | | | | | | 'master' Port: EE adjust burndown chart opened issues count See merge request gitlab-org/gitlab-ce!28777
| * Adjust burndown chart opened issues countce-9578-adjust-opened-issues-count-and-completion-rateAlexandru Croitor2019-06-041-58/+20
| | | | | | | | | | | | * Adjust opened issues count in the milestone burndown chart to match current opened issues in the milestone. * Fix completion rate calculation to include milestones only.
* | Make `resolvable_types` a class methodBob Van Landuyt2019-06-031-0/+12
|/ | | | | This turns Notable::RESOLVABLE_TYPES into a `Notable.resolvable_types`. That allows us to override it in EE.
* Fix merge request pipeline exist methodfix-merge-request-pipeline-exist-methodShinya Maeda2019-05-061-2/+2
| | | | Refactor
* Move Contribution Analytics related spec in ↵Imre Farkas2019-04-091-0/+12
| | | | spec/features/groups/group_page_with_external_authorization_service_spec to EE
* [CE] Support multiple assignees for merge requestsosw-multi-assignees-merge-requestsOswaldo Ferreira2019-04-082-4/+163
| | | | | Backports https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/10161 (code out of ee/ folder).
* Revert "Merge branch 'if-57131-external_auth_to_ce' into 'master'"Andreas Brandl2019-04-051-12/+0
| | | This reverts merge request !26823
* Move Contribution Analytics related spec in ↵Imre Farkas2019-04-051-0/+12
| | | | spec/features/groups/group_page_with_external_authorization_service_spec to EE
* Autocorrect with RSpec/ExampleWording copThong Kuah2019-04-052-4/+4
| | | | | | | - rewords examples starting with 'should' - rewords examples starting with 'it' Note: I had to manually fixup "onlies" to "only"
* Allow reactive caching to be used in servicesReuben Pereira2019-04-041-0/+44
| | | | | | | | Add support for defining a reactive_cache_worker_finder function that will be used by the reactive_caching_worker to generate/initialize the calling object. This allows reactive caching to work with Services where the object cannot be obtained from DB but a new object can be initialized.
* Specify time window for additional metrics apisupport-time-windows-apisyasonik2019-04-031-0/+42
| | | | | | | | | Adds support for start and end parameters in the #additional_metrics endpoint of the EnvironmentsController. start and end are meant to be unix timestamps, per the Prometheus API (as the consumer of this endpoint will eventually be transitioned to a prometheus endpoint). This functionality is behind the :metrics_time_window feature flag for development.
* Merge branch 'ce-reduce-diff-in-spec-models' into 'master'Lin Jen-Shin2019-04-021-5/+6
|\ | | | | | | | | [CE] Reduce diff with EE in `spec/models` See merge request gitlab-org/gitlab-ce!26847
| * [CE] Reduce diff with EE in spec/models/concerns/prometheus_adapter_spec.rbRémy Coutable2019-04-021-5/+6
| | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Merge branch 'issue_51789_part_1' into 'master'Sean McGivern2019-04-021-0/+30
|\ \ | |/ |/| | | | | | | | | Migrate issuable states to integer patch 1 of 2 Closes #51789 See merge request gitlab-org/gitlab-ce!25107
| * Merge masterFelipe Artur2019-03-2711-261/+409
| |\
| * \ Merge branch 'master' into issue_51789_part_1Felipe Artur2019-02-191-2/+10
| |\ \
| * | | Add specs for issuable states syncFelipe Artur2019-02-141-0/+30
| | | |
* | | | Add # frozen_string_literal to spec/modelsThong Kuah2019-04-0149-0/+98
| |_|/ |/| | | | | | | | Adds `# frozen_string_literal: true` to spec/models ruby files
* | | Merge branch '57115-just-in-time-k8s-resource-creation' into 'master'Clement Ho2019-03-201-3/+19
|\ \ \ | | | | | | | | | | | | | | | | Create project-specific Kubernetes resources just-in-time See merge request gitlab-org/gitlab-ce!25586
| * | | Add :preparing status to HasStatusTiger2019-03-201-3/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduces a new status for builds between :created and :pending that will be used when builds require one or more prerequisite actions to be completed before being picked up by a runner (such as creating Kubernetes resources before deploying). The existing :created > :pending transition is unchanged, so only builds that require preparation will use the :preparing status.
* | | | Rename the hidden option to whitelistedDouglas Barbosa Alexandre2019-03-201-2/+2
| | | |
* | | | Add option to not exclude _html fields from attributesDouglas Barbosa Alexandre2019-03-201-4/+10
|/ / /
* | | Add attached flag to pipeline entityShinya Maeda2019-03-131-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add spec Fix Fix Add changelog Drop attached Remove attached Update changelog ok
* | | Use encrypted runner tokensKamil Trzciński2019-03-062-48/+12
| | | | | | | | | | | | | | | | | | This makes code to support encrypted runner tokens. This code also finished previously started encryption process.
* | | Merge dev.gitlab.org master into GitLab.com masterYorick Peterse2019-03-051-2/+93
|\ \ \
| * | | Display only informaton visible to current userJarka Košanová2019-03-051-2/+93
| | | | | | | | | | | | | | | | | | | | | | | | Display only labels and assignees of issues visible by the currently logged user Display only issues visible to user in the burndown chart
* | | | Merge dev master into GitLab.com masterYorick Peterse2019-03-042-9/+135
|\ \ \ \ | |/ / /
| * | | Merge branch 'security-2773-milestones-fix' into 'master'Yorick Peterse2019-03-041-8/+89
| |\ \ \ | | | | | | | | | | | | | | | | | | | | [master] Check issue milestone availability See merge request gitlab/gitlabhq!2788
| | * | | Check issue milestone availabilityJarka Košanová2019-02-141-8/+89
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add project when creating milestone in specs We validate milestone is from the same project/parent group as issuable -> we need to set project in specs correctly Improve methods names and specs organization
| * | | Merge branch 'security-2797-milestone-mrs' into 'master'Yorick Peterse2019-03-041-1/+46
| |\ \ \ | | | | | | | | | | | | | | | | | | | | Show only MRs visible to user on milestone detail See merge request gitlab/gitlabhq!2895
| | * | | Show only MRs visible to user on milestone detailJarka Košanová2019-02-141-1/+46
| | |/ /
* | | | Fix inconsistent `branch?` behaviorShinya Maeda2019-03-011-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | between Ci::Pipeline and Ci::Build Add spec Add more tests ok
* | | | Merge branch 'fix-misspellings-app' into 'master'Rémy Coutable2019-02-271-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | Fix misspellings in app/spec executable lines See merge request gitlab-org/gitlab-ce!25521
| * | | | Fix misspellings in app/spec executable linesTakuya Noguchi2019-02-271-1/+1
| |/ / / | | | | | | | | | | | | Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
* | | | Revert "Merge branch 'revert-8baf9e5f' into 'master'"Matija Čupić2019-02-272-1/+77
|/ / / | | | | | | | | | | | | This reverts commit f5201a816f2eff9393e16f362403451e5d86ee6c, reversing changes made to 48e6db0dad6f256e8423e0bd6c9b254803f50ccf.
* | | Revert "Merge branch '13784-simple-masking-of-protected-variables-in-logs' ↵Kamil Trzciński2019-02-262-77/+1
| | | | | | | | | | | | | | | | | | into 'master'" This reverts merge request !25293
* | | Add Maskable concern for CI variablesMatija Čupić2019-02-262-1/+77
| | | | | | | | | | | | | | | This adds a concern that abstracts the concept of masking a variable, including the RegEx for validation.
* | | Remove undigested token column from personal_access_tokens tableImre Farkas2019-02-201-193/+42
| |/ |/| | | | | | | Token column are no longer used as token values are stored digested in token_digest.
* | Allow blank values to be stored in reactive cacheReuben Pereira2019-02-181-2/+10
|/ | | | | | Reactive caching concern was using .present? to determine if it got a valid value from the cache. This returns false for values such as false, [], {}. Change this check to !.nil? instead.
* Add local markdown versionlocal-markdown-versionJan Provaznik2019-02-061-21/+34
| | | | | | Cached markdown version is composed both from global and local markdown version. This allows admins to bump version locally when needed (e.g. when external URL is changed).
* Merge branch 'jprovazn-remove-redcarpet' into 'master'Grzegorz Bizon2019-02-051-133/+69
|\ | | | | | | | | | | | | Remove Redcarpet markdown engine Closes #51374 See merge request gitlab-org/gitlab-ce!24819
| * Remove Redcarpet markdown engineJan Provaznik2019-02-041-133/+69
| | | | | | | | | | This engine was replaced with CommonMarker in 11.4, it was deprecated since then.
* | Merge branch 'search-title' into 'master'Sean McGivern2019-02-051-0/+72
|\ \ | |/ |/| | | | | Add 'in' filter that modifies scope of 'search' filter to issues and merge requests API See merge request gitlab-org/gitlab-ce!24350
| * Fix grammar and spellingHiroyuki Sato2019-02-051-6/+6
| |
| * Add 'in' filter that modifies scope of 'search' filter to issues and merge ↵Hiroyuki Sato2019-01-141-0/+72
| | | | | | | | requests API
* | Address review commentsBrett Walker2019-01-311-1/+1
| |