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-06-24Added labels_hook_attrs methodJan Provaznik
Based on review comment fetching labels hook_attrs is now wrapped in an issue's model method.
2019-05-28Allow issues to be sorted by relative_positionBrett Walker
- adding a "Manual" option to the dropdown - show 100 issues list when manually sorting
2019-05-07Additional fix to handle NULL lock_versionStan Hu
If the UI sends a string value for lock_version (e.g. "0"), then the previous monkey patch did not properly handle that properly. This commit casts the value to an integer to determine whether to look for NULL lock_versions. For merge requests, GitLab sends a POST request to `namespace/project/merge_requests/:iid` with the `merge_request[lock_version]` parameter with a string `0`. The string value comes from the form field, which explains why https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/28145 wasn't sufficient.
2019-05-06Fix editing issues and MRs with NULL lock_versionSean McGivern
2019-04-09Move Contribution Analytics related spec in ↵Imre Farkas
spec/features/groups/group_page_with_external_authorization_service_spec to EE
2019-04-05Revert "Merge branch 'if-57131-external_auth_to_ce' into 'master'"Andreas Brandl
This reverts merge request !26823
2019-04-05Move Contribution Analytics related spec in ↵Imre Farkas
spec/features/groups/group_page_with_external_authorization_service_spec to EE
2019-04-01Add # frozen_string_literal to spec/modelsThong Kuah
Adds `# frozen_string_literal: true` to spec/models ruby files
2019-02-26Merge branch 'filter-confidential-issues' into 'master'Kamil Trzciński
Ability to filter confidential issues Closes #50747 See merge request gitlab-org/gitlab-ce!24960
2019-02-25Revert "Merge branch 'filter-confidential-issues' into 'master'"Michael Kozono
This reverts commit d133bf84c668df3dfc9938bb04150754cb873c8b, reversing changes made to 7981c0292b07a0138b096fa082341fcb13e9ce2b.
2019-02-21Add confidential_only scop to issue modelRobert Schilling
2019-01-18Don't check confidential issues for spamSean McGivern
Spam checks are meant for content that could be indexed by search engines. Confidential issues aren't indexed by search engines, so we don't need to do spam checks for them. We do need to check for spam when an issue changes from confidential to public, even if nothing else changed.
2018-10-04Move issue related_branches to serviceFelipe Artur
Moves the related_branches method from Issue model to RelatedBranchesService
2018-09-24Add specs for closing and reopening issueJarka Košanová
2018-08-21Move Issue#{referenced,closed_by}_merge_requests to serviceSean McGivern
These methods don't really need to be on the Issue model. Issue#related_branches can also be moved to a service, but we can do that in a separate commit. This commit does not change any behaviour; it just moves code around, renames the service, and refactors the specs.
2018-07-11Resolve "Rename the `Master` role to `Maintainer`" BackendMark Chao
2018-05-14Clarify scope for AtomicInternalId shared specShinya Maeda
2018-04-19Shows new branch/mr button even when branch existsJacopo
2018-03-16Add shared specs for AtomicInternalId concern.Andreas Brandl
2018-02-22Port `read_cross_project` ability from EEBob Van Landuyt
2018-01-08Remove soft removals related codeYorick Peterse
This removes all usage of soft removals except for the "pending delete" system implemented for projects. This in turn simplifies all the query plans of the models that used soft removals. Since we don't really use soft removals for anything useful there's no point in keeping it around. This _does_ mean that hard removals of issues (which only admins can do if I'm not mistaken) can influence the "iid" values, but that code is broken to begin with. More on this (and how to fix it) can be found in https://gitlab.com/gitlab-org/gitlab-ce/issues/31114. Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/37447
2018-01-02Cache merged and closed events data in merge_request_metrics tableOswaldo Ferreira
2017-12-22Replace '.team << [user, role]' with 'add_role(user)' in specsblackst0ne
2017-12-06Throttle the number of UPDATEs triggered by touchYorick Peterse
This throttles the number of UPDATE queries that can be triggered by calling "touch" on a Note, Issue, or MergeRequest. For Note objects we also take care of updating the associated "noteable" relation in a smarter way than Rails does by default.
2017-11-11Move update_project_counter_caches? out of issue and merge requestGeorge Andrinopoulos
2017-10-09Introduce new hook data builders for Issue and MergeRequestRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-10-09Start adding Gitlab::HookData::IssuableBuilderRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-08-30Only update the sidebar count caches when neededYorick Peterse
This ensures the issues/MR cache of the sidebar is only updated when the state or confidential flags changes, instead of changing this for every update.
2017-08-23Cache the number of open issues and merge requestsYorick Peterse
Every project page displays a navigation menu that in turn displays the number of open issues and merge requests. This means that for every project page we run two COUNT(*) queries, each taking up roughly 30 milliseconds on GitLab.com. By caching these numbers and refreshing them whenever necessary we can reduce loading times of all these pages by up to roughly 60 milliseconds. The number of open issues does not include confidential issues. This is a trade-off to keep the code simple and to ensure refreshing the data only needs 2 COUNT(*) queries instead of 3. A downside is that if a project only has 5 confidential issues the counter will be set to 0. Because we now have 3 similar counting service classes the code previously used in Projects::ForksCountService has mostly been moved to Projects::CountService, which in turn is reused by the various service classes. Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/36622
2017-08-11Enable Timecop safe modeRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-08-09Enable the Layout/SpaceBeforeBlockBraces copRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-08-08Merge branch '32844-issuables-performance' into 'master'Sean McGivern
Issuables: Move some code from create services to Sidekiq workers See merge request !13326
2017-08-07Move some after_create parts to worker to improve performanceJarka Kadlecova
2017-08-03Change all `:empty_project` to `:project`Robert Speicher
2017-08-01Ensure all project factories use `:repository` trait or `:empty_project`Robert Speicher
2017-07-27Remove superfluous lib: true, type: redis, service: true, models: true, ↵Rémy Coutable
services: true, no_db: true, api: true Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-06-21Enable Style/DotPosition Rubocop :cop:Grzegorz Bizon
2017-06-14Correct RSpec/SingleLineHook cop offensesRobert Speicher
2017-05-12Move update_assignee_cache_counts to the serviceValery Sizov
2017-05-04Backport of multiple_assignees_feature [ci skip]Valery Sizov
2017-05-04Allow to create new branch and empty WIP merge request from issue pageAlfredo Sumaran
2017-04-20Remove helpers assigned_issuables_count and cached_assigned_issuables_countValery Sizov
2017-04-11Remove an unused `Issue.open_for` scopeRobert Speicher
2017-04-04Do not set closed_at to nil when issue is reopenedFelipe Artur
2017-03-21Spam check only when spammable attributes have changedOswaldo Ferreira
2017-03-17Add closed_at field to issuesFelipe Artur
2017-03-15Merge branch '27271-missing-time-spent-in-issue-webhook' into 'master' Douwe Maan
Include time tracking attributes in webhooks payload Closes #27271 See merge request !9942
2017-03-14Include time tracking attributes in webhooks payloadRuben Davila
2017-03-14Preserve order by priority on issues boardValery Sizov
2017-01-28Present group and dashboard MR list without grouping by projectOswaldo Ferreira